Skip to content

[Bug]: --allowed-role from keycloak-oidc breaks basic authentication configured with htpasswd #2791

Open
@Yc-Chen

Description

OAuth2-Proxy Version

7.6.0

Provider

keycloak-oidc

Expected Behaviour

I tried to restrict access more by adding --allowed-role, and it works.
But the basic authentication I configured using htpasswd file stopped working.

Current Behaviour

The basic authentication should not be affected by --allowed-role flag, which is a dedicated flag for keycloak-oidc.

From the log, you can see that the user (yicong) has initially been successfully authenticated with htpasswd, but then it failed.

oauth2-proxy.log

Steps To Reproduce

Reproduction repository is here: https://github.com/Yc-Chen/oauth2-proxy-keycloak-role-issue

Possible Solutions

No response

Configuration details or additional information

No response

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions