Coder Social home page Coder Social logo

Comments (5)

evgnblkn avatar evgnblkn commented on June 12, 2024

In the Traefik log when accessing whoami:
level=debug msg="Remote error http://auth:4181. StatusCode: 307" middlewareName=oauth@docker middlewareType=ForwardedAuthType

from traefik-forward-auth.

Rathna-K avatar Rathna-K commented on June 12, 2024

Did you figure it out?
Here is what worked for me:
# labels:
# - 'traefik.enable=true'
# - 'traefik.port=xxx'
# - "traefik.http.middlewares.whoami.redirectscheme.scheme=https"
# - "traefik.http.routers.whoami.middlewares=auth"
# - "traefik.http.routers.whoami-insecure.rule=Host(domain.com)"
# - "traefik.http.routers.whoami-insecure.middlewares= whoami"
# - "traefik.http.routers.whoami.rule=Host(domain.com)"
# - "traefik.http.routers.whoami.entrypoints=websecure"
# - "traefik.http.routers.whoami.tls.certresolver=myresolver"
# - "traefik.http.services.whoami.loadBalancer.server.port=xxx"
I do use a different OIDC though.

@thomseddon great work btw, several years after the service still going strong. Are you still using this or moved away?

from traefik-forward-auth.

nikolai-in avatar nikolai-in commented on June 12, 2024

Same problem with gitea. @evgnblkn, did you manage to fix it?

from traefik-forward-auth.

oblq avatar oblq commented on June 12, 2024

I don't know if this is the cause but:
- "PROVIDERS_GENERIC_OAUTH_AUTH_URL=gitia.example2.com/login/oauth/authorize"
------------------------------------> gitia 👆🏼

from traefik-forward-auth.

monsdar avatar monsdar commented on June 12, 2024

You configure traefik.http.middlewares.auth.basicauth, shouldn't it be of type traefik.http.middlewares.auth.forwardauth instead? That way you can also correctly configure address, authResponseHeaders and trustForwardHeader.

UPDATE: Nevermind, just saw that you configure both middleware-types and apply the oauth middleware as needed.

from traefik-forward-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.