Skip to content

Commit 543f1d6

Browse files
committed
fix:removed the redendent keyclock API call
Signed-off-by: shitrerohit <rohit.shitre@ayanworks.com>
1 parent 47ac855 commit 543f1d6

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

libs/client-registration/src/client-registration.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ export class ClientRegistrationService {
737737
}
738738
};
739739
const generatetedTokenDetails = await this.commonService.httpPost(
740-
await this.keycloakUrlService.GenerateTokenUsingAdminCredentials(realmName),
740+
await this.keycloakUrlService.GetSATURL(realmName),
741741
qs.stringify(payload),
742742
config
743743
);

libs/keycloak-url/src/keycloak-url.service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,4 @@ export class KeycloakUrlService {
7171
async GetClient(realm: string, clientId: string): Promise<string> {
7272
return `${process.env.KEYCLOAK_DOMAIN}admin/realms/${realm}/clients?clientId=${clientId}`;
7373
}
74-
75-
async GenerateTokenUsingAdminCredentials(realm: string): Promise<string> {
76-
return `${process.env.KEYCLOAK_DOMAIN}realms/${realm}/protocol/openid-connect/token`;
77-
}
7874
}

0 commit comments

Comments
 (0)