messaging

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TopicGenerateAuthorization     = "auth.authorization.generate"
	EventTypeGenerateAuthorization = "auth.authorization.generate"
)
View Source
const (
	TopicValidation     = "auth.authorization.validate"
	EventTypeValidation = "auth.authorization.validate.v1"
)
View Source
const SourcePreAuthBridge = "preauthbridge"

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication struct {
	Token                     string             `json:"token"`
	Code                      string             `json:"code"`
	Nonce                     string             `json:"nonce"`
	Pin                       string             `json:"pin"`
	ExpiresAt                 time.Time          `json:"expires_at"`
	CredentialConfigurationId string             `json:"credential_configuration_id"`
	CredentialIdentifier      []string           `json:"credential_identifier"`
	TxCode                    *credential.TxCode `json:"tx_code"`
}

type GenerateAuthorizationRep

type GenerateAuthorizationRep struct {
	common.Reply
	*Authentication
}

type GenerateAuthorizationReq

type GenerateAuthorizationReq struct {
	common.Request
	TwoFactor                 TwoFactor `json:"twoFactor"`
	CredentialConfigurationId string    `json:"credential_configuration_id"`
	CredentialIdentifier      []string  `json:"credential_identifier"`
	Nonce                     string    `json:"nonce"`
}

type TwoFactor

type TwoFactor struct {
	Enabled          bool   `json:"enabled"`
	RecipientType    string `json:"recipientType"`
	RecipientAddress string `json:"recipientAddress"`
}

type ValidateAuthenticationRep

type ValidateAuthenticationRep struct {
	common.Reply
	Valid                     bool     `json:"valid"`
	Nonce                     string   `json:"nonce"`
	CredentialConfigurationId *string  `json:"credential_configuration_id"`
	CredentialIdentifier      []string `json:"credential_identifier"`
}

type ValidateAuthenticationReq

type ValidateAuthenticationReq struct {
	common.Request
	Params ValidateAuthenticationReqParams
}

type ValidateAuthenticationReqParams

type ValidateAuthenticationReqParams struct {
	Key string `json:"key"`
}

Jump to

Keyboard shortcuts

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