WebAuthenticationBroker.AuthenticateAsync(WebAuthenticationOptions, Uri, Uri) | authenticateAsync(WebAuthenticationOptions, Uri, Uri) 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.
Windows.Security.Authentication.Web.WebAuthenticationBroker.authenticateAsync(options, requestUri, callbackUri).done( /* Your success and error handlers */ );
The options for the authentication operation.
The starting URI of the web service. This URI must be a secure address of https://.
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.
The way to query the status and get the results of the authentication operation. If you are getting an invalid parameter error, the most common cause is that you are not using HTTPS for the requestUri parameter.
When this method is used, no session state or persisted cookies are retained across multiple calls from the same or different Windows Store apps. This method must be called on the UI thread.
Minimum supported client
Minimum supported server
|Windows Server 2012|
- AuthenticateAsync(WebAuthenticationOptions, Uri)
- Authentication and user identity (C#/C++/VB)
- Quickstart: Connecting to an online identity provider (C#/C++/VB)
- Windows authentication broker sample