Skip to content

Commit f18e833

Browse files
authored
Fixes couchbase#2055 Functional test failing: Test Openidconnect Negative Token Expiry (couchbase#2056)
1 parent 660b1c9 commit f18e833

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

auth/auth.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,9 @@ func (auth *Authenticator) AuthenticateTrustedJWT(token string, provider *OIDCPr
338338
}
339339

340340
// Verify claims - ensures that the token we received from the provider is valid for Sync Gateway
341-
oidc.VerifyClaims(jwt, provider.Issuer, *provider.ClientID)
341+
if err := oidc.VerifyClaims(jwt, provider.Issuer, *provider.ClientID); err != nil {
342+
return nil, jose.JWT{}, err
343+
}
342344
return auth.authenticateJWT(jwt, provider)
343345
}
344346

0 commit comments

Comments
 (0)