Skip to content

add missing subject_token_type to RFC 8693 token exchange request #3464

@ttschampel

Description

@ttschampel

Summary

The getTokenExchangeRequest function in sdk/auth/oauth/oauth.go was missing the
subject_token_type parameter from the token exchange POST body.

RFC 8693 §2.1 defines subject_token_type as a required parameter when
grant_type is urn:ietf:params:oauth:grant-type:token-exchange. Authorization
servers such as Keycloak reject the request with a 400 error when it is absent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions