class authorizer_interface - 5cript/attender GitHub Wiki

class authorizer_interface

Summary

Members Descriptions
public std::string realm() const Supply a realm.
public void negotiate_authorization_method(request_handler * req,response_handler * res) This function is only called if the client doesnt already attempt to authenticate properly.
public authorization_result try_perform_authorization(request_handler * req,response_handler * res) Try to authenticate user with given request.

Members


public std::string realm() const

Supply a realm.

Can be anything


public void negotiate_authorization_method(request_handler * req,response_handler * res)

This function is only called if the client doesnt already attempt to authenticate properly.

This function should respond with a WWW-Authenticate header response, so that the client knows what to do.


public authorization_result try_perform_authorization(request_handler * req,response_handler * res)

Try to authenticate user with given request.