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
CloudFoundryOptionsuserToken
stringhttpClient
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
MessageThe message to be transformed into types and handed back to the client application.
correlationState
objectCorrelation 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
MessageThe message to be sent to the service.
channel
IClientChannelThe 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 twocorrelationState
objects are the same.