C# Класс Esri.ArcGisServer.Rest.Authentication.AuthenticationService

This is used to get tokens.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

AuthenticationService() публичный Метод

Creates a new instance of the AuthenticationService.
public AuthenticationService ( string url = "https://www.arcgis.com/sharing/oauth2/token" ) : System
url string
Результат System

GetToken() публичный Метод

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.
Результат Token