fix(op): allow expired id token hints in authorize (#527)
Like https://github.com/zitadel/oidc/pull/522 for end session, this change allows passing an expired ID token hint to the authorize endpoint.
This commit is contained in:
parent
35d9540fd7
commit
045b59e5a5
1 changed files with 2 additions and 2 deletions
|
@ -391,9 +391,9 @@ func ValidateAuthReqIDTokenHint(ctx context.Context, idTokenHint string, verifie
|
|||
return "", nil
|
||||
}
|
||||
claims, err := VerifyIDTokenHint[*oidc.TokenClaims](ctx, idTokenHint, verifier)
|
||||
if err != nil {
|
||||
if err != nil && !errors.As(err, &IDTokenHintExpiredError{}) {
|
||||
return "", oidc.ErrLoginRequired().WithDescription("The id_token_hint is invalid. " +
|
||||
"If you have any questions, you may contact the administrator of the application.")
|
||||
"If you have any questions, you may contact the administrator of the application.").WithParent(err)
|
||||
}
|
||||
return claims.GetSubject(), nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue