keyExtras = NULL;
keyExtrasLine.clean();
}
-
-Auth::User::Pointer
-Auth::Config::findUserInCache(const char *nameKey, Auth::Type authType)
-{
- AuthUserHashPointer *usernamehash;
- debugs(29, 9, "Looking for user '" << nameKey << "'");
-
- if (nameKey && (usernamehash = static_cast<AuthUserHashPointer *>(hash_lookup(proxy_auth_username_cache, nameKey)))) {
- while (usernamehash) {
- if ((usernamehash->user()->auth_type == authType) &&
- !strcmp(nameKey, (char const *)usernamehash->key))
- return usernamehash->user();
-
- usernamehash = static_cast<AuthUserHashPointer *>(usernamehash->next);
- }
- }
-
- return NULL;
-}
-
/** add headers as needed when challenging for auth */
virtual void fixHeader(UserRequest::Pointer, HttpReply *, Http::HdrType, HttpRequest *) = 0;
- /// Find any existing user credentials in the authentication cache by name and type.
- virtual Auth::User::Pointer findUserInCache(const char *nameKey, Auth::Type type);
-
/** prepare to handle requests */
virtual void init(Config *) = 0;