Skip to content

Add Bearer Token filter to Security Filters #5524

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

Merged
merged 1 commit into from
Jul 17, 2018

Conversation

jzheaux
Copy link
Contributor

@jzheaux jzheaux commented Jul 16, 2018

This introduces BearerTokenAuthenticationFilter to SecurityFilters so
that it can be used in the various addFilter methods and with the
custom-filter xml tag.

Fixes: gh-5479

@@ -2721,6 +2721,7 @@
<xs:enumeration value="LOGIN_PAGE_FILTER"/>
<xs:enumeration value="LOGOUT_PAGE_FILTER"/>
<xs:enumeration value="DIGEST_AUTH_FILTER"/>
<xs:enumeration value="BEARER_TOKEN_AUTH_FILTER"/>
Copy link
Contributor Author

@jzheaux jzheaux Jul 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something that we should wait on until #5480?

EDIT It appears that this change is necessary. XsdDocumentedTests requires that the xsd match the contents of SecurityFilters.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jzheaux I'm not sure if the xsd or rnc file should have been changed? I never did update these for oauth2-client filters given that xml support is not there yet. Also, when I do a local build one of these files is changed which never happened before this commit. I believe it's the xsd file that get's generated.

@rwinch Is this change necessary?

This introduces BearerTokenAuthenticationFilter to SecurityFilters so
that it can be used in the various addFilter methods and with the
`custom-filter` xml tag.

Fixes: spring-projectsgh-5479
@rwinch rwinch self-assigned this Jul 17, 2018
@rwinch rwinch added in: config An issue in spring-security-config Namespace in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: enhancement A general enhancement labels Jul 17, 2018
@rwinch rwinch added this to the 5.1.0.M2 milestone Jul 17, 2018
@rwinch rwinch merged commit 884fdbf into spring-projects:master Jul 17, 2018
@rwinch
Copy link
Member

rwinch commented Jul 17, 2018

Thanks for the PR @jzheaux! It is now merged into master

@rwinch rwinch removed in: config An issue in spring-security-config Namespace labels May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add BearerTokenAuthenticationFilter to SecurityFilters
3 participants