Documentation ¶
Index ¶
- func AuthenticatorOptionsREST() usecase.IOInteractor
- func AuthenticatorRegisterREST() usecase.IOInteractor
- func GetAttestationOptions(ctx context.Context, authenticatorType webauthn.AuthenticatorAttachment) (ccOptions *webauthn.PublicKeyCredentialCreationOptions, fullChallenge []byte, ...)
- func Init(ctx context.Context, cfg *Config) error
- type Authenticator
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticatorOptionsREST ¶
func AuthenticatorOptionsREST() usecase.IOInteractor
func AuthenticatorRegisterREST ¶
func AuthenticatorRegisterREST() usecase.IOInteractor
func GetAttestationOptions ¶
func GetAttestationOptions(ctx context.Context, authenticatorType webauthn.AuthenticatorAttachment) (ccOptions *webauthn.PublicKeyCredentialCreationOptions, fullChallenge []byte, err error)
Types ¶
type Authenticator ¶
type Authenticator struct { RegistrationID string `gorm:"primary_key"` // base64url encoded ID returned from client ChallengeHash string // Foreign key to the Challenge Attestation []byte // PublicKeyCredentialAttestation returned from the client VerifiedRPID string // RPID used during the verification VerifiedOrigin string // Origin used during the verification VerificationTime time.Time // Time of the verification TrustCertThumbprintSHA256 string // Hex encoded SHA256 hash of the trust path first certificate AuthenticatorGUID []byte // Foreign key to the AuthenticatorType }
func RegisterAuthenticator ¶
func (*Authenticator) Id ¶
func (r *Authenticator) Id() string
func (*Authenticator) IdFieldName ¶
func (r *Authenticator) IdFieldName() string
func (*Authenticator) SetId ¶
func (r *Authenticator) SetId(id string)
Click to show internal directories.
Click to hide internal directories.