feat: update end session request to pass all params according to specification (#754)
* feat: update end session request to pass all params according to specification * register encoder
This commit is contained in:
parent
7d57aaa999
commit
f94bd541d7
4 changed files with 23 additions and 5 deletions
|
@ -73,6 +73,8 @@ func ValidateEndSessionRequest(ctx context.Context, req *oidc.EndSessionRequest,
|
|||
|
||||
session := &EndSessionRequest{
|
||||
RedirectURI: ender.DefaultLogoutRedirectURI(),
|
||||
LogoutHint: req.LogoutHint,
|
||||
UILocales: req.UILocales,
|
||||
}
|
||||
if req.IdTokenHint != "" {
|
||||
claims, err := VerifyIDTokenHint[*oidc.IDTokenClaims](ctx, req.IdTokenHint, ender.IDTokenHintVerifier(ctx))
|
||||
|
|
|
@ -6,6 +6,7 @@ import (
|
|||
"time"
|
||||
|
||||
jose "github.com/go-jose/go-jose/v4"
|
||||
"golang.org/x/text/language"
|
||||
|
||||
"github.com/zitadel/oidc/v3/pkg/oidc"
|
||||
)
|
||||
|
@ -170,6 +171,8 @@ type EndSessionRequest struct {
|
|||
ClientID string
|
||||
IDTokenHintClaims *oidc.IDTokenClaims
|
||||
RedirectURI string
|
||||
LogoutHint string
|
||||
UILocales []language.Tag
|
||||
}
|
||||
|
||||
var ErrDuplicateUserCode = errors.New("user code already exists")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue