Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class InMemoryClientRegistrationRepository
- Object
- InMemoryClientRegistrationRepository
ImplementsClientRegistrationRepository
Registrations given when the server starts.
@Bean
ClientRegistrationRepository providers() {
return new InMemoryClientRegistrationRepository(
CommonOAuth2Provider.GOOGLE.getBuilder("google")
.clientId(id).clientSecret(secret).build());
}
Constructors
public InMemoryClientRegistrationRepository(ClientRegistration... registrations) | |
public InMemoryClientRegistrationRepository(List<ClientRegistration> registrations) |
Methods
public ClientRegistration findByRegistrationId(String registrationId) | The registration under this id, or null. |
public List<ClientRegistration> getRegistrations() | Every registration, in the order given. |
Inherited methods
Constructor details
InMemoryClientRegistrationRepository
public InMemoryClientRegistrationRepository(ClientRegistration... registrations)InMemoryClientRegistrationRepository
public InMemoryClientRegistrationRepository(List<ClientRegistration> registrations)Method details
findByRegistrationId
public ClientRegistration findByRegistrationId(String registrationId)The registration under this id, or null.
getRegistrations
public List<ClientRegistration> getRegistrations()Every registration, in the order given.