C# Class 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.
Afficher le fichier Open project: WindowsAzure-Toolkits/wa-toolkit-wp-nugets Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

AccessControlServiceSignIn() public méthode

Initializes a new instance of the AccessControlServiceSignIn class.
public AccessControlServiceSignIn ( ) : System
Résultat System

GetSimpleWebToken() public méthode

Gets an SWT from the chosen identity provider
public GetSimpleWebToken ( ) : void
Résultat void

GetSimpleWebToken() public méthode

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.
Résultat void

GoBack() public méthode

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
Résultat void