OAuth2AuthorizedClientService class abstract interface

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 principalName for clientRegistrationId, or null.
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 principalName for clientRegistrationId; nothing happens when there is none.
saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, Authentication principal) → Future<void>
Keeps authorizedClient for principal (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