When a developer is implementing an Authentication plugin, in some cases
(like an OpenID Connect plugin) it is needed to perform a redirect to
the provider to complete the flow. This was possible in the past (before
moving to Flask) by raising an exception with the proper HTTP code set,
but the framework change made this possibility not available anymore.
Reviewed: https:/ /review. opendev. org/c/openstack /keystone/ +/754694 /opendev. org/openstack/ keystone/ commit/ 1c106f48b05d45e 87ecdfbda1586d9 456d818f7e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 1c106f48b05d45e 87ecdfbda1586d9 456d818f7e
Author: ferag <email address hidden>
Date: Thu Nov 21 11:34:40 2019 +0000
Propagate redirect exceptions to the client
When a developer is implementing an Authentication plugin, in some cases
(like an OpenID Connect plugin) it is needed to perform a redirect to
the provider to complete the flow. This was possible in the past (before
moving to Flask) by raising an exception with the proper HTTP code set,
but the framework change made this possibility not available anymore.
Closes-Bug: #1854041 07e6937d0cb3a80 f26cf9bebfc
Co-authored-by: Alvaro Lopez Garcia <email address hidden>
Change-Id: I333eb15c66f372