Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server Server Webauthn WebauthnSettings Passcode Passcode Password Password Database Database Secrets Secrets Service Service Session Session }
Config is the central configuration type
type Database ¶
type Database struct { Database string `json:"database"` User string `json:"user"` Password string `json:"password"` Host string `json:"host"` Port string `json:"port"` Dialect string `json:"dialect"` }
Database connection settings
type RelyingParty ¶
type RelyingParty struct { Id string DisplayName string `koanf:"display_name"` Icon string Origin string }
RelyingParty webauthn settings for your application using hanko.
type Secrets ¶
type Secrets struct { // Keys secret is used to en- and decrypt the JWKs which get used to sign the JWT tokens. // For every key a JWK is generated, encrypted with the key and persisted in the database. // The first key in the list is the one getting used for signing. If you want to use a new key, add it to the top of the list. // You can use this list for key rotation. // Each key must be at least 16 characters long. Keys []string `json:"keys"` }
type Server ¶
type Server struct { Public ServerSettings Private ServerSettings }
Server contains the setting for the public and private server
type ServerSettings ¶
type ServerSettings struct { // The Address to listen on in the form of host:port // See net.Dial for details of the address format. Address string Cors Cors }
func (*ServerSettings) Validate ¶
func (s *ServerSettings) Validate() error
type WebauthnSettings ¶
type WebauthnSettings struct { RelyingParty RelyingParty `koanf:"relying_party"` Timeout int }
WebauthnSettings defines the settings for the webauthn authentication mechanism
func (*WebauthnSettings) Validate ¶
func (r *WebauthnSettings) Validate() error
Validate does not need to validate the config, because the library does this already
Click to show internal directories.
Click to hide internal directories.