oidc icon indicating copy to clipboard operation
oidc copied to clipboard

IDToken in TokenExchangeReponse

Open lmindwarel opened this issue 8 months ago • 1 comments

Preflight Checklist

  • [x] I could not find a solution in the existing issues, docs, nor discussions
  • [ ] I have joined the ZITADEL chat

Describe your problem

In TokenExchangeReponse struct, there is IDToken field with a comment:

// IDToken field allows returning an additional ID token
// if the requested_token_type was Access Token and scope contained openid.
IDToken string `json:"id_token,omitempty"`

This field is never filled, even with access_control requested token type and open id scope.

Describe your ideal solution

Create IDToken in CreateTokenExchangeResponse if the requested_token_type was Access Token and scope contained openid.

Version

No response

Environment

ZITADEL Cloud

Additional Context

No response

lmindwarel avatar May 12 '25 07:05 lmindwarel