[Blazor] Fix default value for response type (#19706)

This commit is contained in:
Javier Calvarro Nelson 2020-03-09 19:54:51 +01:00 committed by GitHub
parent ce58840d6b
commit adc81c94de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -309,6 +309,11 @@ export class AuthenticationService {
settings.scope = settings.defaultScopes.join(' ');
}
if (settings.response_type === null) {
// If the response type is not set, it gets serialized as null. OIDC-client behaves differently than when the value is undefined, so we explicitly check for a null value and remove the property instead.
delete settings.response_type;
}
finalSettings = settings;
}