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

Add opaque token test support #7712

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
Milestone

Comments

@jzheaux
Copy link
Contributor

@jzheaux 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 added a commit to jzheaux/spring-security that referenced this issue Dec 12, 2019
@jzheaux

This comment has been minimized.

Copy link
Contributor Author

@jzheaux jzheaux commented Dec 20, 2019

Related to, though more specific than #7528

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.