Skip to content

JWT Assertion payload does not match RFC example when generated with OIDC relying party #452

Open
@Kunde21

Description

Preflight Checklist

  • I could not find a solution in the documentation, the existing issues or discussions
  • I have joined the ZITADEL chat

Version

v2.11.0

Describe the problem caused by this bug

JWT assertion payload does not match format from example in rfc 7523 - section 4 causing errors when connecting to systems that require audience be a string value.

To reproduce

Create a relying party with the WithJWTProfile option, attempt a token exchange.

Generated assertion body:

{
  "iss": "2da2387b-f75f-4c86-a0fe-3109d8aa6943",
  "sub": "2da2387b-f75f-4c86-a0fe-3109d8aa6943",
  "aud": [
    "https://127.0.0.1/"
  ],
  "iat": 1696409593,
  "exp": 1696413193
}

Screenshots

No response

Expected behavior

Expected assertion body:

{
  "iss": "2da2387b-f75f-4c86-a0fe-3109d8aa6943",
  "sub": "2da2387b-f75f-4c86-a0fe-3109d8aa6943",
  "aud": "https://127.0.0.1/",
  "iat": 1696409593,
  "exp": 1696413193
}

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status

      📨 Product Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions