Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Nothing gets passed to authelia-basic-2fa #1

Closed
dsuni opened this issue Oct 12, 2020 · 2 comments
Closed

Nothing gets passed to authelia-basic-2fa #1

dsuni opened this issue Oct 12, 2020 · 2 comments

Comments

@dsuni
Copy link

dsuni commented Oct 12, 2020

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).

@dsuni
Copy link
Author

dsuni commented Oct 14, 2020

Okay... The issue was that authelia-basic-2fa is to be configured differently than authelia. For authelia you configure:
location /authelia {
...
proxy_pass http://authelia:9091/api/verify;

but for authelia-basic-2fa you need to configure:
location /authelia {
...
proxy_pass http://authelia:8081/; # no /api/verify here

This was... less than obvious from the documentation.

@dsuni dsuni closed this as completed Oct 14, 2020
ViRb3 added a commit that referenced this issue Feb 8, 2021
@ViRb3
Copy link
Owner

ViRb3 commented Feb 8, 2021

Hello and thanks for the feedback. I updated the documentation and incorporated your suggestion.

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

No branches or pull requests

2 participants