[ACS-8301] - Test the ADW integration with HXIAM (#9934)

This commit is contained in:
dominikiwanekhyland 2024-07-10 08:31:43 +02:00 committed by GitHub
parent a0b82ad887
commit eda03ed525
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,6 +53,7 @@ export class AuthConfigService {
const oauth2 = this.appConfigService.oauth2; const oauth2 = this.appConfigService.oauth2;
const origin = this.getLocationOrigin(); const origin = this.getLocationOrigin();
const redirectUri = this.getRedirectUri(); const redirectUri = this.getRedirectUri();
const customQueryParams = oauth2.audience ? { audience: oauth2.audience } : {};
return new AuthConfig({ return new AuthConfig({
...oauth2, ...oauth2,
@ -66,9 +67,7 @@ export class AuthConfigService {
scope: oauth2.scope, scope: oauth2.scope,
dummyClientSecret: oauth2.secret || '', dummyClientSecret: oauth2.secret || '',
logoutUrl: oauth2.logoutUrl, logoutUrl: oauth2.logoutUrl,
customQueryParams: { customQueryParams,
audience: oauth2.audience
},
...(oauth2.codeFlow && { responseType: 'code' }) ...(oauth2.codeFlow && { responseType: 'code' })
}); });
} }