AuthenticationContext.AcquireToken Method (String, ClientAssertion)

 

Applies to: Version: 2.19.208020213, Platform: .NET Desktop.

Acquires security token from the authority.

Namespace:   Microsoft.IdentityModel.Clients.ActiveDirectory
Assembly:  Microsoft.IdentityModel.Clients.ActiveDirectory (in Microsoft.IdentityModel.Clients.ActiveDirectory.dll)

public AuthenticationResult AcquireToken(
	string resource,
	ClientAssertion clientAssertion
)

Parameters

resource
Type: System.String

Identifier of the target resource that is the recipient of the requested token.

clientAssertion
Type: Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertion

The client assertion to use for token acquisition.

Return Value

Type: Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult

It contains Access Token and the Access Token's expiration time. Refresh Token property will be null for this overload.

Return to top
Show: