SecurityTokenService.Validate(ClaimsPrincipal, RequestSecurityToken) Method

Definition

When overridden in a derived class, processes a WS-Trust Validate request.

C#
public virtual System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse Validate(System.Security.Claims.ClaimsPrincipal principal, System.IdentityModel.Protocols.WSTrust.RequestSecurityToken request);

Parameters

principal
ClaimsPrincipal

A ClaimsPrincipal that represents the identity of the token requestor.

request
RequestSecurityToken

A RequestSecurityToken that represents the security token request. This includes the request message as well as other client related information such as authorization context.

Returns

A RequestSecurityTokenResponse that represents the RSTR to return to the caller.

Remarks

The default implementation of this method throws an InvalidRequestException.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1