CidaasLoginProvider class
Provides static methods so a user can authenticate himself
Constructors
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
-
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
Static Methods
-
checkAndLoadConfig(
{String configPath = 'assets/cidaas_config.json'}) → Future< OpenIdConfiguration> -
loads the config file from "assets/cidaas_config.json" or from the provided
configPath
config path -
clearConfig(
) → void - Removes the loaded config
-
doLogin(
BuildContext context) → void - Starts the login process
-
doLogout(
BuildContext context) → Future< bool> - Starts the logout process
-
getAccessTokenByCode(
String code) → Future< TokenEntity?> -
returns the accessToken by the given
code
-
getCidaasConf(
{String? configPath}) → Future< CidaasConfig> - Returns the loaded cidaas configuration
-
getLoginURL(
) → Future< String> - Returns the login URL
-
getOpenIdConfiguration(
{String? configDir}) → Future< OpenIdConfiguration> - Returns the loaded openId configuration
-
getStoredAccessToken(
) → Future< TokenEntity?> - Returns the stored access_token if it is valid.
-
getTokenClaimSetForToken(
String token) → Map< String, dynamic> - Returns the claim set for the provided token
-
isAccessTokenExpired(
String? accessToken) → dynamic -
Check if the given
accessToken
does not expire in less than 60 seconds (or is already expired) -
isAuth(
) → Future< bool> - Check if the access_token is available & not expired
-
renewAccessTokenByRefreshToken(
String refreshToken) → Future< TokenEntity?> -
Refreshes the access_token by the given
refreshToken