Skip to content

Commit 3d02d72

Browse files
authored
Set userinfoEndpoint if userinfo_endpoint not exists
If userinfo_endpoint not exists in discovery document, update it from auth config field.
1 parent a1652dc commit 3d02d72

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
@@ -435,7 +435,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
435435
this.grantTypesSupported = doc.grant_types_supported;
436436
this.issuer = doc.issuer;
437437
this.tokenEndpoint = doc.token_endpoint;
438-
this.userinfoEndpoint = doc.userinfo_endpoint;
438+
this.userinfoEndpoint = doc.userinfo_endpoint || this.userinfoEndpoint;
439439
this.jwksUri = doc.jwks_uri;
440440
this.sessionCheckIFrameUrl = doc.check_session_iframe || this.sessionCheckIFrameUrl;
441441

0 commit comments

Comments
 (0)