C# Класс Microsoft.WindowsAzure.Samples.Phone.Identity.AccessControl.AccessControlServiceSignIn

This control is used to aquire a token from ACS using passive protocals between ACS and the Identity Provider.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AccessControlServiceSignIn ( ) : System

Initializes a new instance of the AccessControlServiceSignIn class.

GetSimpleWebToken ( ) : void

Gets an SWT from the chosen identity provider

GetSimpleWebToken ( Uri newIdentityProviderDiscoveryService ) : void

Initiates an asynchronous request which prompts user to sign into an identity provider, from the list returned by the call to the discover service returns a simple web token via the RequestSimpleWebTokenResponseCompleted event handler.

Initiates a token request from ACS following these steps: 1) Get the list of configured Identity Providers from ACS by calling the discovery service 2) Once the user selects their identity provider, navigate to the sign in page of the provider 3) Using the WebBrowser control to complete the passive token request complete 4) Get the token 5) If a SimpleWebTokenStore is specified, set the token. 6) return the token using the RequestSimpleWebTokenResponseCompleted callback

GoBack ( ) : void

Performs a backward navigation action, transitioning the control to a previous state. If the control is in a state that it cannot go backwards, no action is taken.

Приватные методы

Метод Описание
DisplayErrorMessage ( string message ) : void
DisplayErrorMessageFromException ( Exception e ) : void
HideAll ( ) : void
IdentityProviderListRefresh ( Uri newIdentityProviderDiscoveryService ) : void
IdentityProviderListRefreshCompleted ( object sender, IdentityProviderListEventArgs e ) : void
IdentityProviderListSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
NavigateToIdentityProvider ( IdentityProviderInformation identityProvider ) : void
ShowBrowser ( ) : void
ShowIdentityProviderSelection ( ) : void
ShowProgressBar ( string message ) : void
SignInWebBrowserControlNavigated ( object sender, System.Windows.Navigation.NavigationEventArgs e ) : void
SignInWebBrowserControlNavigating ( object sender, NavigatingEventArgs e ) : void
SignInWebBrowserControlScriptNotify ( object sender, System.Windows.Controls.NotifyEventArgs e ) : void
TextBlockMouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void
TextBlockMouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
TextBlockMouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

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

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

Initializes a new instance of the AccessControlServiceSignIn class.
public AccessControlServiceSignIn ( ) : System
Результат System

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

Gets an SWT from the chosen identity provider
public GetSimpleWebToken ( ) : void
Результат void

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

Initiates an asynchronous request which prompts user to sign into an identity provider, from the list returned by the call to the discover service returns a simple web token via the RequestSimpleWebTokenResponseCompleted event handler.
Initiates a token request from ACS following these steps: 1) Get the list of configured Identity Providers from ACS by calling the discovery service 2) Once the user selects their identity provider, navigate to the sign in page of the provider 3) Using the WebBrowser control to complete the passive token request complete 4) Get the token 5) If a SimpleWebTokenStore is specified, set the token. 6) return the token using the RequestSimpleWebTokenResponseCompleted callback
public GetSimpleWebToken ( Uri newIdentityProviderDiscoveryService ) : void
newIdentityProviderDiscoveryService System.Uri The Identity provider discovery service from the ACS managment portal.
Результат void

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

Performs a backward navigation action, transitioning the control to a previous state. If the control is in a state that it cannot go backwards, no action is taken.
public GoBack ( ) : void
Результат void