authentik icon indicating copy to clipboard operation
authentik copied to clipboard

Can/Could Authentik serve as a Relying Party (RP) and receive Back Channel Logouts?

Open teksrq opened this issue 10 months ago • 6 comments

Is your feature request related to a problem?

I have an OpenID OIDC provider that Authentik is properly validating users against. My issue is invalidating the Authentik user session when the OP user account is logged out or removed. I thought Authentik had the functionality to receive logout tokens as an RP of that OP, but after much trying (and AI misleadings) I think the answer is it cannot currently function in this way. Am I correct that currently Authentik will on serve as an OP that sends Back Channel Logout requests, but cannot receive them?

Describe the solution you'd like

Some tighter coupling with the OP that still allows Authentik to serve as a portal for provider, but the Authentik session can be invalidated when receiving a logout request from the OP. Logout requests to the configured providers with logout URIs would also follow.

Describe alternatives that you've considered

No alternatives were found

Additional context

No response

teksrq avatar Jan 23 '26 17:01 teksrq

Maybe I'm misunderstanding your questions but isn't the Logout URL that's shown here on the bottom right what you're looking for?

Image

dewi-tik avatar Jan 26 '26 09:01 dewi-tik

Hi, thanks for commenting, but I believe that's only for logging out a configured Provider Relying Party (RP). My understanding isn't fully baked, but it's the OAuth/OpenID Source/Fed & Social login OP that I validate Authentik users with/against that I want to send the back channel logout to Authentik (as the RP). I was thinking initially that Authentik would be listening for that, but it seems to me it's only currently able to serve as an OP that sends back channel logouts, not as a Relying Party that receives the back channel logout token.

teksrq avatar Jan 27 '26 19:01 teksrq

Maybe this is solvable by #19201?

headlesssetup avatar Feb 20 '26 08:02 headlesssetup

I do not want to promise anything early, but I imagine I will be implementing this at some point in the not too far off future. I have implemented the SAML source variation of this, and would be hoping to add this for OIDC sources after the SAML variation is live

PeshekDotDev avatar Jun 11 '26 04:06 PeshekDotDev

Oh wow, that would be amazing!

teksrq avatar Jun 11 '26 12:06 teksrq

We're closing this in favor of this parent issue: #25283

dominic-r avatar Aug 19 '26 17:08 dominic-r