oauth logout URL #13188
-
Ask a Question!Hello, I have configured portainer OAUTH (SP) with authentik (IdP). Question: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
For Authentik as IdP with Portainer as SP, the logout URL you'd set on the Authentik side is typically Portainer's logout endpoint. Portainer doesn't have a dedicated OIDC/OAuth logout callback endpoint though — it just clears the local session. If Authentik supports back-channel logout or front-channel logout, you'd point it to your Portainer URL plus But honestly I'm not sure Portainer implements the OIDC front-channel logout spec properly. You might want to just set the "post-logout redirect URI" in Authentik to redirect back to your Portainer login page after Authentik clears its own session: What exact field in Authentik are you trying to configure? There are a few different logout-related settings (post-logout redirect, backchannel logout URL, etc.) and they work differently. |
Beta Was this translation helpful? Give feedback.
-
Authentik supports both front-channel and back-channel logout, with back-channel recommended. See https://docs.goauthentik.io/add-secure-apps/providers/single-logout/ for details.
Logout in the IdP. I put in as the back-channel logout URL and it works perfectly. Thank you for your help. |
Beta Was this translation helpful? Give feedback.
For Authentik as IdP with Portainer as SP, the logout URL you'd set on the Authentik side is typically Portainer's logout endpoint. Portainer doesn't have a dedicated OIDC/OAuth logout callback endpoint though — it just clears the local session.
If Authentik supports back-channel logout or front-channel logout, you'd point it to your Portainer URL plus
/#!/auth/logout, something like:But honestly I'm not sure Portainer implements the OIDC front-channel logout spec properly. You might want to just set the "post-logout redirect URI" in Authentik to redirect back to your Portainer login page after Authentik clears its own session: