-
Notifications
You must be signed in to change notification settings - Fork 286
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
Custom bearer token interceptor could pick wrong condition #618
Comments
The cause is that |
This might be a sensitive issue security wise, since this implementation might cause bearer tokens to be sent to 3rd party receivers, essentially unintentionally 'sharing' the token with services that shouldn't have that token. |
I've added a (failing) test case to the |
+1 |
The implementation of the custom bearer token interceptor has a flaw: take the following example:
This should return the last condition, but it doesn't. That would be problematic if the
bearerPrefix
orauthorizationHeaderName
would be set to non-default values for condition 2 and/or 3, since the config for condition 2 would be used for requests matching condition 3.The text was updated successfully, but these errors were encountered: