package
0.0.3-k8s-alpha0
Repository: https://github.com/davidwalter0/tools.git
Documentation: pkg.go.dev
# Functions
BytesToID converts a byte slice to a uint.
CreateAuthenticator creates a new authenticator that's tied to a Credential.
CreateCredential creates a new credential object.
DeleteCredentialByID gets a credential by its ID.
GetAuthenticator returns the authenticator the given id corresponds to.
GetCredentialForUser retrieves a specific credential for a user.
GetCredentialsForUser retrieves all credentials for a provided user regardless of relying party.
GetUser returns the user that the given id corresponds to.
GetUserByUsername returns the user that the given username corresponds to.
PutUser updates the given user.
Setup initializes the Conn object It also populates the Config object.
UpdateAuthenticatorSignCount updates a specific authenticator's sign count for tracking potential clone attempts.
UpdateCredential updates the credential with new attributes.
# Constants
PlaceholderUserIcon is the default user icon used when creating a new user.
PlaceholderUsername is the default username to use if one isn't provided by the user (in the case of a placeholder).
# Variables
ErrUsernameTaken is thrown when a user attempts to register a username that is taken.
# Structs
Authenticator is a struct representing a WebAuthn authenticator, which is responsible for generating Credentials.
Credential is the stored credential for Auth.
User represents the user model.