Skip to content

Add Resource Server Sample #4

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 Apr 3, 2020 · 4 comments
Closed

Add Resource Server Sample #4

jzheaux opened this issue Apr 3, 2020 · 4 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@jzheaux
Copy link
Contributor

jzheaux commented Apr 3, 2020

Related to

It would be good to have a Resource Server sample that integrates with the authorization server sample. It should be quite similar to the Resource Server sample in Spring Security.

Like other samples, it should go into the samples directory. For simplicity, classes ought to be placed into a package called sample.

Given a valid token from the authorization server, the following test should pass:

this.mockMvc.perform(get("/")
        .header("Authorization", "Bearer " + token))
        .andExpect(status().isOk());
@rwinch rwinch added this to the 0.0.1 milestone Apr 9, 2020
@ketola
Copy link
Contributor

ketola commented Apr 17, 2020

Hi @jzheaux, can I start working on this? I think this should be pretty straight-forward as there's the example from the spring-security project.

@dfcoffin
Copy link

@jzheaux Please provide an explanation of what an integrated Resource Server sample would be? Is it a separate project that accesses the Authorization Server or is it part of the Authorization project? If a separate project does it share a common database with the Authorization Server like the spring-security-oauth project or does it use an Authorization Server interface?

@ketola
Copy link
Contributor

ketola commented Apr 17, 2020

As I understand this, the resource server example will now be the base for an example integration, and as described in the first comment, it's should validate the token.
I don't think it needs to do much more now. The example should evolve when the actual auth server begins to have more features and then demonstrate those features.

@rwinch
Copy link
Member

rwinch commented Apr 17, 2020

@ketola Thanks for reaching out! The issue is yours!

@dfcoffin

Please provide an explanation of what an integrated Resource Server sample would be?

@ketola is spot on. It is a separate minimal application that uses Spring Security's resource server support to validate tokens from the authorization server.

@jgrandja jgrandja added the type: enhancement A general enhancement label Apr 23, 2020
krisztian-toth pushed a commit to krisztian-toth/spring-authorization-server that referenced this issue May 7, 2020
doba16 pushed a commit to doba16/spring-authorization-server that referenced this issue Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants