Share via


IPublicClientApplication.AcquireTokenByIntegratedWindowsAuth Method

Definition

Caution

This API is no longer recommended. For scenarios requiring SSO with the Windows OS's default account, please transition to using WAM.

This API is no longer recommended. If your application requires single sign-on (SSO) with the Windows OS's default account, please transition to using WAM, which provides similar functionality via the Windows broker (WAM). WAM does not require any setup for desktop apps to login with the Windows account.

Acquires a token non-interactively for the signed-in user in Windows via Integrated Windows Authentication. The account used in this overrides is pulled from the operating system as the current user principal name. This method does not look in the token cache, but stores the result in it. Before calling this method, use other methods such as AcquireTokenSilent(IEnumerable<String>, IAccount) to check the token cache.

[System.Obsolete("This API is no longer recommended. For scenarios requiring SSO with the Windows OS's default account, please transition to using WAM.", false)]
public Microsoft.Identity.Client.AcquireTokenByIntegratedWindowsAuthParameterBuilder AcquireTokenByIntegratedWindowsAuth(System.Collections.Generic.IEnumerable<string> scopes);
[<System.Obsolete("This API is no longer recommended. For scenarios requiring SSO with the Windows OS's default account, please transition to using WAM.", false)>]
abstract member AcquireTokenByIntegratedWindowsAuth : seq<string> -> Microsoft.Identity.Client.AcquireTokenByIntegratedWindowsAuthParameterBuilder
Public Function AcquireTokenByIntegratedWindowsAuth (scopes As IEnumerable(Of String)) As AcquireTokenByIntegratedWindowsAuthParameterBuilder

Parameters

scopes
IEnumerable<String>

Scopes requested to access a protected API.

Returns

A builder enabling you to add optional parameters before executing the token request.

Attributes

Remarks

See our documentation for more details.

Applies to