Documentation ¶
Index ¶
- Constants
- Variables
- type Provider
- func (p *Provider) Create(ctx context.Context, i *identity.Biometric) error
- func (p *Provider) Delete(ctx context.Context, i *identity.Biometric) error
- func (p *Provider) Get(ctx context.Context, userID, id string) (*identity.Biometric, error)
- func (p *Provider) GetByKeyID(ctx context.Context, keyID string) (*identity.Biometric, error)
- func (p *Provider) GetMany(ctx context.Context, ids []string) ([]*identity.Biometric, error)
- func (p *Provider) List(ctx context.Context, 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(ctx context.Context, i *identity.Biometric) error
- func (s *Store) Delete(ctx context.Context, i *identity.Biometric) error
- func (s *Store) Get(ctx context.Context, userID, id string) (*identity.Biometric, error)
- func (s *Store) GetByKeyID(ctx context.Context, keyID string) (*identity.Biometric, error)
- func (s *Store) GetMany(ctx context.Context, ids []string) ([]*identity.Biometric, error)
- func (s *Store) List(ctx context.Context, 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 }
func (*Store) GetByKeyID ¶
Click to show internal directories.
Click to hide internal directories.