Skip to content

Add opaque token test support #7712

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
jzheaux opened this issue Dec 9, 2019 · 1 comment
Closed

Add opaque token test support #7712

jzheaux opened this issue Dec 9, 2019 · 1 comment
Assignees
Labels
in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: enhancement A general enhancement
Milestone

Comments

@jzheaux
Copy link
Contributor

jzheaux commented Dec 9, 2019

An application can mock a jwt() authentication in a test using the JwtRequestPostProcessor.

It would be nice to be able to do this for opaque tokens:

this.mvc(get("/").with(opaqueToken()))
this.mvc(get("/").with(opaqueToken()
        .authorities(new SimpleGrantedAuthority("SCOPE_read"))));
this.mvc(get("/").with(opaqueToken()
        .scopes("read")));
@jzheaux jzheaux self-assigned this Dec 9, 2019
@jzheaux jzheaux added this to the 5.3.0.M1 milestone Dec 9, 2019
@jzheaux jzheaux added in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: enhancement A general enhancement labels Dec 9, 2019
@jzheaux
Copy link
Contributor Author

jzheaux commented Dec 20, 2019

Related to, though more specific than #7528

jzheaux added a commit to jzheaux/spring-security that referenced this issue Mar 3, 2020
Remove scopes convenience method to alleviate potential confusion with
the "scope" attribute.

Issue spring-projectsgh-7827
Issue spring-projectsgh-7712
jzheaux added a commit that referenced this issue Mar 3, 2020
Remove scopes convenience method to alleviate potential confusion with
the "scope" attribute.

Issue gh-7827
Issue gh-7712
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

No branches or pull requests

1 participant