authentik icon indicating copy to clipboard operation
authentik copied to clipboard

OIDC: Backchannel logout not containing exp

Open Crow-Control opened this issue 1 year ago • 3 comments

Describe the bug Some oidc clients require exp to be part of the backchannel logout message. For example: Matrix Authentication Server

To Reproduce

Setup OIDC with Matrix Authentication Server. Try Backchannel logout.

See the following in MAS logs: WARN mas_handlers::upstream_oauth2::backchannel_logout:73 POST-8745 - invalid claims in logout token message.sources=[missing claim "exp"]

Expected behavior OpenIDC backchannel logout should be compatible with most implementations and either include exp by default, or have an option to add it

Version and Deployment (please complete the following information):

  • authentik version: v2025.8.1
  • Deployment: docker-compose

Crow-Control avatar Aug 30 '25 12:08 Crow-Control

As explained by @sandhose authentik is missing quite a few required logout token claims: https://openid.net/specs/openid-connect-backchannel-1_0.html#LogoutToken

Crow-Control avatar Sep 03 '25 15:09 Crow-Control

exp seems to be the only required one missing, which other ones are you missing?

https://github.com/goauthentik/authentik/pull/16593 fixes this and will be included in 2025.8.2

BeryJu avatar Sep 03 '25 16:09 BeryJu

Thanks, I'll leave it at #16593 unless I face any other issues.

Crow-Control avatar Sep 03 '25 16:09 Crow-Control