Replies: 1 comment 1 reply
-
please provide the version of the module that you're using, the platform that you're on and the server debug logs showing both cases |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to allow only valid user who also has a role claim with student as a value to access the index page under /test
The following is what I added to my config file:
<Location /test>
AuthType openid-connect
LogLevel debug
Require valid-user
Require claim Role:student
OIDCUnAutzAction 403
ErrorDocument 403 "https://:8811/login/error.html"
When I start the server and hit the endpoint -> https://:8811/test, it redirects to a login page, then I use a valid account which has student role to login, but after login succeeds, it still redirects to error.html page
However, if I start the server and hit the endpoint -> https://:8811/login, and after I login successfully, I hit -> https://:8811/test and it gives me the correct content in /test
I wonder why this would happen. How can I get the content in /test if I hit -> https://:8811/test directly without going to /login. Please help!
Beta Was this translation helpful? Give feedback.
All reactions