api

package
v0.0.0-...-17fb945 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUp

func CleanUp(db *bbolt.DB) error

Types

type AuthRequestDTO

type AuthRequestDTO struct {
	EndUserIP             string      `json:"endUserIp"`
	Requirement           Requirement `json:"requirement"`
	UserVisibleData       string      `json:"userVisibleData"`
	UserNonVisibleData    string      `json:"userNonVisibleData"`
	UserVisibleDataFormat string      `json:"userVisibleDataFormat"`
}

type AuthResponseDTO

type AuthResponseDTO struct {
	OrderRef       string `json:"orderRef"`
	AutoStartToken string `json:"autoStartToken"`
	QRStartToken   string `json:"qrStartToken"`
	QRStartSecret  string `json:"qrStartSecret"`
}

type CancelRequestDTO

type CancelRequestDTO struct {
	OrderRef string `json:"orderRef"`
}

type CollectRequestDTO

type CollectRequestDTO struct {
	OrderRef string `json:"orderRef"`
}

type CollectResponseDTO

type CollectResponseDTO struct {
	OrderRef string        `json:"orderRef"`
	Status   CollectStatus `json:"status"`
	HintCode HintCode      `json:"hintCode"`
}

type CollectStatus

type CollectStatus string
var (
	CollectStatusComplete CollectStatus = "complete"
	CollectStatusPending  CollectStatus = "pending"
	CollectStatusFailed   CollectStatus = "failed"
)

type CompletionData

type CompletionData struct {
	User            User      `json:"user"`
	Device          Device    `json:"device"`
	BankIDIssueDate time.Time `json:"bankIdIssueDate"`
	// StepUp
	Signature    string `json:"signature"`
	OCSPResponse string `json:"ocspResponse"`
}

type Controller

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

func NewController

func NewController(db *bbolt.DB) *Controller

func (*Controller) Auth

func (ctrl *Controller) Auth(w http.ResponseWriter, r *http.Request)

func (*Controller) Collect

func (ctrl *Controller) Collect(w http.ResponseWriter, r *http.Request)

type Device

type Device struct {
	IPAddress        string `json:"ipAddress"`
	UniqueHardwareID string `json:"uhi"`
}

type HintCode

type HintCode string
var (
	HintCodeOutstandingTransaction HintCode = "outstandingTransaction"
	HintCodeNoClient               HintCode = "noClient"
	HintCodeStarted                HintCode = "started"
	HintCodeUserMrtd               HintCode = "userMrtd"
	HintCodeUserCallConfirm        HintCode = "userCallConfirm"
	HintCodeUserSign               HintCode = "userSign"
)

type Requirement

type Requirement struct {
	PinCode             bool     `json:"pinCode"`
	MRTD                bool     `json:"mrtd"`
	CardReader          string   `json:"cardReader"`
	CertificatePolicies []string `json:"certificatePolicies"`
	PersonalNumber      string   `json:"personalNumber"`
}

type User

type User struct {
	PersonalNumber string `json:"personalNumber"`
	Name           string `json:"name"`
	GivenName      string `json:"givenName"`
	Surname        string `json:"surname"`
}

Jump to

Keyboard shortcuts

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