C# 클래스 ESRI.ArcGIS.Client.Toolkit.OAuthAuthorize

Manages the Silverlight OAuth authorization process. Instantiate an instance of this class to initialize the IdentityManager.ServerInfo.OAuthClientInfo OAuthAuthorize property.
상속: IOAuthAuthorize
파일 보기 프로젝트 열기: Esri/arcgis-toolkit-sl-wpf 1 사용 예제들

공개 메소드들

메소드 설명
AuthorizeAsync ( string url, string authorizeUrl, string callbackUrl ) : string>>.Task

Redirects the user to the authorization URL.

Initialize ( string portalUrl ) : void

Initializes the Silverlight application for getting authorization from an OAuth authorization page. Calling this method is optional but offers the following advantages: Initializes a default IdentityManager challenge method that manages the single sign in to the portal. Restores the portal OAuth credential that may have been persisted during a previous session (using the 'Keep Me Signed In' option). Injects in the main HTML page the OAuth scripts that manage the answers of the OAuth authorization server.

OAuthAuthorize ( ) : System.Json

Initializes a new instance of the OAuthAuthorize class.

비공개 메소드들

메소드 설명
DecodeParameters ( Uri uri ) : string>.IDictionary

Decodes the parameters returned when the user agent is redirected to the callback url The parameters can be returned as fragments (e.g. access_token for Browser based app) or as query parameter (e.g. code for Server based app)

FromDictionary ( string>.IDictionary dictionary ) : IdentityManager.Credential
FromJsonValue ( JsonValue jsonValue ) : IdentityManager.Credential
IsCookieEnabled ( ) : bool
LoadOAuthToken ( string portalUrl ) : IdentityManager.Credential
LoadOAuthTokenFromCookie ( ) : IdentityManager.Credential
OpenAuthorizeWindow ( ) : void
RemoveOAuthTokenFromCookie ( ) : void
RemovePersistedOAuthToken ( string portalUrl ) : void
SaveOAuthToken ( string portalUrl, string>.IDictionary parameters ) : void
SaveOAuthTokenAsCookie ( string>.IDictionary parameters ) : void
SetResult ( string callbackUrl ) : void

메소드 상세

AuthorizeAsync() 공개 메소드

Redirects the user to the authorization URL.
public AuthorizeAsync ( string url, string authorizeUrl, string callbackUrl ) : string>>.Task
url string The service URL.
authorizeUrl string The authorize URL.
callbackUrl string The callback URL.
리턴 string>>.Task

Initialize() 공개 정적인 메소드

Initializes the Silverlight application for getting authorization from an OAuth authorization page. Calling this method is optional but offers the following advantages: Initializes a default IdentityManager challenge method that manages the single sign in to the portal. Restores the portal OAuth credential that may have been persisted during a previous session (using the 'Keep Me Signed In' option). Injects in the main HTML page the OAuth scripts that manage the answers of the OAuth authorization server.
public static Initialize ( string portalUrl ) : void
portalUrl string The portal URL.
리턴 void

OAuthAuthorize() 공개 메소드

Initializes a new instance of the OAuthAuthorize class.
public OAuthAuthorize ( ) : System.Json
리턴 System.Json