Skip to content
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

Add Support SupplierReactiveClientRegistrationRepository #16770

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

franticticktick
Copy link
Contributor

Closes gh-16750

Closes spring-projectsgh-16750

Signed-off-by: Max Batischev <mblancer@mail.ru>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 19, 2025
Copy link
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

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

Thanks, @franticticktick! I've left my feedback inline.

public <T extends ReactiveClientRegistrationRepository & Iterable<ClientRegistration>> SupplierReactiveClientRegistrationRepository(
Supplier<? extends ReactiveClientRegistrationRepository> repositorySupplier) {
Assert.notNull(repositorySupplier, "repositorySupplier cannot be null");
this.repositorySupplier = SingletonSupplier.of(repositorySupplier);
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you able to change this logic to reflect SupplierReactiveJwtDecoder? I'd prefer to rely on reactive operations in this class since they are available to us.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have JwtDecoderInitializationException to indicate an error with lazy initialization of a JwtDecoder instance. Maybe it makes sense to introduce ClientRegistrationInitializationException in a separate commit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SupplierClientRegistrationRepository for reactive stack
3 participants