Fix JSONDecodeError from misconfigured OIDCRedirectURI
This change makes the OIDCRedirectURI into a fake URI. If OIDCRedirectURI matches a real Keystone federation auth endpoint, the Keystone federation auth journey breaks. Closes-Bug: 2075349 Change-Id: I39ad349db5175ca8c0e1669f784c70042e18a3f6
This commit is contained in:
@@ -30,7 +30,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 }}
|
||||
@@ -49,6 +49,14 @@ OIDCOAuthClientSecret {{ options.oidc_client_secret }}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
|
||||
<LocationMatch /v3/redirect_uri>
|
||||
Require valid-user
|
||||
AuthType {{ options.auth_type }}
|
||||
{%- if options.debug %}
|
||||
LogLevel debug
|
||||
{%- endif %}
|
||||
</LocationMatch>
|
||||
|
||||
<LocationMatch /v3/OS-FEDERATION/identity_providers/{{ options.idp_id }}/protocols/{{ options.protocol_id }}/auth>
|
||||
AuthType {{ options.auth_type }}
|
||||
Require valid-user
|
||||
|
Reference in New Issue
Block a user