fix token validation and error messages
This commit is contained in:
parent
3663b9d1af
commit
e46029eebd
7 changed files with 57 additions and 31 deletions
|
@ -57,7 +57,7 @@ func ValidateEndSessionRequest(ctx context.Context, req *oidc.EndSessionRequest,
|
|||
if req.IdTokenHint == "" {
|
||||
return session, nil
|
||||
}
|
||||
claims, err := ender.IDTokenVerifier().Verify(ctx, "", req.IdTokenHint)
|
||||
claims, err := ender.IDTokenVerifier().VerifyIdToken(ctx, req.IdTokenHint)
|
||||
if err != nil {
|
||||
return nil, ErrInvalidRequest("id_token_hint invalid")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue