Skip to content

providers/oauth2: add logout+jwt token type for oidc logout token.#19554

Merged
BeryJu merged 2 commits intogoauthentik:mainfrom
jeroen1602:feature/oidc-logout-token-jwt-type
Jan 22, 2026
Merged

providers/oauth2: add logout+jwt token type for oidc logout token.#19554
BeryJu merged 2 commits intogoauthentik:mainfrom
jeroen1602:feature/oidc-logout-token-jwt-type

Conversation

@jeroen1602
Copy link
Contributor

Details

The oidc back-channel logout spec recommends using explicitly typed JWTs using the typ parameter in the JWT's header.

spec

This may be a breaking change for some implementations if they were already checking the type of the token to be JWT (the default value).


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make docs)

The oidc back-channel logout spec recommends using explicitly typed JWTs using the `typ` parameter in the JWT's header.

[spec](https://openid.net/specs/openid-connect-backchannel-1_0.html#CrossJWT)

This may be a breaking change for some implementations if they were already checking the type of the token to be `JWT` (the default value).
@jeroen1602 jeroen1602 requested a review from a team as a code owner January 18, 2026 17:29
@netlify
Copy link

netlify bot commented Jan 18, 2026

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 1fc4b79
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/696d188e634f5400089f084e
😎 Deploy Preview https://deploy-preview-19554--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Jan 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.22%. Comparing base (ea60228) to head (19a53da).
⚠️ Report is 66 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19554      +/-   ##
==========================================
+ Coverage   92.49%   93.22%   +0.73%     
==========================================
  Files         949      949              
  Lines       52052    52142      +90     
==========================================
+ Hits        48144    48609     +465     
+ Misses       3908     3533     -375     
Flag Coverage Δ
conformance 38.25% <14.28%> (-0.01%) ⬇️
e2e 44.10% <14.28%> (+0.17%) ⬆️
integration 23.15% <7.14%> (?)
unit 91.50% <100.00%> (+<0.01%) ⬆️
unit-migrate 91.53% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Jens L. <jens@beryju.org>
@BeryJu BeryJu added area:backend backport/version-2025.10 Add this label to PRs to backport changes to version-2025.10 backport/version-2025.12 Add this label to PRs to backport changes to version-2025.12 labels Jan 22, 2026
@BeryJu BeryJu added this to the Release 2025.12.2 milestone Jan 22, 2026
@netlify
Copy link

netlify bot commented Jan 22, 2026

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 19a53da
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/697216c4dfa53f00087da98d
😎 Deploy Preview https://deploy-preview-19554--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 22, 2026

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 19a53da
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/697216c4262339000824a797
😎 Deploy Preview https://deploy-preview-19554--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@BeryJu BeryJu merged commit 5c51ee5 into goauthentik:main Jan 22, 2026
102 checks passed
authentik-automation bot pushed a commit that referenced this pull request Jan 22, 2026
…19554)

* providers/oauth2: add `logout+jwt` token type for oidc logout token.

The oidc back-channel logout spec recommends using explicitly typed JWTs using the `typ` parameter in the JWT's header.

[spec](https://openid.net/specs/openid-connect-backchannel-1_0.html#CrossJWT)

This may be a breaking change for some implementations if they were already checking the type of the token to be `JWT` (the default value).

* Apply suggestion from @BeryJu

Signed-off-by: Jens L. <jens@beryju.org>

---------

Signed-off-by: Jens L. <jens@beryju.org>
Co-authored-by: Jens L. <jens@beryju.org>
@authentik-automation
Copy link
Contributor

🍒 Cherry-pick to version-2025.10 created: #19674

authentik-automation bot pushed a commit that referenced this pull request Jan 22, 2026
…19554)

* providers/oauth2: add `logout+jwt` token type for oidc logout token.

The oidc back-channel logout spec recommends using explicitly typed JWTs using the `typ` parameter in the JWT's header.

[spec](https://openid.net/specs/openid-connect-backchannel-1_0.html#CrossJWT)

This may be a breaking change for some implementations if they were already checking the type of the token to be `JWT` (the default value).

* Apply suggestion from @BeryJu

Signed-off-by: Jens L. <jens@beryju.org>

---------

Signed-off-by: Jens L. <jens@beryju.org>
Co-authored-by: Jens L. <jens@beryju.org>
@authentik-automation
Copy link
Contributor

🍒 Cherry-pick to version-2025.12 created: #19675

@jeroen1602 jeroen1602 deleted the feature/oidc-logout-token-jwt-type branch January 22, 2026 13:45
BeryJu added a commit that referenced this pull request Jan 22, 2026
…(cherry-pick #19554 to version-2025.12) (#19675)

providers/oauth2: add `logout+jwt` token type for oidc logout token. (#19554)

* providers/oauth2: add `logout+jwt` token type for oidc logout token.

The oidc back-channel logout spec recommends using explicitly typed JWTs using the `typ` parameter in the JWT's header.

[spec](https://openid.net/specs/openid-connect-backchannel-1_0.html#CrossJWT)

This may be a breaking change for some implementations if they were already checking the type of the token to be `JWT` (the default value).

* Apply suggestion from @BeryJu



---------

Signed-off-by: Jens L. <jens@beryju.org>
Co-authored-by: Jeroen <jeroen@velzen.cc>
Co-authored-by: Jens L. <jens@beryju.org>
BeryJu added a commit that referenced this pull request Jan 22, 2026
…(cherry-pick #19554 to version-2025.10) (#19674)

providers/oauth2: add `logout+jwt` token type for oidc logout token. (#19554)

* providers/oauth2: add `logout+jwt` token type for oidc logout token.

The oidc back-channel logout spec recommends using explicitly typed JWTs using the `typ` parameter in the JWT's header.

[spec](https://openid.net/specs/openid-connect-backchannel-1_0.html#CrossJWT)

This may be a breaking change for some implementations if they were already checking the type of the token to be `JWT` (the default value).

* Apply suggestion from @BeryJu



---------

Signed-off-by: Jens L. <jens@beryju.org>
Co-authored-by: Jeroen <jeroen@velzen.cc>
Co-authored-by: Jens L. <jens@beryju.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend backport/version-2025.10 Add this label to PRs to backport changes to version-2025.10 backport/version-2025.12 Add this label to PRs to backport changes to version-2025.12

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants