IChallenge

Interface for user challenge definition

Members

Functions

generate
string generate(HTTPServerRequest req, HTTPServerResponse res)

Generate a challenge. The request must be initiated from the challenge template

getConfig
Json getConfig()

Get config to create the html on client side

getTemplate
string getTemplate(string challangeLocation)

Get a template for the current challenge

validate
bool validate(HTTPServerRequest req, HTTPServerResponse res, string response)

Validate the challenge

Meta