identity

package
v0.0.0-...-897bb11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnknownOption            = Option("")
	OneLogin                 = Option("one login")
	EasyID                   = Option("easy id")
	Passport                 = Option("passport")
	BiometricResidencePermit = Option("biometric residence permit")
	DrivingLicencePhotocard  = Option("driving licence photocard")
	DrivingLicencePaper      = Option("driving licence paper")
	OnlineBankAccount        = Option("online bank account")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option string

func ReadOption

func ReadOption(s string) Option

func (Option) ArticleLabel

func (o Option) ArticleLabel() string

type UserData

type UserData struct {
	OK          bool
	Provider    Option
	FirstNames  string
	LastName    string
	DateOfBirth date.Date
	RetrievedAt time.Time
}

func (UserData) MatchName

func (u UserData) MatchName(firstNames, lastName string) bool

type YotiClient

type YotiClient struct {
	// contains filtered or unexported fields
}

func NewYotiClient

func NewYotiClient(scenarioID, clientID string, privateKeyBytes []byte) (*YotiClient, error)

func (*YotiClient) IsTest

func (c *YotiClient) IsTest() bool

func (*YotiClient) ScenarioID

func (c *YotiClient) ScenarioID() string

func (*YotiClient) SdkID

func (c *YotiClient) SdkID() string

func (*YotiClient) SetupSandbox

func (c *YotiClient) SetupSandbox() error

func (*YotiClient) User

func (c *YotiClient) User(token string) (UserData, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL