Skip to content

Commit 373477d

Browse files
Merge pull request #201 from bechhansen/clientid_logout
Added support for logout using client id.
2 parents fcd0f8b + d06084c commit 373477d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

angular-oauth2-oidc/src/oauth-service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,9 @@ export class OAuthService
15111511

15121512
// For backward compatibility
15131513
if (this.logoutUrl.indexOf('{{') > -1) {
1514-
logoutUrl = this.logoutUrl.replace(/\{\{id_token\}\}/, id_token);
1514+
logoutUrl = this.logoutUrl
1515+
.replace(/\{\{id_token\}\}/, id_token)
1516+
.replace(/\{\{client_id\}\}/, this.clientId);
15151517
}
15161518
else {
15171519
logoutUrl = this.logoutUrl +

0 commit comments

Comments
 (0)