Class InMemoryClientRegistrationRepository
java.lang.Object
com.codename1.backend.security.oauth2.client.InMemoryClientRegistrationRepository
- All Implemented Interfaces:
ClientRegistrationRepository
public final class InMemoryClientRegistrationRepository
extends Object
implements ClientRegistrationRepository
Registrations given when the server starts.
@Bean
ClientRegistrationRepository providers() {
return new InMemoryClientRegistrationRepository(
CommonOAuth2Provider.GOOGLE.getBuilder("google")
.clientId(id).clientSecret(secret).build());
}
-
Constructor Summary
ConstructorsConstructorDescriptionInMemoryClientRegistrationRepository(ClientRegistration... registrations) InMemoryClientRegistrationRepository(List<ClientRegistration> registrations) -
Method Summary
Modifier and TypeMethodDescriptionfindByRegistrationId(String registrationId) The registration under this id, or null.Every registration, in the order given.
-
Constructor Details
-
InMemoryClientRegistrationRepository
-
InMemoryClientRegistrationRepository
-
-
Method Details
-
findByRegistrationId
Description copied from interface:ClientRegistrationRepositoryThe registration under this id, or null.- Specified by:
findByRegistrationIdin interfaceClientRegistrationRepository
-
getRegistrations
Every registration, in the order given.
-