C# Class Esri.ArcGisServer.Rest.Authentication.AuthenticationService

This is used to get tokens.
ファイルを表示 Open project: WSDOT-GIS/ArcGisServerRestApiWrapper Class Usage Examples

Public Methods

Method Description
AuthenticationService ( string url = "https://www.arcgis.com/sharing/oauth2/token" ) : System

Creates a new instance of the AuthenticationService.

GetToken ( string clientId, string clientSecret, int expirationInMinutes = null ) : Token

Gets a token.

Method Details

AuthenticationService() public method

Creates a new instance of the AuthenticationService.
public AuthenticationService ( string url = "https://www.arcgis.com/sharing/oauth2/token" ) : System
url string
return System

GetToken() public method

Gets a token.
Thrown if the request for the token fails.
public GetToken ( string clientId, string clientSecret, int expirationInMinutes = null ) : Token
clientId string OAuth ClientId
clientSecret string OAuth ClientSecret
expirationInMinutes int Optional. Specify how many minutes until the token expires.
return Token