Add OIDCDiscoverURL mod_oidc option

This gets rid of one of the steps in the authentication flow.

Closes-Bug: 1930055
Change-Id: I4ed4651b55a912f1d9aec7277bae6bb4776f1e0a
This commit is contained in:
Will Szumski 2021-05-28 17:22:31 +01:00 committed by Piotr Parczewski
parent 7f2d203354
commit e7455759ad
2 changed files with 8 additions and 0 deletions

View File

@ -79,6 +79,7 @@ LogLevel info
{% for idp in keystone_identity_providers %}
{% if idp.protocol == 'openid' %}
<LocationMatch /v3/auth/OS-FEDERATION/identity_providers/{{ idp.name }}/protocols/{{ idp.protocol }}/websso>
OIDCDiscoverURL {{ keystone_public_url }}/redirect_uri?iss={{ idp.identifier | urlencode }}
Require valid-user
AuthType openid-connect
</LocationMatch>

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixes an issue with an OIDC authentication flow requiring unnecessary
action from the user. Redirecting to the target IdP page now happens
automatically.
`LP#930055 <https://bugs.launchpad.net/kolla-ansible/+bug/1930055>`__