Skip to content

Commit 0eb11cc

Browse files
authored
Use configured revocationEndpoint by default
in case revocation_endpoint is not present in the openid configuration, the user provided revocationEndpoint should be used by default. Otherwise the openid configuration will overwrite it to undefined regardlessly, and the user provided revocationEndpoint is not used at all.
1 parent 8d152c2 commit 0eb11cc

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
@@ -537,7 +537,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
537537

538538
this.discoveryDocumentLoaded = true;
539539
this.discoveryDocumentLoadedSubject.next(doc);
540-
this.revocationEndpoint = doc.revocation_endpoint;
540+
this.revocationEndpoint = doc.revocation_endpoint || this.revocationEndpoint;
541541

542542
if (this.sessionChecksEnabled) {
543543
this.restartSessionChecksIfStillLoggedIn();

0 commit comments

Comments
 (0)