Documentation
¶
Index ¶
- Constants
- func NewAuthenticationProvider(baseURL string, querier db.TransactionQuerier, authKey []byte, ...) (*authenticationProvider, error)
- func NewNoAuth(user *queries.User) *noAuth
- func URLValuesToMap(form url.Values) map[string]string
- type CreateWebauthnCredential
- type WebauthnValues
- func (u WebauthnValues) GetCreationCredential() protocol.ParsedCredentialCreationData
- func (u WebauthnValues) GetCredentialAssertion() protocol.ParsedCredentialAssertionData
- func (u WebauthnValues) GetCredentialName() string
- func (u WebauthnValues) GetPID() string
- func (u WebauthnValues) GetShouldRemember() bool
Constants ¶
View Source
const ( FormValueEmail = "email" FormValuePassword = "password" FormValueUsername = "username" FormValueCredentialName = "name" FormValueConfirm = "cnf" FormValueToken = "token" FormValueCode = "code" FormValueRecoveryCode = "recovery_code" FormValuePhoneNumber = "phone_number" )
FormValue types
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticationProvider ¶
func NewAuthenticationProvider(baseURL string, querier db.TransactionQuerier, authKey []byte, sessionKey []byte, emailTaskRunner emailTaskRunner, cache cache.CacheProvider[queries.User]) (*authenticationProvider, error)
Types ¶
type CreateWebauthnCredential ¶
type CreateWebauthnCredential struct {
protocol.CredentialCreationResponse
Name string
}
type WebauthnValues ¶
type WebauthnValues struct {
defaults.HTTPFormValidator
PID string
Name string
CreationCredential *protocol.ParsedCredentialCreationData
CredentialAssertion *protocol.ParsedCredentialAssertionData
}
WebauthnValues from the login form
func (WebauthnValues) GetCreationCredential ¶
func (u WebauthnValues) GetCreationCredential() protocol.ParsedCredentialCreationData
func (WebauthnValues) GetCredentialAssertion ¶
func (u WebauthnValues) GetCredentialAssertion() protocol.ParsedCredentialAssertionData
func (WebauthnValues) GetCredentialName ¶
func (u WebauthnValues) GetCredentialName() string
func (WebauthnValues) GetShouldRemember ¶
func (u WebauthnValues) GetShouldRemember() bool
Source Files
¶
Click to show internal directories.
Click to hide internal directories.