I am unable to setup trusted header auth with computer. Already running fine with Open WebU, Authelia and Traefik.
After doing the initial setup, I modify config.toml with the following.
[auth]
mode = "trusted_header"
header = "Remote-User"
trusted_sources = ["172.16.2.2"]
The endpoint /api/auth always returns {"authenticated":false}.
Reviewing the code, I believe check_access needs to send remote_user_header
|
auth = check_access(client_host=client_host, jwt_token=token) |
Though if that's added in then the following is returned AuthResult(user_id=None, username='<redacted>', role='user', exp=0) and it never enters the next block because user_id is None.
|
if auth is not None and auth.user_id: |
Not sure what the correct fix is but that is my investigation so far.
I am unable to setup trusted header auth with computer. Already running fine with Open WebU, Authelia and Traefik.
After doing the initial setup, I modify config.toml with the following.
The endpoint /api/auth always returns {"authenticated":false}.
Reviewing the code, I believe check_access needs to send remote_user_header
computer/cptr/routers/auth.py
Line 57 in 3b0e0f8
Though if that's added in then the following is returned
AuthResult(user_id=None, username='<redacted>', role='user', exp=0)and it never enters the next block because user_id is None.computer/cptr/routers/auth.py
Line 59 in 3b0e0f8
Not sure what the correct fix is but that is my investigation so far.