We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20e8067 commit 1cfe7b3Copy full SHA for 1cfe7b3
1 file changed
web/auth/token_exchange.go
@@ -88,7 +88,8 @@ func validateTokenExchangeIDToken(inst *instance.Instance, raw string) (jwt.MapC
88
89
expectedIssuer, err := oidcprovider.GetIssuer(inst.ContextName, conf)
90
if err != nil {
91
- return nil, errors.New("invalid token")
+ inst.Logger().WithNamespace("token_exchange").Errorf("Cannot get OIDC issuer for context %s: %s", inst.ContextName, err)
92
+ return nil, echo.NewHTTPError(http.StatusInternalServerError, "internal server error")
93
}
94
issuer, err := claims.GetIssuer()
95
if err != nil || issuer == "" || issuer != expectedIssuer {
0 commit comments