MirtoBusico commented on issue #6345:
URL: https://github.com/apache/apisix/issues/6345#issuecomment-1042672701


   Well,
   if I try 
   ```
   
https://www.m01.net/auth/realms/apisix_test_realm/protocol/openid-connect/token/introspect
   ```
   the login screen appear, I can login and then I receive a 404 error
   ```
   Not Found
   The requested URL was not found on the server. If you entered the URL 
manually please check your spelling and try again.
   ```
   But now the user is authenticated and if I try
   ```
   https://www.m01.net/image/png
   ```
   it works correctly
   
   It seems I don't understand how to use this plugin as explained here
   ```
   https://apisix.apache.org/docs/apisix/plugins/openid-connect
   ```
   
   What I'm trying to do is 
   
   - if a user go to "https://www.m01.net/*"; and is not authenticated, the user 
have to be redirect to the keycloak login page and then redirect to the 
application home page
   - if the user go to "https://www.m01.net/user/*"; and is authenticated the 
page access is permitted if the user have "role=user"
   - if the user go to "https://www.m01.net/editor/*"; and is authenticated the 
page access is permitted if the user have "role=editor"
   - exists a "logout" url
   
   I don't know how to do this
   
   
   
   
   
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to