Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SecurityTokenService::GetResponse Method (RequestSecurityToken^, SecurityTokenDescriptor^)

.NET Framework (current version)
 

Creates the response (RSTR) that contains the issued token by using the specified request (RST) and security token descriptor.

Namespace:   System.IdentityModel
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected:
virtual RequestSecurityTokenResponse^ GetResponse(
	RequestSecurityToken^ request,
	SecurityTokenDescriptor^ tokenDescriptor
)

Parameters

request
Type: System.IdentityModel.Protocols.WSTrust::RequestSecurityToken^

The RST that contains the token request.

tokenDescriptor
Type: System.IdentityModel.Tokens::SecurityTokenDescriptor^

The token descriptor that contains the information to use for the issued token.

Return Value

Type: System.IdentityModel.Protocols.WSTrust::RequestSecurityTokenResponse^

The response (RSTR) or null if a response cannot be created from the specified request and token descriptor. The default implementation returns null if the tokenDescriptor parameter is null.

The GetResponse method is called as the last step from the token issuance pipeline, which is implemented by the Issue method. It creates and returns the response (RSTR) by using the original incoming request (RST) and the token descriptor that was built up during previous steps in the token issuance pipeline.

The default implementation creates the RSTR by passing the RST specified in the request parameter to the RequestSecurityTokenResponse::RequestSecurityTokenResponse(WSTrustMessage^) constructor, invoking the SecurityTokenDescriptor::ApplyTo method on the token descriptor passed into GetResponse to apply its properties to the newly created RSTR, setting the AppliesTo property on the RSTR by using the AppliesToAddress property on the token descriptor, and finally setting the ReplyTo property on the RSTR according to the following table:

RST.ReplyTo property

SecurityTokenDescriptor::AppliesToAddress property.

RSTR.ReplyTo property

Set

Not Set

Not Set

Set

Set

SecurityTokenDescriptor::AppliesToAddress

Not Set

Set

Not Set

Not Set

Not Set

Not Set

.NET Framework
Available since 4.5
Return to top
Show:
© 2017 Microsoft