Skip to content

Add oauth2Client MockMvc Test Support #7886

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 Feb 1, 2020 · 0 comments
Closed

Add oauth2Client MockMvc Test Support #7886

jzheaux opened this issue Feb 1, 2020 · 0 comments
Assignees
Labels
in: test An issue in spring-security-test type: enhancement A general enhancement
Milestone

Comments

@jzheaux
Copy link
Contributor

jzheaux commented Feb 1, 2020

We should add test support for OAuth 2.0 Clients that stands independent from OAuth 2.0/OIDC Login test support.

this.mvc.perform(get("/")
        .with(oauth2Client("foo-registration-id")));

this.mvc.perform(get("/")
        .with(oauth2Client().clientRegistration(c -> c
                .registrationId("foo-registration-id")
        ));

this.mvc.perform(get("/")
        .with(oauth2Client().clientRegistration(fooRegistration));
@jzheaux jzheaux added in: test An issue in spring-security-test type: enhancement A general enhancement labels Feb 1, 2020
@jzheaux jzheaux added this to the 5.3.0.RC1 milestone Feb 1, 2020
@jzheaux jzheaux self-assigned this Feb 1, 2020
@jzheaux jzheaux closed this as completed in c367378 Feb 4, 2020
jzheaux added a commit that referenced this issue Feb 4, 2020
jzheaux added a commit to jzheaux/spring-security that referenced this issue Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test An issue in spring-security-test type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant