Skip to content

Commit

Permalink
EW-965 console debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
psachmann committed Jul 8, 2024
1 parent e1547d7 commit 83c119c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ export class KeycloakIdentityManagementOauthService extends IdentityManagementOa
const scDomain = this.configService.get<string>('SC_DOMAIN') || '';
const redirectUri =
scDomain === 'localhost' ? 'http://localhost:3030/api/v3/sso/oauth/' : `https://${scDomain}/api/v3/sso/oauth/`;
const clientId = this.kcAdminService.getClientId();
const clientSecret = await this.kcAdminService.getClientSecret();
console.log('FOO_BAR');
this._oauthConfigCache = new OauthConfigDto({
clientId: this.kcAdminService.getClientId(),
clientSecret: this.oAuthEncryptionService.encrypt(await this.kcAdminService.getClientSecret()),
clientId,
clientSecret: this.oAuthEncryptionService.encrypt(clientSecret),
provider: 'oauth',
redirectUri,
responseType: 'code',
Expand Down Expand Up @@ -86,7 +88,7 @@ export class KeycloakIdentityManagementOauthService extends IdentityManagementOa
);
return response.data.access_token;
} catch (err) {
console.log('Error', err);
console.log('ERROR: ', err);
return undefined;
}
}
Expand Down

0 comments on commit 83c119c

Please sign in to comment.