AuthenticateSilentlyAsync(Uri, WebAuthenticationOptions) | authenticateSilentlyAsync(Uri, WebAuthenticationOptions) method

WebAuthenticationBroker.AuthenticateSilentlyAsync(Uri, WebAuthenticationOptions) | authenticateSilentlyAsync(Uri, WebAuthenticationOptions) method

Starts the asynchronous authentication operation silently (no UI will be shown) with two inputs. You can call this method multiple times in a single application or across multiple applications at the same time.

Syntax


Windows.Security.Authentication.Web.WebAuthenticationBroker.authenticateSilentlyAsync(requestUri, options).done( /* Your success and error handlers */ );

Parameters

requestUri

Type: Windows.Foundation.Uri [JavaScript] | System.Uri [.NET] | Windows::Foundation::Uri [C++]

The starting URI of the web service. This URI must be a secure address of https://.

options

Type: WebAuthenticationOptions

The options for the authentication operation.

Return value

Type: IAsyncOperation<WebAuthenticationResult>

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.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Security.Authentication.Web
Windows::Security::Authentication::Web [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Security.Authentication.Web
Windows::Security::Authentication::Web [C++]

Metadata

Windows.winmd

Attributes

[Deprecated()]

See also

WebAuthenticationBroker
AuthenticateSilentlyAsync(Uri)

 

 

Show:
© 2016 Microsoft