C# Class Esri.ArcGISRuntime.Toolkit.Security.OAuthAuthorizeHandler

WinPhone OAuthAuthorize handler which encapsulates the redirection of the user to the OAuth authorization URI by using a WebView.
Inheritance: IOAuthAuthorizeHandler
ファイルを表示 Open project: Esri/arcgis-toolkit-dotnet

Public Methods

Method Description
AuthorizeAsync ( string serviceUri, string authorizeUri, string callbackUri ) : string>>.Task

Redirects the user to the authorization URI by using a WebBrowser.

Private Methods

Method Description
AuthorizeOnUIThread ( string authorizeUri ) : void
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)

OnWindowClosed ( object sender, EventArgs e ) : void
WebBrowserOnNavigating ( object sender, NavigatingCancelEventArgs e ) : void

Method Details

AuthorizeAsync() public method

Redirects the user to the authorization URI by using a WebBrowser.
public AuthorizeAsync ( string serviceUri, string authorizeUri, string callbackUri ) : string>>.Task
serviceUri string The service URI.
authorizeUri string The authorize URI.
callbackUri string The callback URI.
return string>>.Task