Skip to content

Reactive Implementation of AuthorizedClientServiceOAuth2AuthorizedClientManager (take 2) #7702

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
wants to merge 3 commits into from

Conversation

philsttr
Copy link
Contributor

@philsttr philsttr commented Dec 5, 2019

This is a continuation of PR #7589, and addresses all the code/test fixes mentioned in its review comments.

PR #7589 should be closed in favor of this PR. Thank you @ankurpathak for the initial implementation! I left @ankurpathak 's commit as a separate commit so that he gets credit for his initial work. I can squash this if needed, however. Let me know.

I'd really appreciate it if this was also backported to 5.2.x. It should be simple to backport, since this functionality is isolated in a new class.

Fixes #7569

ankurpathak and others added 2 commits November 27, 2019 07:54
…entManager

ReactiveOAuth2AuthorizedClientServiceReactiveOAuth2AuthorizedClientManager is reactive
version of AuthorizedClientServiceOAuth2AuthorizedClientManager

Fixes: spring-projectsgh-7569
@ghostd
Copy link
Contributor

ghostd commented Dec 6, 2019

Hi @philsttr

I checked with my use case and all is fine. Thanks for the implementation

@jgrandja jgrandja added in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 6, 2019
@jgrandja jgrandja added this to the 5.3.0.M1 milestone Dec 6, 2019
@jgrandja
Copy link
Contributor

jgrandja commented Dec 6, 2019

@philsttr

I'd really appreciate it if this was also backported to 5.2.x. It should be simple to backport, since this functionality is isolated in a new class.

We typically don't backport when new artifacts are added. However, since the feature is isolated in a new class, I'm not concerned with any compatibility issues. I'll backport this to 5.2.x for you.

Copy link
Contributor

@jgrandja jgrandja left a comment

Choose a reason for hiding this comment

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

Thanks for the updates @philsttr. I left a couple of minor comments.
Let's leave @ankurpathak commit and change your commit message to "Polish #7589"

Rename OAuth2AuthorizedClientServiceReactiveOAuth2AuthorizedClientManager to AuthorizedClientServiceReactiveOAuth2AuthorizedClientManager.

Handle empty mono returned from contextAttributesMapper.

Handle empty map returned from contextAttributesMapper.

Fix DefaultContextAttributesMapper so that it doesn't access ServerWebExchange.

Fix unit tests so that they pass.

Use StepVerifier in unit tests, rather than .subscribe().

Fixes spring-projectsgh-7569
@philsttr
Copy link
Contributor Author

@jgrandja I've addressed all of your comments, and force pushed an update to the commit message.

@jgrandja
Copy link
Contributor

Thanks @philsttr ! This is now in master and 5.2.x.

@jgrandja jgrandja closed this Dec 10, 2019
@philsttr philsttr deleted the gh-7569 branch December 10, 2019 21:48
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) type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide reactive implementation of AuthorizedClientServiceOAuth2AuthorizedClientManager
5 participants