# Functions
BasicAuthMiddleware returns a gin middleware handler dedicated for performing HTTP Basic AuthState.
BeginRegistration Page: '/2fa/v1/webauthn/register/begin'.
CacheHandler handles the HTTP requests for cache related operations.
CachePassDB implements the redis password database backend.
ConsentGETHandler Page '/consent'.
ConsentPOSTHandler Page '/consent/post'.
CustomRequestHandler processes custom Lua hooks.
DeviceGETHandler Page '/device'.
DevicePOSTHandler Page '/device/post'.
FinishRegistration Page: '/2fa/v1/webauthn/register/finish'.
HandleBruteForceRuleFlush handles the flushing of a brute force rule by processing the provided IP command and updating the necessary data.
HandleErr handles an error by logging the error details and printing a goroutine dump.
HandleJSONError handles JSON validation errors by aborting the request and returning a JSON response with error details.
HandleUserFlush is a handler function for a Gin HTTP server.
HanldeBruteForceList lists all blocked IP addresses and accounts in response to a brute force attack event.
HealthCheck handles the health check functionality by logging a message and returning "pong" as the response.
HTTPApp is a function that starts the HTTP server and sets up the necessary middlewares and endpoints.
InitHTTPClient initializes the global httpClient variable with a pre-configured instance from util.NewHTTPClient.
LDAPPassDB implements the LDAP password database backend.
LoadStatsFromRedis loads the prometheus statistics at startup from a Redis server.
LoggerMiddleware is a middleware function that logs information about the incoming HTTP request and response.
LoginGET2FAHandler Page '/2fa/v1/register'.
LoginGETHandler Page '/login'.
LoginPOST2FAHandler Page '/2fa/v1/register/post'.
LoginPOSTHandler Page '/login/post'.
LogoutGETHandler Page '/logout'.
LogoutPOSTHandler Page '/logout/post'.
LuaContextMiddleware is a middleware function that adds a Lua context to the Gin context.
LuaPassDB implements the Lua password database backend.
NewAuthState creates a new instance of the AuthState struct.
NewBackendServer creates a new instance of the BackendServer struct.
NewLimitCounter creates a new LimitCounter instance with the specified maximum number of concurrent connections.
No description provided by the author
No description provided by the author
NotifyGETHandler handles the GET request for the notification page.
PrometheusMiddleware is a middleware function for Gin Web Framework that collects metrics using Prometheus.
ProtectEndpointMiddleware is a middleware function for Gin Web Framework that provides security features for an endpoint.
Register2FAHomeHandler Page '/2fa/v1/register/home'.
RegisterTotpGETHandler Page '/2fa/v1/totp'.
RegisterTotpPOSTHandler Page '/2fa/v1/totp/post'.
nolint:gocognit // Main logic.
SaveStatsToRedis saves the prometheus statistics to a Redis server.
UpdateRedisPoolStats updates and tracks Redis pool statistics such as hits, misses, timeouts, and connection counts.
WithLanguageMiddleware is a middleware function that handles the language setup for the application.
# Variables
No description provided by the author
HTTP3EndChan is a channel of type `Done` used to signal the completion of HTTP3 server operations.
HTTPEndChan is a channel of type `Done` used to signal the completion of HTTP server operations.
LangBundle is a pointer to an instance of the i18n.Bundle type.
# Structs
No description provided by the author
ApiConfig is a struct that encapsulates configuration and parameters for HTTP communication with OAuth2 OpenID-Connect server via OpenAPI.
AuthState represents a struct that holds information related to an authentication process.
BackendServer represents a type for managing a slive of config.BackendServer.
BlockedAccounts represents a list of blocked user accounts and potential error information.
BlockedIPAddresses represents a structure to hold blocked IP addresses retrieved from Redis.
ClaimHandler represents a claim handler struct.
ConsentPageData defines the data structure for managing user consent information on a web page.
Done is the value for channels to finish workers.
FilterCmd defines a struct for command filters with optional fields for Accounts and IP Address.
FlushRuleCmd represents a command to flush a specific rule.
FlushRuleCmdStatus is a structure representing the status of a Flush Rule command.
FlushUserCmd is a data structure used to handle user commands for flushing data.
FlushUserCmdStatus represents an user's command status.
No description provided by the author
JSONErrorMsg represents an error message in JSON format with the field name and error message string.
JSONRequest is a data structure containing the details of a client's request in JSON format.
Language represents a language used in various page data structs.
LimitCounter tracks the current number of active connections and limits them based on a specified maximum.
No description provided by the author
LogoutPageData defines the data structure for details related to the logout page.
Metric is a prometheus metric with a value and a label.
NotifyPageData represents page notification data.
No description provided by the author
PassDBResult is used in all password databases to store final results of an authentication process.
RESTResult is a handleAuthentication JSON result object for the Nauthilus REST API.
Scope represents a scope used in the ConsentPageData struct.
No description provided by the author
No description provided by the author
TwoFactorData is a struct that includes parameters for processing two-factor authentication.
No description provided by the author
# Interfaces
MFA is an interface that stores some information for multi factor authentication.
# Type aliases
No description provided by the author
No description provided by the author
AddTOTPSecretFunc is a function signature that takes a *AuthState and *TOTPSecret as arguments and returns an error.
BruteForceBucketCounter represents a cache mechanism to handle brute force attack mitigation using brute force buckets.
No description provided by the author
WebAuthnCredentialDBFunc defines a signature for WebAuthn credential object lookups.