Skip to content

Add ClientRegistration.withClientRegistration(ClientRegistration) #7486

@jzheaux

Description

@jzheaux

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();

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions