fix code_challenge_methods_supported calls.
This commit is contained in:
parent
8ae91494db
commit
2f275dd0f7
|
@ -149,7 +149,7 @@ export class MedicalSourcesConnectedComponent implements OnInit {
|
|||
grant_types_supported: sourceMetadata.grant_types_supported,
|
||||
response_types_supported: sourceMetadata.response_types_supported,
|
||||
aud: sourceMetadata.aud,
|
||||
code_challenge_methods_supported: sourceMetadata.code_challenge_methods_supported,
|
||||
code_challenge_methods_supported: sourceMetadata.code_challenge_methods_supported || [],
|
||||
confidential: sourceMetadata.confidential,
|
||||
cors_relay_required: sourceMetadata.cors_relay_required,
|
||||
|
||||
|
|
|
@ -178,7 +178,7 @@ export class LighthouseService {
|
|||
//use a placeholder client_secret (the actual secret is stored in Lighthouse)
|
||||
client.client_secret = "placeholder"
|
||||
client.token_endpoint_auth_method = "client_secret_basic"
|
||||
if(sourceMetadata.code_challenge_methods_supported.length > 0){
|
||||
if((sourceMetadata.code_challenge_methods_supported|| []).length > 0){
|
||||
codeVerifier = expectedSourceStateInfo.code_verifier
|
||||
} else {
|
||||
codeVerifier = "placeholder"
|
||||
|
|
Loading…
Reference in New Issue