SecurityTokenService.GetProofToken(RequestSecurityToken, Scope) Method

Definition

Gets the proof token to be included in the response (RSTR).

protected:
 virtual System::IdentityModel::Tokens::ProofDescriptor ^ GetProofToken(System::IdentityModel::Protocols::WSTrust::RequestSecurityToken ^ request, System::IdentityModel::Scope ^ scope);
protected virtual System.IdentityModel.Tokens.ProofDescriptor GetProofToken (System.IdentityModel.Protocols.WSTrust.RequestSecurityToken request, System.IdentityModel.Scope scope);
abstract member GetProofToken : System.IdentityModel.Protocols.WSTrust.RequestSecurityToken * System.IdentityModel.Scope -> System.IdentityModel.Tokens.ProofDescriptor
override this.GetProofToken : System.IdentityModel.Protocols.WSTrust.RequestSecurityToken * System.IdentityModel.Scope -> System.IdentityModel.Tokens.ProofDescriptor
Protected Overridable Function GetProofToken (request As RequestSecurityToken, scope As Scope) As ProofDescriptor

Parameters

request
RequestSecurityToken

A RequestSecurityToken that represents the incoming token request (RST).

scope
Scope

The Scope instance that encapsulates information about the relying party.

Returns

A ProofDescriptor that represents the newly created proof descriptor. The proof descriptor can be an asymmetric proof descriptor, a symmetric proof descriptor, or null in the bearer token case.

Exceptions

request is null.

-or-

scope is null.

Remarks

This method is called from the default token issuance pipeline implemented in the Issue method.

The default implementation returns a proof descriptor or throws an appropriate exception.

Applies to

See also