Qore HttpServerUtil Module Reference 1.1
|
class providing automatic authentication for all requests More...
#include <HttpServerUtil.qm.dox.h>
Public Member Methods | |
*hash< HttpResponseInfo > | authenticateRequest (HttpListenerInterface listener, hash< auto > hdr, reference< hash > cx) |
primary method called to authenticate each request More... | |
Public Member Methods inherited from HttpServer::AbstractAuthenticator | |
authenticate (string user, string pass='') | |
called to authenticate a user for a connection More... | |
authenticateByIP (string ip, reference< string > user) | |
called when the connection requires authentication, but no authentication credentials were supplied, to try to authenticate the connection based on the source IP address More... | |
*hash< HttpResponseInfo > | authenticateRequest (HttpListenerInterface listener, hash< auto > hdr, reference< hash< auto > > cx) |
primary method called to authenticate each request More... | |
hash< HttpResponseInfo > | do401 (string msg='Authentication is required to access this server', *hash< auto > cx) |
returns a 401 repsonse with the given string argument as the message body More... | |
hash< auto > | getAuthHeader () |
returns a hash with one item - WWW-Authenticate header set to correct realm More... | |
hash< auto > | getAuthHeader (hash< auto > cx) |
returns a hash with one item - WWW-Authenticate header set to correct realm More... | |
string | getRealm () |
returns the authentication realm as a string More... | |
bool | requiresAuthentication () |
called to check if the connection requires authentication More... | |
class providing automatic authentication for all requests
*hash< HttpResponseInfo > HttpServer::PermissiveAuthenticator::authenticateRequest | ( | HttpListenerInterface | listener, |
hash< auto > | hdr, | ||
reference< hash > | cx | ||
) |
primary method called to authenticate each request
listener | an HttpListenerInterface object for the listener serving the request for logging purposes |
hdr | a hash of request headers |
cx | a reference to the call context hash; set the "user" key to the user name if a user was identified and authorized; this hash will have the following keys:
|