Skip to content

InMemoryClientRegistrationRepository should accept an empty set of registrations #14508

Closed
@espenhw

Description

@espenhw

InMemoryClientRegistrationRepository can be constructed with either a List of ClientRegistrations or a Map of same. However,
passing an empty list is a runtime error while passing an empty map is not.

Commit e554547 changed the assertion in the list case from notNull to notEmpty.

IMO, an empty repository is a perfectly valid use case, so the list constructor should also accept an empty list.

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions