次の方法で共有


IPublicClientApplication.AcquireTokenByIntegratedWindowsAuth Method

Definition

This API is no longer recommended and will be deprecated in future versions in favor of 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.

public Microsoft.Identity.Client.AcquireTokenByIntegratedWindowsAuthParameterBuilder AcquireTokenByIntegratedWindowsAuth (System.Collections.Generic.IEnumerable<string> scopes);
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.

Remarks

See our documentation for more details.

Applies to