MobileOAuth class

Inheritance

Constructors

MobileOAuth(Config config)
Instantiating MobileAadOAuth authentication. config Parameters according to official Microsoft Documentation.

Properties

hasCachedAccountInformation Future<bool>
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAccessToken() Future<String?>
Retrieve cached OAuth Access Token. If access token is not valid it tries to refresh the token. parallel can be made getAccessToken will make sure only one request for refreshing token is made.
override
getIdToken() Future<String?>
Retrieve cached OAuth Id Token.
override
login({bool refreshIfAvailable = false}) Future<Either<Failure, Token>>
Perform Azure AD login.
override
logout({bool showPopup = true}) Future<void>
Perform Azure AD logout.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshToken() Future<Either<Failure, Token>>
Tries to silently login. will try to use the existing refresh token to get a new token.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited