Skip to content
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

Simplify retrieving Introspection-specific attributes #26

Open
wants to merge 247 commits into
base: main
Choose a base branch
from
Open

Simplify retrieving Introspection-specific attributes #26

wants to merge 247 commits into from

Conversation

jzheaux
Copy link
Owner

@jzheaux jzheaux commented Mar 16, 2020

eleftherias and others added 30 commits March 17, 2020 12:05
`HttpSecurity#csrf()` obviously returns a `CsrfConfigurer`, while the Javadoc states that it returns the `ServletApiConfigurer`.
Request route that exists; add additional error message verification

Fixes spring-projectsgh-8154
Removed one method as well as a parameter from another method

Issue spring-projectsgh-7711
- Removed reflection usage
- Simplified method signatures

Issue spring-projectsgh-7711
Fixes spring-projectsgh-8147
jzheaux and others added 29 commits June 25, 2020 14:46
- The test intentionally points to a non-existent LDAP server; on
some machines, this will hang indefinitely without a specified
timeout.

Issue spring-projectsgh-2884
Extends all existing builders in NimbusJwtDecoder and NimbusReactiveJwtDecoder with a
post-processor hook to apply changes on the JWTProcessor used for token verification.
Test cases added show how this is used to configure the JWTProcessor to allow additional
JWT typ headers.

Closes spring-projectsgh-8730
Changed conventions to better follow the metadata descriptors that
the registration is meant to represent.

Closes spring-projectsgh-8777
Before:
1. SimpleSavedRequest#getMethod returned null
2. SimpleSavedRequest(SavedRequest request) constructor did not set the method field from request

After:
1. SimpleSavedRequest#getMethod returns method property value
2. SimpleSavedRequest(SavedRequest request) constructor sets the method field from request

Closes spring-projectsgh-8675
In order to simplify retrieving of OAuth 2.0 Introspection specific attributes, OAuth2IntrospectionClaimAccessor interface was introduced and also new OAuth2AuthenticatedPrincipal implementing this new interface (OAuth2IntrospectionAuthenticatedPrincipal).

Also DefaultOAuth2AuthenticatedPrincipal was replaced by OAuth2IntrospectionAuthenticatedPrincipal in cases where OAuth 2.0 Introspection is performed (NimbusOpaqueTokenIntrospector, NimbusReactiveOpaqueTokenIntrospector). DefaultOAuth2AuthenticatedPrincipal can be still used by applications that introspected the token without OAuth 2.0 Introspection.

OAuth2IntrospectionAuthenticatedPrincipal will also be used as a default principal in tests where request is post-processed/mutated by OpaqueTokenRequestPostProcessor/OpaqueTokenMutator.

Closes spring-projectsgh-6489
@qavid qavid deleted the gh-6489 branch July 16, 2020 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify retrieving Introspection-specific attributes