IAuthDelegate.AcquireToken(Identity, String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method is called when an auth token is required for the policy engine with the given identity and the given challenge.
public string AcquireToken (Microsoft.InformationProtection.Identity identity, string authority, string resource, string claims);
abstract member AcquireToken : Microsoft.InformationProtection.Identity * string * string * string -> string
Public Function AcquireToken (identity As Identity, authority As String, resource As String, claims As String) As String
Parameters
- identity
- Identity
The identity of the user.
- authority
- String
The authority the token needs to be generated against.
- resource
- String
The resource the token is set to.
- claims
- String
The claims requested for the token.
Returns
The token needed for accessing the resource.
Remarks
If the application failed to acquire a token, it should throw an exception in this function.