fix code_challenge_methods_supported calls.

This commit is contained in:
Jason Kulatunga 2023-05-13 15:14:58 -04:00
parent 8ae91494db
commit 2f275dd0f7
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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"