diff --git a/templates/apache-openidc-location.conf b/templates/apache-openidc-location.conf
index 9146d0f..a89de91 100644
--- a/templates/apache-openidc-location.conf
+++ b/templates/apache-openidc-location.conf
@@ -42,7 +42,7 @@ OIDCClientID {{ options.oidc_client_id }}
OIDCClientSecret {{ options.oidc_client_secret }}
{% endif -%}
OIDCCryptoPassphrase {{ options.oidc_crypto_passphrase }}
-OIDCRedirectURI {{ options.scheme }}://{{ options.hostname }}:{{ options.port }}/v3/OS-FEDERATION/identity_providers/{{ options.idp_id }}/protocols/{{ options.protocol_id }}/auth
+OIDCRedirectURI {{ options.scheme }}://{{ options.hostname }}:{{ options.port }}/v3/redirect_uri
{% if options.oidc_remote_user_claim -%}
OIDCRemoteUserClaim {{ options.oidc_remote_user_claim }}
@@ -64,6 +64,14 @@ OIDCOAuthClientSecret {{ options.oidc_client_secret }}
OIDCOutgoingProxy {{ options.oidc_outgoing_proxy }}
{% endif -%}
+
+ Require valid-user
+ AuthType {{ options.auth_type }}
+{%- if options.debug %}
+ LogLevel debug
+{%- endif %}
+
+
AuthType {{ options.auth_type }}
Require valid-user