Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/reugn/auth-server
/ types & classes
Types & classes
28 in github.com/reugn/auth-server
⨍
Functions
86
◇
Types & classes
28
↓ 2 callers
TypeAlias
IPAddress
IPAddress represents an IP address string.
internal/http/rate_limiter.go:78
Struct
AccessToken
AccessToken represents an access token.
internal/auth/jwt.go:39
Struct
AerospikeRepository
AerospikeRepository implements the Repository interface using Aerospike Database as the storage backend.
internal/repository/aerospike.go:32
Struct
AuthDetails
AuthDetails contains authentication details for the user.
internal/repository/local.go:19
Struct
Claims
Claims is the custom JWT claims container.
internal/auth/jwt.go:32
Struct
HTTP
HTTP contains HTTP server configuration properties.
internal/config/http_server.go:9
Struct
HeaderConfig
HeaderConfig defines which headers to check for method and URI.
internal/proxy/parser.go:24
Struct
IPRateLimiter
IPRateLimiter represents a rate limiter based on an IP address.
internal/http/rate_limiter.go:81
Struct
IPWhiteList
IPWhiteList contains white list information for rate limiting.
internal/http/rate_limiter.go:14
Struct
JWTGenerator
JWTGenerator generates an AccessToken.
internal/auth/jwt_generator.go:18
Struct
JWTValidator
JWTValidator validates and authorizes an AccessToken. It uses the keys to validate the token and the backend to authorize the request.
internal/auth/jwt_validator.go:15
Struct
Keys
Keys represents a container for the private and public keys.
internal/auth/keys.go:14
Struct
Local
Local implements the Repository interface by loading authentication details from a local configuration file.
internal/repository/local.go:26
Struct
Logger
Logger contains the service logger configuration properties.
internal/config/logger.go:24
Struct
Parser
Parser is a configurable request parser that works with any proxy.
internal/proxy/parser.go:68
Struct
RateLimiter
RateLimiter contains rate limiter configuration properties.
internal/config/http_server.go:19
Interface
Repository
A Repository acts as a gateway to the authentication and authorization operations, facilitating secure access to resources.
internal/repository/repository.go:33
Struct
RequestDetails
RequestDetails represents request details.
internal/repository/repository.go:21
Interface
RequestParser
RequestParser represents a request parser. It parses the authorization token and the request details from the original request.
internal/proxy/parser.go:16
Struct
Secret
Secret holds the configuration for secret keys.
internal/config/secret.go:8
Struct
Server
Server represents the entry point to interact with the service via HTTP requests.
internal/http/server.go:18
Struct
Service
Service contains the entire service configuration.
internal/config/service.go:32
TypeAlias
TokenType
TokenType represents a token type.
internal/auth/jwt.go:13
Struct
UserDetails
UserDetails represents user details.
internal/repository/repository.go:15
TypeAlias
UserRole
UserRole represents a user role.
internal/repository/repository.go:12
Struct
VaultRepository
VaultRepository implements the Repository interface using HashiCorp Vault as the storage backend.
internal/repository/vault.go:29
Struct
aerospikeConfig
aerospikeConfig contains AerospikeRepository configuration properties.
internal/repository/aerospike.go:21
Struct
vaultConfig
vaultConfig contains VaultRepository configuration properties.
internal/repository/vault.go:20