AuthenticationManager class abstract
Base class for the different authentication approaches to the S3I-IdentityProvider.
- Implementers
Constructors
-
AuthenticationManager.new(ClientIdentity clientIdentity, {List<
String> scopes = const <String>[]}) -
Creates an AuthenticationManager with the given
clientIdentity
and the givenscopes
(with an empty list as default).
Properties
- clientIdentity → ClientIdentity
-
The identity used to issue tokens at the IdP.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scopes
↔ List<
String> -
All scopes which are added to the auth request.
getter/setter pair
Methods
-
getAccessToken(
{int tokenValidBuffer = 10}) → Future< AccessToken> -
Returns a valid AccessToken for the clientIdentity
which is at least valid for the time specified in
tokenValidBuffer
. -
logout(
) → Future< bool> - Deletes old tokens and invalidates the token session at the IdP.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setScopes(
List< String> newScopes) → void -
Sets the scopes which are used for issuing a new token.
If
newScopes
is NOT equals scopes both tokens are invalidated (doesn't mind the order of the scopes). -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited