-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
jwt auth plugin support customize err msg #7095
Comments
We can inject a common _meta with rejected_msg to the plugin. |
So other auth plugins can also use the same way. |
I'd like to know where this technique is demonstrated, I can't find the relevant code to handle it. |
Err. It is just a plan in my mind yet. |
Description
Right now, we can see if jwt auth failed we can get a error msg {"message":"Missing JWT token in request"}
This tells us we use jwt auth. might be hacker can use the information to do something.
if we can customize the msg will be better to auth security. like consumer restriction plugin, i can use rejected_msg option to change the default msg.
thanks
The text was updated successfully, but these errors were encountered: