AuthenticationService class
Constructors
Properties
- androidRedirectUri → String?
-
final
-
authenticationStatus
→ Stream<
AuthenticationStatus> -
Stream for updates to authentication status
no setter
- clientId → String
-
final
- defaultAuthority → String?
-
final
-
defaultScopes
↔ List<
String> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- iosRedirectUri → String?
-
final
- keychain → String?
-
final
- pca ↔ PublicClientApplication?
-
getter/setter pair
- privateSession → bool?
-
privateSession is set to true to request that the browser doesn’t share cookies or other browsing data between the authentication session and the user’s normal browser session. Whether the request is honored depends on the user’s default web browser. Safari always honors the request.
The value of this property is false by default.
final
- redirectUri → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acquireToken(
{List< String> ? scopes}) → Future<String> -
acquireTokenSilently(
{List< String> ? scopes}) → Future<String> -
dispose(
) → void -
init(
) → Future - Initialisation function. Only to be called once on startup or first usage of auth service. @param authorityOverride A override for the authority to use while initiating. This should be used when user previously logged in using a different authority to null such as when signing in with different userflows, such as seperate flows for different social providers
-
login(
{String? authorityOverride}) → Future -
logout(
{bool browserLogout = false}) → Future -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited