Skip to content

IDToken in TokenExchangeReponse #748

@lmindwarel

Description

@lmindwarel

Preflight Checklist

  • 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    🧐 Investigating

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions