9#ifndef SQUID_SRC_AUTH_USERREQUEST_H
10#define SQUID_SRC_AUTH_USERREQUEST_H
31#define MAX_AUTHTOKEN_LEN 65535
84 void *
operator new(
size_t byteCount);
85 void operator delete(
void *address);
182 char const *
denyMessage(
char const *
const default_message =
nullptr)
const;
#define RefCountable
The locking interface for use on Reference-Counted classes.
void authenticateAuthUserRequestRemoveIp(Auth::UserRequest::Pointer, Ip::Address const &)
bool authenticateUserAuthenticated(const Auth::UserRequest::Pointer &)
int authenticateAuthUserRequestIPCount(Auth::UserRequest::Pointer)
void authenticateAuthUserRequestClearIp(Auth::UserRequest::Pointer)
Ip::Address ipaddr
IP address this user authenticated from.
AuthUserIP(const Ip::Address &ip, time_t t)
MEMPROXY_CLASS(AuthUserIP)
virtual void addAuthenticationInfoHeader(HttpReply *rep, int accel)
static AuthAclState tryToAuthenticateAndSetAuthUser(UserRequest::Pointer *aUR, Http::HdrType, HttpRequest *, ConnStateData *, Ip::Address &, AccessLogEntry::Pointer &)
const char * helperRequestKeyExtras(HttpRequest *, AccessLogEntry::Pointer &al)
static void AddReplyAuthHeader(HttpReply *rep, UserRequest::Pointer auth_user_request, HttpRequest *request, int accelerated, int internal)
Add the appropriate [Proxy-]Authenticate header to the given reply.
void setDenyMessage(char const *)
virtual bool authenticated() const
void denyMessageFromHelper(char const *proto, const Helper::Reply &reply)
Sets the reason of 'authentication denied' helper response.
virtual void startHelperLookup(HttpRequest *request, AccessLogEntry::Pointer &al, AUTHCB *handler, void *data)=0
Scheme::Pointer scheme() const
virtual const char * credentialsStr()=0
virtual void releaseAuthServer()
virtual const User::Pointer user() const
virtual void addAuthenticationInfoTrailer(HttpReply *rep, int accel)
virtual Direction module_direction()=0
char const * denyMessage(char const *const default_message=nullptr) const
void start(HttpRequest *request, AccessLogEntry::Pointer &al, AUTHCB *handler, void *data)
char const * getDenyMessage() const
virtual void user(User::Pointer aUser)
virtual const char * connLastHeader()
char const * username() const
virtual User::Pointer user()
virtual void authenticate(HttpRequest *request, ConnStateData *conn, Http::HdrType type)=0
RefCount< Auth::UserRequest > Pointer
@ CRED_ERROR
ERROR in the auth module. Cannot determine the state of this request.
@ CRED_CHALLENGE
Client needs to be challenged. secure token.
@ CRED_LOOKUP
Credentials need to be validated with the backend helper.
@ CRED_VALID
Credentials are valid and a up to date. The OK/Failed state is accurate.