Documentation ¶
Index ¶
- Constants
- Variables
- type Provider
- func (p *Provider) Create(i *identity.Biometric) error
- func (p *Provider) Delete(i *identity.Biometric) error
- func (p *Provider) Get(userID, id string) (*identity.Biometric, error)
- func (p *Provider) GetByKeyID(keyID string) (*identity.Biometric, error)
- func (p *Provider) GetMany(ids []string) ([]*identity.Biometric, error)
- func (p *Provider) List(userID string) ([]*identity.Biometric, error)
- func (p *Provider) New(userID string, keyID string, key []byte, deviceInfo map[string]interface{}) *identity.Biometric
- func (p *Provider) ParseRequest(requestJWT string, i *identity.Biometric) (*Request, error)
- func (p *Provider) ParseRequestUnverified(requestJWT string) (r *Request, err error)
- type Request
- type RequestAction
- type Store
- func (s *Store) Create(i *identity.Biometric) error
- func (s *Store) Delete(i *identity.Biometric) error
- func (s *Store) Get(userID, id string) (*identity.Biometric, error)
- func (s *Store) GetByKeyID(keyID string) (*identity.Biometric, error)
- func (s *Store) GetMany(ids []string) ([]*identity.Biometric, error)
- func (s *Store) List(userID string) ([]*identity.Biometric, error)
Constants ¶
View Source
const RequestTokenType = "vnd.authgear.biometric-request"
nolint:gosec
Variables ¶
View Source
var DependencySet = wire.NewSet( wire.Struct(new(Store), "*"), wire.Struct(new(Provider), "*"), )
View Source
var KeyIDFormat = regexp.MustCompile(`^[-\w]{8,64}$`)
Functions ¶
This section is empty.
Types ¶
type Provider ¶
func (*Provider) GetByKeyID ¶
func (*Provider) ParseRequest ¶
type RequestAction ¶
type RequestAction string
const ( RequestActionSetup RequestAction = "setup" RequestActionAuthenticate RequestAction = "authenticate" )
type Store ¶
type Store struct { SQLBuilder *appdb.SQLBuilderApp SQLExecutor *appdb.SQLExecutor }
Click to show internal directories.
Click to hide internal directories.