-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add AuthenticationConverter interface #5340
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
- Adding an AuthenticationConverter interface - Retro-fitting ServerFormLoginAuthenticationConverter, ServerHttpBasicAuthenticationConverter, and ServerOAuth2LoginAuthenticationTokenConverter to implement AuthenticationConverter - Deprecate existing AuthenticationWebFilter.setAuthenticationConverter and add overloaded one which takes AuthenticationConverter Fixes gh-5338
Hi @rwinch just a gentle ping to see if this PR needs any more polish or anything. |
@edeandrea Thanks for the ping. I haven't had time to review this in detail. A few things that jump to my attention
|
This reverts commit 0598d47.
Adjusted return type of #decoder(JwtDecoder) and #jwkSetUri(String) to return the JwtDecoder itself. Added new method #and() that returns the enclosing OAuth2ResourceServerConfigurer. Fixes gh-5595
OIDC Provider Configuration is now being used to create more than just ClientRegistration instances. Also, the endpoint is being addressed in more contexts than just the client. To that end, this refactors OidcConfigurationProvider in the config project to ClientRegistrations in the oauth2-client project. Fixes: gh-5647
This introduces OAuth2TokenValidator which allows the customization of validation steps that need to be performing when decoding a string token to a Jwt. At this point, two validators, JwtTimestampValidator and JwtIssuerValidator, are available for use. Fixes: gh-5133
The current name of createDelegatingJwtValidator is not intuitive. The name implies it is just creating a DelegatingOAuth2TokenValidator with no mention that JwtTimestampValidator is being added. To resolve this, the arguments have been removed and only JwtTimestampValidator is added. User's needing additional validators can add the result of this method to DelegatingOAuth2TokenValidator along with the additional validators they wish to use. The method name has been renamed to createDefault which now accurately reflects what is created. There is no need to have JwtValidator at the end of the method since the method is located in JwtValidators. The commit also adds createDefaultWithIssuer for creating with a specific issuer. Issue: gh-5133
Apologies I think I messed something up here. I think I accidentally merged instead of rebasing. I'll start over with a new PR. |
You should be able to recover from the merge by looking at your reflog. Alternatively, you can save this work in another branch temporarily. Note the sha ids of the commits you made. Come back to this branch and do a If you do want to start a new PR, please close this one out. |
Re-done with #5689 |
AuthenticationConverter
interfaceServerFormLoginAuthenticationConverter
,ServerHttpBasicAuthenticationConverter
,and
ServerOAuth2LoginAuthenticationTokenConverter
to implement AuthenticationConverterAuthenticationWebFilter.setAuthenticationConverter
and add overloaded one which takes
AuthenticationConverter
Fixes gh-5338