You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/17 08:04:37 UTC
[GitHub] [apisix] MirtoBusico commented on issue #6345: bug: apisix openid plugin gives a 500 error when using a pivate Certification Authority
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org