Table of Contents

Class JwtHeaderMessageInspector

Namespace
Steeltoe.Security.Authentication.CloudFoundry.Wcf
Assembly
Steeltoe.Security.Authentication.CloudFoundryWcf.dll
public class JwtHeaderMessageInspector : IClientMessageInspector
Inheritance
JwtHeaderMessageInspector
Implements
Inherited Members

Constructors

JwtHeaderMessageInspector(CloudFoundryOptions, string, HttpClient)

public JwtHeaderMessageInspector(CloudFoundryOptions options, string userToken, HttpClient httpClient = null)

Parameters

options CloudFoundryOptions
userToken string
httpClient HttpClient

Methods

AfterReceiveReply(ref Message, object)

Enables inspection or modification of a message after a reply message is received but prior to passing it back to the client application.

public void AfterReceiveReply(ref Message reply, object correlationState)

Parameters

reply Message

The message to be transformed into types and handed back to the client application.

correlationState object

Correlation state data.

BeforeSendRequest(ref Message, IClientChannel)

Enables inspection or modification of a message before a request message is sent to a service.

public object BeforeSendRequest(ref Message request, IClientChannel channel)

Parameters

request Message

The message to be sent to the service.

channel IClientChannel

The WCF client object channel.

Returns

object

The object that is returned as the correlationState argument of the AfterReceiveReply(ref Message, object) method. This is null if no correlation state is used.The best practice is to make this a Guid to ensure that no two correlationState objects are the same.