Skip to content

gh-6557 @WithMockJwtAuthentication #6595

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

Closed
wants to merge 9 commits into from
Closed

gh-6557 @WithMockJwtAuthentication #6595

wants to merge 9 commits into from

Conversation

ch4mpy
Copy link
Contributor

@ch4mpy ch4mpy commented Mar 7, 2019

Aim

Create an annotation to setup @controllers unit-tests SecurityContext with desired OAuth2 authentication

WIP

As can be seen on issue #6557, some subjects are still being discussed comments.

ch4mpy added 9 commits March 25, 2019 13:33
  * short names for parsers reference (class "simple name" in addition to class "name")
  * better security-context factory unit tests coverage and readability
  * rename from @Property to @Attribute (better matches usage as tokens attributes, claims and headers)
  * rename parser interface from PropertyParser<T> to Parser<FROM_TYPE, TO_TYPE>
  * rename parsers implementations from *PropertyParser to *StringParser
  * set default authorities to { "ROLE_USER" } instead of {}
  * merge authorities and scopes
Also
  * enable scope collection extracting from "scope" claim if single space separated string
  * expose "scopes" at annotation level
@ch4mpy ch4mpy closed this Apr 6, 2019
@ch4mpy ch4mpy deleted the gh-6557 branch April 6, 2019 21:58
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.

1 participant