Documentation
¶
Index ¶
- Variables
- type Account
- type AuthProvider
- type Cache
- type CacheConfig
- type CacheStats
- type Config
- type CookieConfig
- type Endpoint
- type EndpointMetadata
- type EndpointProvider
- type ErrorResponse
- type HTTPProvider
- type Kuta
- type PasswordHandler
- type Plugin
- type PluginDependencies
- type PluginEndpoint
- type RefreshResult
- type RequestContext
- type Session
- type SessionConfig
- type SessionData
- type SignInInput
- type SignInResult
- type SignUpInput
- type SignUpResult
- type StorageProvider
- type User
Constants ¶
This section is empty.
Variables ¶
var ( ErrUserExists = core.ErrUserExists ErrUserNotFound = core.ErrUserNotFound ErrInvalidCredentials = core.ErrInvalidCredentials ErrMissingAuthHeader = core.ErrMissingAuthHeader ErrInvalidToken = core.ErrInvalidToken ErrSessionNotFound = core.ErrSessionNotFound ErrSessionExpired = core.ErrSessionExpired ErrCacheNotFound = core.ErrCacheNotFound ErrInvalidAuthHeader = core.ErrInvalidAuthHeader ErrEmailRequired = core.ErrEmailRequired ErrPasswordRequired = core.ErrPasswordRequired ErrPasswordTooShort = core.ErrPasswordTooShort ErrPasswordTooLong = core.ErrPasswordTooLong ErrPasswordComplexity = core.ErrPasswordComplexity ErrInvalidEmail = core.ErrInvalidEmail ErrDBAdapterRequired = core.ErrDBAdapterRequired ErrHTTPAdapterRequired = core.ErrHTTPAdapterRequired ErrSecretRequired = core.ErrSecretRequired ErrSecretTooShort = core.ErrSecretTooShort ErrNotImplemented = core.ErrNotImplemented ErrInvalidRequestBody = core.ErrInvalidRequestBody )
Errors
var ( NewInMemoryCache = cache.NewInMemoryCache NewArgon2 = crypto.NewArgon2 )
Constructors
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶
type AuthProvider = core.AuthProvider
Re-exports from core and services packages
type Config ¶
type Config struct {
Secret string
Database StorageProvider
HTTP HTTPProvider
Plugins []Plugin
SessionConfig *SessionConfig
CookieConfig *CookieConfig
PasswordHandler PasswordHandler
BasePath string
CacheProvider Cache
DisableCache bool
}
Config for Kuta initialization
type CookieConfig ¶ added in v0.1.2
type CookieConfig = core.CookieConfig
Re-exports from core and services packages
type EndpointMetadata ¶
type EndpointMetadata = core.EndpointMetadata
Re-exports from core and services packages
type EndpointProvider ¶
type EndpointProvider = core.EndpointProvider
Re-exports from core and services packages
type ErrorResponse ¶
type ErrorResponse = core.ErrorResponse
Re-exports from core and services packages
type HTTPProvider ¶
type HTTPProvider = core.HTTPProvider
Re-exports from core and services packages
type Kuta ¶
type Kuta struct {
Protected any
// contains filtered or unexported fields
}
Kuta is the main auth instance
type PasswordHandler ¶
type PasswordHandler = crypto.PasswordHandler
Re-exports from core and services packages
type PluginDependencies ¶ added in v0.1.3
type PluginDependencies = core.PluginDependencies
Re-exports from core and services packages
type PluginEndpoint ¶ added in v0.1.3
type PluginEndpoint = core.PluginEndpoint
Re-exports from core and services packages
type RefreshResult ¶
type RefreshResult = core.RefreshResult
Re-exports from core and services packages
type RequestContext ¶
type RequestContext = core.RequestContext
Re-exports from core and services packages
type SessionConfig ¶
type SessionConfig = core.SessionConfig
Re-exports from core and services packages
type SignInResult ¶
type SignInResult = core.SignInResult
Re-exports from core and services packages
type SignUpResult ¶
type SignUpResult = core.SignUpResult
Re-exports from core and services packages
type StorageProvider ¶
type StorageProvider = core.StorageProvider
Re-exports from core and services packages