Skip to content

bug: Trusted Header auth not working #166

Description

@jcbshw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions