Show / Hide Table of Contents

Method CreateAsync

CreateAsync(OAuthUserConfiguration, CancellationToken)

Creates an OAuthUserCredential with information needed to access an ArcGIS resource. This initiates the OAuth login process by invoking the OAuthAuthorizeHandler.

Declaration
public static Task<OAuthUserCredential> CreateAsync(OAuthUserConfiguration configuration, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
OAuthUserConfiguration configuration

The OAuth configuration details of an application that can sign into an ArcGIS Online or ArcGIS Enterprise portal using OAuth.

System.Threading.CancellationToken cancellationToken

Optional cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<OAuthUserCredential>

A task that represents the asynchronous creation operation. The value of the task result is an OAuthUserCredential.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.6 - 200.8
.NET200.6 - 200.8
.NET Windows200.6 - 200.8
.NET Android200.6 - 200.8
.NET iOS200.6 - 200.8
.NET Framework200.6 - 200.8
UWP200.6 - 200.8
In This Article
Back to top Copyright © 2022 Esri.