Skip to content

Commit 10441f1

Browse files
Merge pull request #685 from luciimon/master
Set userinfoEndpoint if userinfo_endpoint not exists
2 parents 74666bf + 3d02d72 commit 10441f1

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
@@ -439,7 +439,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
439439
this.grantTypesSupported = doc.grant_types_supported;
440440
this.issuer = doc.issuer;
441441
this.tokenEndpoint = doc.token_endpoint;
442-
this.userinfoEndpoint = doc.userinfo_endpoint;
442+
this.userinfoEndpoint = doc.userinfo_endpoint || this.userinfoEndpoint;
443443
this.jwksUri = doc.jwks_uri;
444444
this.sessionCheckIFrameUrl = doc.check_session_iframe || this.sessionCheckIFrameUrl;
445445

0 commit comments

Comments
 (0)