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
Show file Open project: inthehand/Charming

Public Methods

Method 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

Method Description
WaitResponse ( ) : Task

Method Details

AuthenticateAsync() public static method

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://.
return Task

AuthenticateAsync() public static method

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.
return Task

GetCurrentApplicationCallbackUri() public static method

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
return Uri