Credential class
Constructors
-
Credential.fromJson(Map<
String, dynamic> json, {Client? httpClient})
Properties
- client → Client
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- idToken → IdToken
-
no setter
- nonce → String?
-
final
-
onTokenChanged
→ Stream<
TokenResponse> -
Emits a new TokenResponse every time the token is refreshed
no setter
- refreshToken → String?
-
no setter
-
response
→ Map<
String, dynamic> ? -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createHttpClient(
[Client? baseClient]) → Client -
generateLogoutUrl(
{Uri? redirectUri, String? state}) → Uri? - Returns an url to redirect to for a Relying Party to request that an OpenID Provider log out the End-User.
-
getTokenResponse(
[bool forceRefresh = false]) → Future< TokenResponse> -
getUserInfo(
) → Future< UserInfo> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
revoke(
) → Future< void> - Allows clients to notify the authorization server that a previously obtained refresh or access token is no longer needed
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
-
updateToken(
Map< String, dynamic> json) → void -
Updates the token with the given
json
and notifies all listeners of the new token. -
validateToken(
{bool validateClaims = true, bool validateExpiry = true}) → Stream< Exception>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited