-
Notifications
You must be signed in to change notification settings - Fork 6k
Polish Server|ServletBearerExchangeFilterFunction #7355
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jzheaux. There are a couple of minor changes needed
.../oauth2/server/resource/web/reactive/function/client/ServerBearerExchangeFilterFunction.java
Show resolved
Hide resolved
implements ExchangeFilterFunction { | ||
|
||
private static final String AUTHENTICATION_ATTR_NAME = Authentication.class.getName(); | ||
|
||
private static final AnonymousAuthenticationToken ANONYMOUS_USER_TOKEN = new AnonymousAuthenticationToken("anonymous", "anonymousUser", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not needed please remove
.../oauth2/server/resource/web/reactive/function/client/ServerBearerExchangeFilterFunction.java
Show resolved
Hide resolved
...oauth2/server/resource/web/reactive/function/client/ServletBearerExchangeFilterFunction.java
Outdated
Show resolved
Hide resolved
public final class ServletBearerExchangeFilterFunction | ||
implements ExchangeFilterFunction { | ||
|
||
private static final AnonymousAuthenticationToken ANONYMOUS_USER_TOKEN = new AnonymousAuthenticationToken("anonymous", "anonymousUser", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove as it's not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's used on line 91. Are you proposing a change to currentAuthentication()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes just return Mono.empty()
...oauth2/server/resource/web/reactive/function/client/ServletBearerExchangeFilterFunction.java
Show resolved
Hide resolved
Thanks again, @jgrandja, big improvement here. |
Fixes gh-7353