[Bug]: --allowed-role from keycloak-oidc breaks basic authentication configured with htpasswd #2791
Open
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.
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