InMemoryClientRegistrationRepository should accept an empty set of registrations #14508
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
status: feedback-provided
Feedback has been provided
type: enhancement
A general enhancement
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.
The text was updated successfully, but these errors were encountered: