C# 클래스 Microsoft.WindowsAzure.MobileServices.AuthenticationBroker

An AuthenticationBroker for the Windows Phone Platform that is like the Windows Store WebAuthenticationBroker APIs.
상속: IDisposable
파일 보기 프로젝트 열기: Azure/azure-mobile-apps-net-client 1 사용 예제들

공개 메소드들

메소드 설명
AuthenticateAsync ( Uri startUrl, Uri endUrl, bool useSingleSignOn ) : Task

Begins a server-side authentication flow by navigating the WebAuthenticationBroker to the startUrl.

AuthenticationComplete ( WebAuthenticationResult result ) : void

비공개 메소드들

메소드 설명
AuthenticateWithBroker ( Uri startUrl, Uri endUrl, bool useSingleSignOn ) : Task

Begins a server-side authentication flow by navigating the WebAuthenticationBroker to the startUrl. Considers if the useSingleSignOn is being used and calls the correct overload of the WebAuthenticationBroker.

AuthenticateWithBroker ( Uri startUrl, Uri endUrl, bool useSingleSignOn ) : Task

Begins a server-side authentication flow by navigating the WebAuthenticationBroker to the startUrl. Considers if the useSingleSignOn is being used and calls the correct overload of the WebAuthenticationBroker.

GetSubStringAfterMatch ( string stringToSearch, string matchString ) : string

Returns a substring from the stringToSearch starting from the first character after the matchString if the stringToSearch contains the matchString; otherwise, returns null.

GetTokenStringFromResult ( WebAuthenticationResult result ) : string

Gets the JSON string that represents the Mobile Service authentication token from the WebAuthenticationResult.

GetUrlWithQueryStringParameter ( Uri url, string queryParameter, string queryValue ) : Uri

Returns a URL that is equivalent to the url provided but which includes in the query string of the URL the queryParameter with the value given by queryValue.

메소드 상세

AuthenticateAsync() 공개 메소드

Begins a server-side authentication flow by navigating the WebAuthenticationBroker to the startUrl.
/// Thrown if the user cancels the authentication flow or an error occurs during /// the authentication flow. ///
public AuthenticateAsync ( Uri startUrl, Uri endUrl, bool useSingleSignOn ) : Task
startUrl System.Uri The URL that the browser-based control should /// first navigate to in order to start the authenication flow. ///
endUrl System.Uri The URL that indicates the authentication flow has /// completed. Upon being redirected to any URL that starts with the /// endUrl, the browser-based control must stop navigating and /// return the response data to the . ///
useSingleSignOn bool Indicates if single sign-on should be used so /// that users do not have to re-enter his/her credentials every time. ///
리턴 Task

AuthenticationComplete() 공개 메소드

public AuthenticationComplete ( WebAuthenticationResult result ) : void
result WebAuthenticationResult
리턴 void