OAuthUserCredential class final
A credential for accessing OAuth token secured ArcGIS resources.
- Inheritance
-
- Object
- ArcGISCredential
- OAuthUserCredential
Properties
-
An authorization code to generate the OAuth token.
no setter
- configuration → OAuthUserConfiguration
-
The OAuth configuration details of an application that can sign into an
ArcGIS Online or ArcGIS Enterprise portal using OAuth.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- referer → String
-
The referer used to generate a token.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverContext → Uri
-
The URL by which the root of a server is accessed.
no setterinherited
- username → String
-
The user associated with the credential.
no setterinherited
Methods
-
getTokenInfo(
) → Future< OAuthUserTokenInfo> -
Returns an instance of
OAuthUserTokenInfo
generated by this credential. -
getTokenInfoCancelable(
) → CancelableOperation< OAuthUserTokenInfo> - Cancelable version of getTokenInfo. See that method for more information.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
revokeToken(
) → Future< void> - Sends a network request to revoke OAuth refresh and access tokens.
-
revokeTokenCancelable(
) → CancelableOperation< void> - Cancelable version of revokeToken. See that method for more information.
-
toJson(
) → Map< String, dynamic> -
Returns a JSON representation of this Object in the data type used by jsonDecode.
inherited
-
toJsonString(
) → String -
Returns a JSON representation of this Object as a String.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
{required OAuthUserConfiguration configuration}) → Future< OAuthUserCredential> -
Creates an
OAuthUserCredential
with information needed to access an ArcGIS resource. This initiates the OAuth login process by presenting the OAuth login page. -
createCancelable(
{required OAuthUserConfiguration configuration}) → CancelableOperation< OAuthUserCredential> - Cancelable version of create. See that method for more information.