C# Class Thinktecture.IdentityModel.SecurityTokenService.TracingSecurityTokenService

A SecurityTokenService class with hooks for logging the RST, RSTR and issued token
Inheritance: Microsoft.IdentityModel.SecurityTokenService.SecurityTokenService
Show file Open project: IdentityModel/Thinktecture.IdentityModel.v1

Public Methods

Method Description
TracingSecurityTokenService ( SecurityTokenServiceConfiguration configuration ) : System.IdentityModel.Tokens

Initializes a new instance of the TracingSecurityTokenService class.

Protected Methods

Method Description
GetResponse ( RequestSecurityToken request, System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor ) : RequestSecurityTokenResponse

Creates the token response and invokes the logging callbacks.

OnTrace ( System.Xml.Linq.XElement rst, System.Xml.Linq.XElement rstr, System.Xml.Linq.XElement token ) : void

Logging extensibility point.

Private Methods

Method Description
SerializeRequest ( RequestSecurityToken request ) : string
SerializeResponse ( RequestSecurityTokenResponse response ) : string

Method Details

GetResponse() protected method

Creates the token response and invokes the logging callbacks.
protected GetResponse ( RequestSecurityToken request, System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor ) : RequestSecurityTokenResponse
request RequestSecurityToken The request.
tokenDescriptor System.IdentityModel.Tokens.SecurityTokenDescriptor The token descriptor.
return RequestSecurityTokenResponse

OnTrace() protected method

Logging extensibility point.
protected OnTrace ( System.Xml.Linq.XElement rst, System.Xml.Linq.XElement rstr, System.Xml.Linq.XElement token ) : void
rst System.Xml.Linq.XElement The RST.
rstr System.Xml.Linq.XElement The RSTR.
token System.Xml.Linq.XElement The token.
return void

TracingSecurityTokenService() public method

Initializes a new instance of the TracingSecurityTokenService class.
public TracingSecurityTokenService ( SecurityTokenServiceConfiguration configuration ) : System.IdentityModel.Tokens
configuration SecurityTokenServiceConfiguration The configuration.
return System.IdentityModel.Tokens