Replies: 1 comment
-
It looks like it was first introduced in From the looks of the code, it does seem that this was not expected behavior. The code will enter to: if access_token then But does not set: found_in.authorization_header = true But it still retunrs the Thus I believe that this was probably not an intent. This has been though in a code for very long. Thus, has it became a feature? So two ways:
@coxon, have you found some particular issue because of it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when send request to route which added oauth2 plugin with a oauth2 bearer token, like "Authorization: bearer token", it works as expected, but if i remove token_type as "Authorization:token", the request also authorized.
I read the source code of oauth2 access.lua, the function "parse_access_token()" obtain access_token from "auth_header_name"
and when the token type is not satisfied, a non-null value is still returned.
Is this intentional or a bug?
Beta Was this translation helpful? Give feedback.
All reactions