Step Up Authentication and infinite redirect Loops #1321
Unanswered
singhmann1
asked this question in
Q&A
Replies: 1 comment 3 replies
-
you must use a |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have implemented stepup authentication using acr_values referring to the page located at https://github.com/OpenIDC/mod_auth_openidc/wiki/Step-up-Authentication
We have the following setup on Apache:
<Location /admin>
AuthType openid-connect
<RequireAll>
Require valid-user
Require claim acr:2
Require claim group:admins_group
</RequireAll>
OIDCUnAutzAction auth
OIDCPathAuthRequestParams acr_values=2
</Location>
When the user accesses the application context /admin they are redirected to the IDP for authentication, after successful authentication the user is redirected back to this application where the claims are validated. If the acr claim is set to 2 and the group claims is set to admins_group the user is able to access the application successfully.
However if the user has authenticated with acr claim of 2 but does not have the claim of group set to admins_group then they are redirected to the IDP Authorise endpoint for authentication. Because the user has already authenticated they are redirected back to the end application which then does the authorisation checks, here we are hitting an infinite looping problem.
Can we detect this condition and return the user to an access denied page or back to the IDP for authentication with an additional login parameter to force the IDP to redirect the user to the login page?
Beta Was this translation helpful? Give feedback.
All reactions