oauth2-proxy icon indicating copy to clipboard operation
oauth2-proxy copied to clipboard

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

Open Yc-Chen opened this issue 5 months ago • 0 comments

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

(Please let me know if the error logs are enough, if not, I can work on a reproducible setup.)

Possible Solutions

No response

Configuration details or additional information

No response

Yc-Chen avatar Sep 23 '24 14:09 Yc-Chen