Skip to content

Add Support for Opaque OAuth2 Tokens to Resource Server - #6352

Merged
jzheaux merged 3 commits into
spring-projects:masterfrom
jzheaux:opaque
Feb 7, 2019
Merged

Add Support for Opaque OAuth2 Tokens to Resource Server#6352
jzheaux merged 3 commits into
spring-projects:masterfrom
jzheaux:opaque

Conversation

@jzheaux

@jzheaux jzheaux commented Jan 4, 2019

Copy link
Copy Markdown
Collaborator

No description provided.

@jzheaux
jzheaux force-pushed the opaque branch 3 times, most recently from 3830e0b to 02faaa8 Compare January 8, 2019 15:33
@rwinch
rwinch requested a review from jgrandja January 9, 2019 17:44
@rwinch rwinch changed the title Opaque Add Support for Opaque OAuth2 Tokens to Resource Server Jan 9, 2019
@jzheaux
jzheaux force-pushed the opaque branch 2 times, most recently from 0f1fc4d to 5faa47b Compare January 10, 2019 02:06

@jgrandja jgrandja left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jzheaux. Please see my comments.

@jzheaux

jzheaux commented Jan 14, 2019

Copy link
Copy Markdown
Collaborator Author

@rwinch I've updated to use RestTemplate. Please feel free to comment there or anywhere else you see room for improvement.

@jzheaux
jzheaux force-pushed the opaque branch 6 times, most recently from 978482f to ebadab9 Compare January 17, 2019 23:25

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just want to ensure we think about if/how this aligns with OAuth2 Log In. Do we support discovery? If an application is supporting oauth2 log in and resource server do we want them to have to configure the client id/secret twice?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think discovery makes sense through the issuer-uri once it supports the /.well-known/oauth-authorization-server endpoint, which defines introspection_endpoint as an attribute.

As for the client, ideally, the user wouldn't need to specify the same client twice as I imagine that the 95% case is that they are the same. If there is only one client in client registration, it seems reasonable to infer that client is the same for the introspection endpoint.

@jgrandja jgrandja left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jzheaux I resolved my previous comments and added a couple new minor ones. This should be it on my end.

@jzheaux
jzheaux force-pushed the opaque branch 2 times, most recently from 89693f0 to eb80815 Compare February 5, 2019 22:48
@jgrandja

jgrandja commented Feb 6, 2019

Copy link
Copy Markdown
Collaborator

Thanks @jzheaux. Good to go on my end.

As an FYI, it's best to not force push while in the review process as it's difficult to keep track of changes between review steps. I would just keep adding commits as you update based on feedback.

@rwinch rwinch added status: duplicate A duplicate of another issue New Feature in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) labels Feb 7, 2019
@rwinch rwinch added this to the 5.2.0.M2 milestone Feb 7, 2019

@rwinch rwinch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now. Please feel free to squash, merge, and polish all metadata (labels, milestones, etc).

NOTE: Reactive support is being tracked at #6513

@jzheaux
jzheaux merged commit 0428906 into spring-projects:master Feb 7, 2019
@jzheaux
jzheaux deleted the opaque branch February 7, 2019 19:40
@jzheaux

jzheaux commented Feb 7, 2019

Copy link
Copy Markdown
Collaborator Author

This is now merged into master.

@rwinch rwinch added the type: enhancement A general enhancement label May 3, 2019
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) status: duplicate A duplicate of another issue type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants