C# Класс Microsoft.WindowsAzure.MobileServices.AuthenticationBroker

An AuthenticationBroker for the Windows Phone Platform that is like the Windows Store WebAuthenticationBroker APIs.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

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