Table of Contents

Class CaptchaDefaults

Namespace
NuvTools.Security.Captcha
Assembly
NuvTools.Security.dll

Wire contract shared by the client that produces a CAPTCHA token and the server that validates it.

public static class CaptchaDefaults
Inheritance
CaptchaDefaults
Inherited Members

Remarks

These values are part of the HTTP contract between the two sides. Changing any of them requires deploying client and server together.

Fields

ModeCheckbox

Token obtained from the checkbox key, used as the step-up challenge.

public const string ModeCheckbox = "checkbox"

Field Value

string

ModeHeader

Request header carrying the token mode: ModeScore or ModeCheckbox.

public const string ModeHeader = "X-Captcha-Mode"

Field Value

string

ModeScore

Invisible token obtained from the score key. Default mode for every submission.

public const string ModeScore = "score"

Field Value

string

StepUpHeader

Response header set to true when the client must escalate to the checkbox challenge. Redundant with StepUpMarker, for direct reading.

public const string StepUpHeader = "X-Captcha-Stepup"

Field Value

string

StepUpMarker

Marker returned as the failure message title when the risk score is too low and the client must present the checkbox challenge. The client matches on this value.

public const string StepUpMarker = "captcha-stepup"

Field Value

string

TokenHeader

Request header carrying the token generated by the CAPTCHA provider.

public const string TokenHeader = "X-Captcha-Token"

Field Value

string