Add Multi-tenancy support for Reactive Resource Server#6861
Add Multi-tenancy support for Reactive Resource Server#6861jzheaux merged 1 commit intospring-projects:masterfrom
Conversation
|
@jzheaux I have decided to create a draft pull request to get some feedback before proceeding with updating the Seems like draft pull requests does not trigger build, I wish it did that way we would have figured whether the changes added break any tests or not. |
|
@jzheaux thank you for the initial review. I think |
|
Hi @jzheaux The switch to Also, please let me know if any changes need to be made in method names (naming is not my strongest skill set), javadoc, and remaining tests (if any). Thanks for your feedback. |
15ce1f8 to
6226e6c
Compare
|
Hey @jzheaux sorry, I had some I have pushed my changes that contains the even though I have stubbed the authentication manager to return |
|
@rhamedy, I think the problem is that when just I'd recommend something similar to this: if (this.authenticationManagerResolver != null) {
AuthenticationWebFilter oauth2 = new AuthenticationWebFilter(this.authenticationManagerResolver);
oauth2.setServerAuthenticationConverter(bearerTokenConverter);
oauth2.setAuthenticationFailureHandler(new
ServerAuthenticationEntryPointFailureHandler(entryPoint));
http.addFilterAt(oauth2, SecurityWebFiltersOrder.AUTHENTICATION);
} else if (this.jwt != null) {
this.jwt.configure(http);
} else if (this.opaqueToken != null) {
this.jwt.configure(http);
}The extra support in |
936941f to
28b3181
Compare
|
Hi @jzheaux thanks for hint above, that seemed to be the issue with failing tests. I squashed my commits and pushed my changes. Please let me know if there is need for more tests and/or javadoc. |
Suitable for multi-tenant reactive applications needing to branch authentication strategies based on request details.
|
Thanks, @rhamedy, this is now merged into |
Fixes: gh-6727
Fixes: gh-6723