Keeps the OAuth2AuthorizedClients, by registration and principal.
The login saves the client it created, the manager saves refreshed ones, the logout removes them. The starter declares an InMemoryOAuth2AuthorizedClientService; declare your own to keep them elsewhere (a database).
Spring (Java): OAuth2AuthorizedClientService; the methods return
Futures here.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
loadAuthorizedClient(
String clientRegistrationId, String principalName) → Future< OAuth2AuthorizedClient?> -
The client of
principalNameforclientRegistrationId, ornull. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAuthorizedClient(
String clientRegistrationId, String principalName) → Future< void> -
Forgets the client of
principalNameforclientRegistrationId; nothing happens when there is none. -
saveAuthorizedClient(
OAuth2AuthorizedClient authorizedClient, Authentication principal) → Future< void> -
Keeps
authorizedClientforprincipal(by its name), replacing the one before. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited