OpenIdConnectAuthenticationHandler.AddNonceToMessage Method (OpenIdConnectMessage)
Sets Nonce to !:Options.ProtocolValidator.GenerateNonce.
Namespace: Microsoft.Owin.Security.OpenIdConnect
Assembly: Microsoft.Owin.Security.OpenIdConnect (in Microsoft.Owin.Security.OpenIdConnect.dll)
Syntax
protected virtual void AddNonceToMessage(
OpenIdConnectMessage message
)
protected:
virtual void AddNonceToMessage(
OpenIdConnectMessage^ message
)
abstract AddNonceToMessage :
message:OpenIdConnectMessage -> unit
override AddNonceToMessage :
message:OpenIdConnectMessage -> unit
Protected Overridable Sub AddNonceToMessage (
message As OpenIdConnectMessage
)
Parameters
message
Type: Microsoft.IdentityModel.Protocols.OpenIdConnectMessagethe OpenIdConnectMessage being processed.
Remarks
The 'nonce' is protected using !:Options.StateDataFormat.Protect.
A cookie named: 'OpenIdConnectAuthenticationDefaults.CookiePrefix + OpenIdConnectAuthenticationDefaults.Nonce + Options.AuthenticationType' is attached to the Response.
See Also
OpenIdConnectAuthenticationHandler Class
Microsoft.Owin.Security.OpenIdConnect Namespace
Return to top