Fix mistake in previous commit
This commit is contained in:
parent
e0db59fd09
commit
303b1f07d3
@ -813,7 +813,7 @@ func (h *handlerState) handleRefresh(ctx context.Context, refreshToken *oidctype
|
|||||||
refreshed, err := upstreamOIDCIdentityProvider.PerformRefresh(ctx, refreshToken.Token)
|
refreshed, err := upstreamOIDCIdentityProvider.PerformRefresh(ctx, refreshToken.Token)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Ignore errors during refresh, but return nil which will trigger the full login flow.
|
// Ignore errors during refresh, but return nil which will trigger the full login flow.
|
||||||
h.logger.V(debugLogLevel).Info("Pinniped: Refresh failed.", "err", err)
|
h.logger.V(debugLogLevel).Info("Pinniped: Refresh failed.", "error", err.Error())
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -513,7 +513,7 @@ func TestLogin(t *testing.T) { // nolint:gocyclo
|
|||||||
wantLogs: []string{
|
wantLogs: []string{
|
||||||
`"level"=4 "msg"="Pinniped: Performing OIDC discovery" "issuer"="` + successServer.URL + `"`,
|
`"level"=4 "msg"="Pinniped: Performing OIDC discovery" "issuer"="` + successServer.URL + `"`,
|
||||||
`"level"=4 "msg"="Pinniped: Refreshing cached token."`,
|
`"level"=4 "msg"="Pinniped: Refreshing cached token."`,
|
||||||
`"level"=4 "msg"="Pinniped: Refresh failed."`,
|
`"level"=4 "msg"="Pinniped: Refresh failed." "error"="oauth2: cannot fetch token: 400 Bad Request\nResponse: expected client_id 'test-client-id'\n"`,
|
||||||
`"msg"="could not open callback listener" "error"="some listen error"`,
|
`"msg"="could not open callback listener" "error"="some listen error"`,
|
||||||
},
|
},
|
||||||
// Expect this to fall through to the authorization code flow, so it fails here.
|
// Expect this to fall through to the authorization code flow, so it fails here.
|
||||||
|
Loading…
Reference in New Issue
Block a user