Skip to content

Add opaque token test support #7712

Closed
Closed
@jzheaux

Description

@jzheaux

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")));

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions