errors

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingRelyingPartyName = errors.New("missing required configuration: RelyingPartyName")
	ErrMissingRelyingPartyUUID = errors.New("missing required configuration: RelyingPartyUUID")

	ErrUnsupportedHashType = errors.New("unsupported hash type, allowed hash types are SHA256, SHA384 or SHA512")

	ErrMobileIdProviderError        = errors.New("Mobile-ID provider error")
	ErrMobileIdProviderPayloadError = errors.New("Mobile-ID request payload is invalid")
	ErrMobileIdAccessForbidden      = errors.New("Mobile-ID access forbidden. User authorization by RelyingPartyName, RelyingPartyUUID and IP-address fails")
	ErrMobileIdMethodNotAllowed     = errors.New("Mobile-ID method not allowed. Only HTTP methods POST and OPTIONS are allowed")
	ErrMobileIdSessionNotFound      = errors.New("Mobile-ID session not found or expired")

	ErrInvalidCertificate    = errors.New("invalid certificate")
	ErrInvalidIdentityNumber = errors.New("invalid identity number")

	ErrFailedToGenerateRandomBytes = errors.New("failed to generate random bytes")

	ErrUnsupportedState  = errors.New("unsupported state, allowed states are COMPLETE or RUNNING")
	ErrUnsupportedResult = errors.New("unsupported result, allowed results are OK or NOT_MID_CLIENT, USER_CANCELLED, SIGNATURE_HASH_MISMATCH, PHONE_ABSENT, DELIVERY_ERROR, SIM_ERROR, TIMEOUT")

	ErrAuthenticationIsRunning = errors.New("authentication is still running")

	ErrFailedToDecodeCertificate = errors.New("failed to decode certificate")
	ErrFailedToParseCertificate  = errors.New("failed to parse certificate")

	ErrFailedToReadCertificateFile   = errors.New("failed to read certificate file")
	ErrFailedToDecodeCertificateFile = errors.New("failed to decode certificate file")
	ErrFailedToParseCertificateFile  = errors.New("failed to parse certificate file")

	ErrFailedToVerifyCertificate = errors.New("failed to verify certificate pinning")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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