create static method
- {required OAuthUserConfiguration configuration}
Creates an OAuthUserCredential
with information needed to access an
ArcGIS resource. This initiates the OAuth login process by presenting the
OAuth login page.
Parameters:
configuration
— The OAuth configuration details of an application that can sign into an ArcGIS Online or ArcGIS Enterprise portal using OAuth.
Return Value: Returns an OAuthUserCredential
.
Implementation
static Future<OAuthUserCredential> create(
{required OAuthUserConfiguration configuration}) {
_initializeArcGISEnvironmentIfNeeded();
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_OAuthUserCredential_createAsync(
configuration._handle, errorHandler);
});
return taskHandle
.toFuture((element) => element.getValueAsOAuthUserCredential()!);
}