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

Logout endpoint missing / not working #57

Open
laitco opened this issue Feb 23, 2022 · 9 comments
Open

Logout endpoint missing / not working #57

laitco opened this issue Feb 23, 2022 · 9 comments

Comments

@laitco
Copy link

laitco commented Feb 23, 2022

/_oauth/logout is not working when i point a /_oauth PathPraefix to the forward-auth-container. How can i delete the session cookies ?

@mhrabovcin
Copy link
Contributor

Could you please share the configuration (without any possible credentials) that you're running?

@laitco
Copy link
Author

laitco commented Feb 24, 2022

Sure. Here my config of the container.

traefik-auth:
    container_name: traefik-auth
    image: mesosphere/traefik-forward-auth
    environment:
      - CLIENT_ID=XXXXXXXXXXXXXXX
      - CLIENT_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      - PROVIDER_URI=https://login.domain.de/auth/realms/master
      - SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      - LOG_LEVEL=debug
      - URL_PATH=/_oauth
      - LIFETIME=43200
      - INSECURE_COOKIE=false
      - COOKIE_DOMAIN=domain.de
      - COOKIE_NAME=_auth_domain
      - CSRF_COOKIE_NAME=_auth_domain_csrf
      - CLAIMS_SESSION_NAME=_auth_domain_claims
      - USER_COOKIE_NAME=_auth_domain_name
    networks:
      - proxy
    labels:
      - "traefik.http.middlewares.traefik-forward-auth.forwardauth.address=http://traefik-auth:4181"
      - "traefik.http.middlewares.traefik-forward-auth.forwardauth.authResponseHeaders=X-Forwarded-User, X-Forwarded-Proto, X-Forwarded-Uri, X-Forwarded-For, X-Forwarded-Method, X-Secret"
      - "traefik.http.services.traefik-forward-auth.loadbalancer.server.port=4181"
      - "traefik.enable=true"
    restart: always
networks:
  proxy:
    external: true

@laitco
Copy link
Author

laitco commented Feb 24, 2022

And here my router config.

http:
  routers:
    login_oauth:
      entryPoints:
        - "https"
      rule: "Host(`login.domain.de`) && PathPrefix(`/_oauth`)"
      middlewares:
        - default-headers
        - https-redirect
        - rate-limit
      tls:
        options: tls-options
      service: login_oauth
	  
  services:
    login_oauth:
      loadBalancer:
        servers:
          - url: "http://traefik-auth:4181"
        passHostHeader: true

@laitco
Copy link
Author

laitco commented Mar 3, 2022

Something new ?

@laitco
Copy link
Author

laitco commented Mar 3, 2022

Please implement like: thomseddon/traefik-forward-auth#107

@laitco laitco changed the title /_oauth/logout not working Logout endpoint missing / not working Mar 3, 2022
@laitco
Copy link
Author

laitco commented Mar 31, 2022

Something new ?

@dhofstetter
Copy link

For me the same Issue appears, I'm not able to logout using the Endpoint. Is it included here?

@codebude
Copy link

codebude commented Aug 7, 2023

Any chance that this gets implemented?

@lvijnck
Copy link

lvijnck commented Aug 22, 2023

+1

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

No branches or pull requests

5 participants