Documentation
¶
Index ¶
Constants ¶
View Source
const ( AuthModeLocal = "local" AuthModeHTTPAPI = "http_api" )
Authentication mode constants
View Source
const ( TokenProviderModeLocal = "local" TokenProviderModeHTTPAPI = "http_api" )
Token provider mode constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Server settings
ServerAddr string
BaseURL string
// JWT settings
JWTSecret string
JWTExpiration time.Duration
// Session settings
SessionSecret string
// Device code settings
DeviceCodeExpiration time.Duration
PollingInterval int // seconds
// Database
DatabaseDriver string // "sqlite" or "postgres"
DatabaseDSN string // Database connection string (DSN or path)
// Authentication
AuthMode string // "local" or "http_api"
// HTTP API Authentication
HTTPAPIURL string
HTTPAPITimeout time.Duration
HTTPAPIInsecureSkipVerify bool
// Token Provider
TokenProviderMode string // "local" or "http_api"
// HTTP API Token Provider
TokenAPIURL string
TokenAPITimeout time.Duration
TokenAPIInsecureSkipVerify bool
// Refresh Token settings
RefreshTokenExpiration time.Duration // Refresh token lifetime (default: 720h = 30 days)
EnableRefreshTokens bool // Feature flag to enable/disable refresh tokens (default: true)
EnableTokenRotation bool // Enable token rotation mode (default: false, fixed mode)
}
Click to show internal directories.
Click to hide internal directories.