virb3 / authelia-basic-2fa Goto Github PK
View Code? Open in Web Editor NEW๐ Use Authelia 2FA through only standard basic auth
๐ Use Authelia 2FA through only standard basic auth
This would benefit users of example VLC.
Reference: https://tools.ietf.org/html/rfc2617#section-3.2.1
Could you please add a example configuration for it?
What's the proper way to use it in Traefik v2?
The logs show this:
{"level":"error","ts":1612719909.455098,"caller":"src/main.go:42","msg":"User 172.20.0.1 not authenticated","stacktrace":"main.handleAuthentication\n\t/src/main.go:42\ngithub.com/labstack/echo/v4.(*Echo).add.func1\n\t/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:522\ngithub.com/labstack/echo/v4.(*Echo).ServeHTTP\n\t/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:633\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2843\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1925"}
{"level":"error","ts":1612719909.455329,"caller":"src/main.go:43","msg":"unrecognized auth header format","stacktrace":"main.handleAuthentication\n\t/src/main.go:43\ngithub.com/labstack/echo/v4.(*Echo).add.func1\n\t/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:522\ngithub.com/labstack/echo/v4.(*Echo).ServeHTTP\n\t/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:633\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2843\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1925"}
[http.middlewares]
[http.middlewares.authelia-basic.forwardAuth]
address = "http://authelia-basic:8081"
trustForwardHeader = true
authResponseHeaders = ["Remote-User", "Remote-Groups"]
Using the setup provided it seems no traffic gets passed to authelia-basic-2fa. When using the configuration provided, the only requests to get passed to a-b-2fa are requests to /auth but the only requests to actually arrive to nginx are GET requests for the /api/verify location, which then get passed directly to authelia making it as if a-b-2fa wasn't even there. Attempting to pass the /api location to a-b-2fa only results in "unrecognized auth header format" errors.
Is there something about the configuration that I'm missing? I'm using authelia-basic-2fa_2.0.13 and authelia v4.22.0 on Debian Buster (no docker involved).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.