Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy provider - Forward-auth (domain level) - how to logout? #1113

Closed
thmerlin opened this issue Jul 6, 2021 · 4 comments
Closed

Proxy provider - Forward-auth (domain level) - how to logout? #1113

thmerlin opened this issue Jul 6, 2021 · 4 comments
Labels
question Further information is requested

Comments

@thmerlin
Copy link

thmerlin commented Jul 6, 2021

I have correctly setup the proxy provider for forward-authentication at domain level (I'm using Traefik). So, accessing one site configured behind it redirects me to the Authentik login page. When successfully authenticated, I'm then redirect to the site I was trying to access.

After this flow, 2 cookies (domain level) have been created:

  • authentik_proxy_0
  • authentik_proxy_1

image

But now, I wonder how I can logout from it.
I was expecting that going onto the Authentik panel for my currently logged in user, then logout, would clean up my cookies used for forward authentication. But it only cleans the session cookie.

So, for the sites for which I configured the forward-authentication, I cannot logout easily. I have to delete by myself the 2 cookies that were set up.

Am I missing something ?

NB: the cookie domain configured at my proxy provider is domain.com (and my authentik host is at authentik.domain.com)
And I can see in Firefox that the 2 mentioned cookies above are on domain .domain.com.

I also tried to use the end-session url for the application used for this forward-auth (ie: https://authentik.domain.com/application/o/<application-slug>/end-session/). But it doesn't make any difference.

@thmerlin thmerlin added the question Further information is requested label Jul 6, 2021
@BeryJu
Copy link
Member

BeryJu commented Jul 6, 2021

Hi, so to log out with the proxy provider, you can navigate to proxy-auth-domain.foo.tld/akprox/sign_out, this will clear the cookies for the proxy provider and then redirect you to the end-session URL from authentik, where you can then fully log out.

BeryJu added a commit that referenced this issue Jul 6, 2021
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

#1113
@thmerlin
Copy link
Author

thmerlin commented Jul 6, 2021

Thanks for the quick response. It does exactly what I expected.

@thmerlin thmerlin closed this as completed Jul 6, 2021
@BeryJu
Copy link
Member

BeryJu commented Jul 6, 2021

Also added a small notice in the docs for the future

@ksaadDE
Copy link

ksaadDE commented May 15, 2024

Opened a discussion on this #9737

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants