C# Class InTheHand.Security.Authentication.Web.WebAuthenticationBroker

Starts the authentication operation. You can call the methods of this class multiple times in a single application or across multiple applications at the same time.
PlatformVersion supported Windows UWPWindows 10 Windows StoreWindows 8.1 or later Windows Phone StoreWindows 10 Mobile Windows Phone SilverlightWindows Phone 8.0 or later
Afficher le fichier Open project: inthehand/Charming

Méthodes publiques

Méthode Description
AuthenticateAsync ( WebAuthenticationOptions options, Uri requestUri ) : Task

Starts the asynchronous authentication operation with two inputs. You can call this method multiple times in a single application or across multiple applications at the same time.

There is no explicit callbackUri parameter in this method. The application's default URI is used internally as the terminator. For more information, see GetCurrentApplicationCallbackUri. This method must be called on the UI thread. When this method is used, session state or persisted cookies are retained across multiple calls from the same or different apps.

AuthenticateAsync ( WebAuthenticationOptions options, Uri requestUri, Uri callbackUri ) : Task

Starts the asynchronous authentication operation with three inputs. You can call this method multiple times in a single application or across multiple applications at the same time.

When this method is used, no session state or persisted cookies are retained across multiple calls from the same or different apps. This method must be called on the UI thread.

GetCurrentApplicationCallbackUri ( ) : Uri

Gets the current application callback URI.

The current application callback URI is used as an implicit value of the callbackUri parameter of the AuthenticateAsync method. However, applications need the URI value to add it to the request URI as required by the online provider.

Private Methods

Méthode Description
WaitResponse ( ) : Task

Method Details

AuthenticateAsync() public static méthode

Starts the asynchronous authentication operation with two inputs. You can call this method multiple times in a single application or across multiple applications at the same time.
There is no explicit callbackUri parameter in this method. The application's default URI is used internally as the terminator. For more information, see GetCurrentApplicationCallbackUri. This method must be called on the UI thread. When this method is used, session state or persisted cookies are retained across multiple calls from the same or different apps.
public static AuthenticateAsync ( WebAuthenticationOptions options, Uri requestUri ) : Task
options WebAuthenticationOptions The options for the authentication operation.
requestUri Uri The starting URI of the web service. This URI must be a secure address of https://.
Résultat Task

AuthenticateAsync() public static méthode

Starts the asynchronous authentication operation with three inputs. You can call this method multiple times in a single application or across multiple applications at the same time.
When this method is used, no session state or persisted cookies are retained across multiple calls from the same or different apps. This method must be called on the UI thread.
public static AuthenticateAsync ( WebAuthenticationOptions options, Uri requestUri, Uri callbackUri ) : Task
options WebAuthenticationOptions The options for the authentication operation.
requestUri Uri The starting URI of the web service. This URI must be a secure address of https://.
callbackUri Uri The callback URI that indicates the completion of the web authentication. /// The broker matches this URI against every URI that it is about to navigate to. /// The broker never navigates to this URI, instead the broker returns the control back to the application when the user clicks a link or a web server redirection is made.
Résultat Task

GetCurrentApplicationCallbackUri() public static méthode

Gets the current application callback URI.
The current application callback URI is used as an implicit value of the callbackUri parameter of the AuthenticateAsync method. However, applications need the URI value to add it to the request URI as required by the online provider.
public static GetCurrentApplicationCallbackUri ( ) : Uri
Résultat Uri