using perferred response_mode as specified by provider

This commit is contained in:
Jason Kulatunga 2022-11-07 22:05:38 -08:00
parent 6f0675e176
commit 043869a0ef
2 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,7 @@ export class LighthouseService {
const authorizationUrl = new URL(lighthouseSource.authorization_endpoint);
authorizationUrl.searchParams.set('redirect_uri', lighthouseSource.redirect_uri);
authorizationUrl.searchParams.set('response_type', lighthouseSource.response_types_supported[0]);
authorizationUrl.searchParams.set('response_mode', 'fragment');
authorizationUrl.searchParams.set('response_mode', lighthouseSource.response_modes_supported[0]);
authorizationUrl.searchParams.set('state', state);
authorizationUrl.searchParams.set('client_id', lighthouseSource.client_id);
if(lighthouseSource.scopes_supported && lighthouseSource.scopes_supported.length){

View File

@ -8,6 +8,7 @@ export class LighthouseSourceMetadata {
issuer: string
grant_types_supported: string[]
response_types_supported: string[]
response_modes_supported: string[]
aud: string
code_challenge_methods_supported: string[]