Skip to content

Commit 169d749

Browse files
authored
'disableAtHashCheck' by default if responseType is 'id_token'
If the response type 'id_token' is in the implicit flow, no at_hash value is provided in the id_token.
1 parent c587f55 commit 169d749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/lib/src/oauth-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2068,7 +2068,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
20682068
// addressing https://github.com/manfredsteyer/angular-oauth2-oidc/issues/661
20692069
// i.e. Based on spec the at_hash check is only true for implicit code flow on Ping Federate
20702070
// https://www.pingidentity.com/developer/en/resources/openid-connect-developers-guide.html
2071-
if (this.hasOwnProperty('responseType') && this.responseType === 'code') {
2071+
if (this.hasOwnProperty('responseType') && (this.responseType === 'code' || this.responseType === 'id_token')) {
20722072
this.disableAtHashCheck = true;
20732073
}
20742074
if (

0 commit comments

Comments
 (0)