Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help request: is there a way for authz-keycloak plugin to redirect when an invalid bearer token is provided? #11588

Closed
Xb990219 opened this issue Sep 18, 2024 · 2 comments
Labels
question label for questions asked by users

Comments

@Xb990219
Copy link

Description

I have search for the current issues and cannot find a solution.

I know there is an access_denied_redirect_uri attribute in authz-keycloak plugin to redirect the user when the permission is denied by keycloak. Is there a way to redirect to another uri when the bearer token is invalid, instead of throwing a 401 unauthorized error?

Appreciate the help!!

Environment

  • APISIX version (run apisix version):
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):
@dosubot dosubot bot added the question label for questions asked by users label Sep 18, 2024
@shreemaan-abhishek
Copy link
Contributor

Is there a way to redirect to another uri when the bearer token is invalid, instead of throwing a 401 unauthorized error?

If the bearer token is invalid, the keycloak server would send 401 and APISIX has no control over that.

@Xb990219
Copy link
Author

Is there a way to redirect to another uri when the bearer token is invalid, instead of throwing a 401 unauthorized error?

If the bearer token is invalid, the keycloak server would send 401 and APISIX has no control over that.

I see, thanks a lot.

@Xb990219 Xb990219 reopened this Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question label for questions asked by users
Projects
Archived in project
Development

No branches or pull requests

2 participants