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 ClientRegistration.withClientRegistration(ClientRegistration) #7486

Closed
jzheaux opened this issue Sep 27, 2019 · 0 comments
Closed

Add ClientRegistration.withClientRegistration(ClientRegistration) #7486

jzheaux opened this issue Sep 27, 2019 · 0 comments
Assignees
Labels
in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: enhancement A general enhancement
Milestone

Comments

@jzheaux
Copy link
Contributor

jzheaux commented Sep 27, 2019

Given that a ClientRegistration has numerous possible inputs, it may be handy to take an existing ClientRegistration and build a new one from it, say, to just change a single value.

ClientRegistration clientRegistration = this.repository.findByRegistrationId(id);
ClientRegistration updated = ClientRegistration.withClientRegistration(clientRegistration)
        .clientSecret(updatedSecret).build();
@jzheaux jzheaux added type: enhancement A general enhancement in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) labels Sep 27, 2019
@jzheaux jzheaux added this to the 5.2.0 milestone Sep 27, 2019
@jzheaux jzheaux self-assigned this Sep 27, 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) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant