Skip to content

Commit

Permalink
fix: use keycloak-oidc provider for oauth2 proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Feb 14, 2022
1 parent 9f23383 commit 86f88f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/oauth2/default.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ OAUTH2_PROXY_CLIENT_SECRET={{ prometheus_oauth2_client_secret }}
OAUTH2_PROXY_EMAIL_DOMAINS=*
{% if prometheus_oauth2_provider == 'keycloak' %}

OAUTH2_PROXY_PROVIDER=keycloak
OAUTH2_PROXY_SCOPE=openid profile email
OAUTH2_PROXY_PROVIDER=keycloak-oidc
OAUTH2_PROXY_PROVIDER_DISPLAY_NAME=Keycloak
OAUTH2_PROXY_LOGIN_URL={{ prometheus_oauth2_keycloak_url }}/protocol/openid-connect/auth
OAUTH2_PROXY_REDEEM_URL={{ prometheus_oauth2_keycloak_url }}/protocol/openid-connect/token
OAUTH2_PROXY_VALIDATE_URL={{ prometheus_oauth2_keycloak_url }}/protocol/openid-connect/userinfo
OAUTH2_PROXY_REDIRECT_URL={{ prometheus_domain }}/oauth2/callback
OAUTH2_PROXY_OIDC_ISSUER_URL={{ prometheus_oauth2_keycloak_url }}
{% endif %}
{% if prometheus_oauth2_allowed_groups | default(False) %}

Expand Down

0 comments on commit 86f88f7

Please sign in to comment.