Skip to content

Commit fb79b38

Browse files
authored
Remove iss validation
Substring matching of 'iss' claim is unreliable - required for OneLogin integration
1 parent 1178001 commit fb79b38

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

openid_connect.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,6 @@ function validateIdToken(req,res) {
111111
valid_token = false;
112112
}
113113

114-
// Check iss relates to $oidc_authz_endpoint
115-
if (!req.variables.oidc_authz_endpoint.startsWith(req.variables.jwt_claim_iss)) {
116-
req.error("OIDC ID Token validation error: iss claim (" + req.variables.jwt_claim_iss + ") is not found in $oidc_authz_endpoint");
117-
valid_token = false;
118-
}
119-
120114
// Audience matching
121115
if (req.variables.jwt_claim_aud != req.variables.oidc_client) {
122116
req.error("OIDC ID Token validation error: aud claim (" + req.variables.jwt_claim_aud + ") does not match $oidc_client");

0 commit comments

Comments
 (0)