Versions in this module Expand all Collapse all v0 v0.1.0 Oct 28, 2026 Changes in this version + func VerifyCallbackSignature(body []byte, signature, secret string) bool + type AgeVerificationCompleted struct + AgeVerified bool + Id string + type AgeVerificationFailed struct + Error string + Id string + type AgeVerificationPending struct + Id string + MaxAge *int + MinAge *int + Url *string + type AgeVerificationRequest struct + CallbackUrl *string + MaxAge *int + MinAge *int + RedirectUrl *string + RefId *string + type AgeVerificationStatus interface + type BankIdNoAuthRequest struct + AppCallbackUri *string + RedirectUrl *string + RefId *string + RequestAddress *bool + RequestEmail *bool + RequestPhone *bool + RequestSsn *bool + type BankIdNoBackchannelAuthRequest struct + CallbackUrl *string + RefId *string + Ssn string + type BankIdNoCompleted struct + Address *string + AuthenticatedAt *string + BankId *string + BirthDate *string + Email *string + GivenName string + Id string + Name string + Phone *string + Pid *string + RefId *string + SignResult *BankIdNoSignResult + SignedAt *string + SignedDocuments []BankIdNoSignedDocument + Ssn *string + Surname string + type BankIdNoEndpoint struct + func (e *BankIdNoEndpoint) AgeVerification(ctx context.Context, req AgeVerificationRequest) (AgeVerificationStatus, error) + func (e *BankIdNoEndpoint) AgeVerificationStatus(ctx context.Context, id string) (AgeVerificationStatus, error) + func (e *BankIdNoEndpoint) Auth(ctx context.Context, req BankIdNoAuthRequest) (BankIdNoStatus, error) + func (e *BankIdNoEndpoint) AuthStatus(ctx context.Context, id string) (BankIdNoStatus, error) + func (e *BankIdNoEndpoint) BackchannelAuth(ctx context.Context, req BankIdNoBackchannelAuthRequest) (BankIdNoStatus, error) + func (e *BankIdNoEndpoint) CancelAgeVerification(ctx context.Context, id string) error + func (e *BankIdNoEndpoint) CancelAuth(ctx context.Context, id string) error + func (e *BankIdNoEndpoint) CancelSign(ctx context.Context, id string) error + func (e *BankIdNoEndpoint) Sign(ctx context.Context, req BankIdNoSignRequest) (BankIdNoStatus, error) + func (e *BankIdNoEndpoint) SignStatus(ctx context.Context, id string) (BankIdNoStatus, error) + func (e *BankIdNoEndpoint) WaitForAgeVerification(ctx context.Context, id string, opts PollOptions) (AgeVerificationStatus, error) + func (e *BankIdNoEndpoint) WaitForAuth(ctx context.Context, id string, opts PollOptions) (BankIdNoStatus, error) + func (e *BankIdNoEndpoint) WaitForSign(ctx context.Context, id string, opts PollOptions) (BankIdNoStatus, error) + type BankIdNoFailed struct + Error string + Id string + RefId *string + type BankIdNoPending struct + BindingMessage *string + Id string + RefId *string + Url *string + type BankIdNoSignRequest struct + Documents []string + RedirectUrl *string + RefId *string + Text *string + type BankIdNoSignResult struct + EndUser string + Hash string + Merchant string + type BankIdNoSignedDocument struct + Hash string + Id string + type BankIdNoStatus interface + type BankIdSeAuthRequest struct + CallbackUrl *string + Intent *string + IpAddress *string + OrgNumber *string + PinRequired *bool + RefId *string + RequestAddress *bool + Ssn *string + type BankIdSeCompleted struct + Address *string + AuthenticatedAt *string + CertStartDate *string + CompanySignatoryText *string + Device *BankIdSeDevice + GivenName string + Id string + Name string + OcspResponse string + RefId *string + Risk *string + SignedAt *string + Ssn string + StepUp *BankIdSeStepUp + Surname string + type BankIdSeDevice struct + IpAddress *string + Uhi *string + type BankIdSeEndpoint struct + func (e *BankIdSeEndpoint) AgeVerification(ctx context.Context, req AgeVerificationRequest) (AgeVerificationStatus, error) + func (e *BankIdSeEndpoint) AgeVerificationStatus(ctx context.Context, id string) (AgeVerificationStatus, error) + func (e *BankIdSeEndpoint) Auth(ctx context.Context, req BankIdSeAuthRequest) (BankIdSeStatus, error) + func (e *BankIdSeEndpoint) AuthStatus(ctx context.Context, id string) (BankIdSeStatus, error) + func (e *BankIdSeEndpoint) CancelAgeVerification(ctx context.Context, id string) error + func (e *BankIdSeEndpoint) CancelAuth(ctx context.Context, id string) error + func (e *BankIdSeEndpoint) CancelSign(ctx context.Context, id string) error + func (e *BankIdSeEndpoint) PhoneAuth(ctx context.Context, req BankIdSePhoneAuthRequest) (BankIdSePhoneStatus, error) + func (e *BankIdSeEndpoint) PhoneSign(ctx context.Context, req BankIdSePhoneSignRequest) (BankIdSePhoneStatus, error) + func (e *BankIdSeEndpoint) Sign(ctx context.Context, req BankIdSeSignRequest) (BankIdSeStatus, error) + func (e *BankIdSeEndpoint) SignStatus(ctx context.Context, id string) (BankIdSeStatus, error) + func (e *BankIdSeEndpoint) Verify(ctx context.Context, req BankIdSeVerifyRequest) (*BankIdSeVerifyResponse, error) + func (e *BankIdSeEndpoint) WaitForAgeVerification(ctx context.Context, id string, opts PollOptions) (AgeVerificationStatus, error) + func (e *BankIdSeEndpoint) WaitForAuth(ctx context.Context, id string, opts PollOptions) (BankIdSeStatus, error) + func (e *BankIdSeEndpoint) WaitForSign(ctx context.Context, id string, opts PollOptions) (BankIdSeStatus, error) + type BankIdSeFailed struct + Error string + Id string + RefId *string + type BankIdSePending struct + AutoStartToken *string + HintCode *string + Id string + QrStartSecret *string + QrStartToken *string + RefId *string + type BankIdSePendingPhone struct + HintCode *string + Id string + RefId *string + type BankIdSePhoneAuthRequest struct + CallInitiator string + CallbackUrl *string + Intent *string + OrgNumber *string + PinRequired *bool + RefId *string + RequestAddress *bool + Ssn string + type BankIdSePhoneSignRequest struct + CallInitiator string + CallbackUrl *string + Digest *string + OrgNumber *string + PinRequired *bool + RefId *string + RequestAddress *bool + Ssn string + Text string + type BankIdSePhoneStatus interface + type BankIdSeSignRequest struct + CallbackUrl *string + Digest *string + IpAddress *string + OrgNumber *string + PinRequired *bool + RefId *string + RequestAddress *bool + Ssn *string + Text string + type BankIdSeStatus interface + type BankIdSeStepUp struct + Face *bool + Mrtd *bool + type BankIdSeVerifyRequest struct + QrCode string + type BankIdSeVerifyResponse struct + Age *int + GivenName string + Name string + Ssn string + Surname string + VerifiedAt *string + type DocumentEndpoint struct + func (e *DocumentEndpoint) Download(ctx context.Context, id string) ([]byte, error) + func (e *DocumentEndpoint) Upload(ctx context.Context, data []byte, filename string, mimeType string) (*DocumentUploadResponse, error) + type DocumentUploadResponse struct + Hash string + Id string + type Environment int + const Production + const Staging + type FrejaAuthRequest struct + CallbackUrl *string + MinRegistrationLevel *string + OrgNumber *string + RefId *string + RequestAddress *bool + Ssn *string + type FrejaBackchannelAuthRequest struct + CallbackUrl *string + Country string + MinRegistrationLevel *string + OrgNumber *string + RefId *string + RequestAddress *bool + Ssn string + type FrejaBackchannelSignRequest struct + CallbackUrl *string + Country string + MinRegistrationLevel *string + OrgNumber *string + RefId *string + RequestAddress *bool + Ssn string + Text string + type FrejaCompleted struct + Address *string + AuthenticatedAt *string + CompanySignatoryText *string + Country string + GivenName string + Id string + Name string + RefId *string + SignedAt *string + Ssn string + Surname string + type FrejaEndpoint struct + func (e *FrejaEndpoint) AgeVerification(ctx context.Context, req AgeVerificationRequest) (AgeVerificationStatus, error) + func (e *FrejaEndpoint) AgeVerificationStatus(ctx context.Context, id string) (AgeVerificationStatus, error) + func (e *FrejaEndpoint) Auth(ctx context.Context, req FrejaAuthRequest) (FrejaStatus, error) + func (e *FrejaEndpoint) AuthStatus(ctx context.Context, id string) (FrejaStatus, error) + func (e *FrejaEndpoint) BackchannelAuth(ctx context.Context, req FrejaBackchannelAuthRequest) (FrejaStatus, error) + func (e *FrejaEndpoint) BackchannelSign(ctx context.Context, req FrejaBackchannelSignRequest) (FrejaStatus, error) + func (e *FrejaEndpoint) CancelAgeVerification(ctx context.Context, id string) error + func (e *FrejaEndpoint) CancelAuth(ctx context.Context, id string) error + func (e *FrejaEndpoint) CancelSign(ctx context.Context, id string) error + func (e *FrejaEndpoint) Sign(ctx context.Context, req FrejaSignRequest) (FrejaStatus, error) + func (e *FrejaEndpoint) SignStatus(ctx context.Context, id string) (FrejaStatus, error) + func (e *FrejaEndpoint) WaitForAgeVerification(ctx context.Context, id string, opts PollOptions) (AgeVerificationStatus, error) + func (e *FrejaEndpoint) WaitForAuth(ctx context.Context, id string, opts PollOptions) (FrejaStatus, error) + func (e *FrejaEndpoint) WaitForSign(ctx context.Context, id string, opts PollOptions) (FrejaStatus, error) + type FrejaFailed struct + Error string + Id string + RefId *string + type FrejaPending struct + AutoStartToken string + Id string + QrData string + RefId *string + type FrejaSignRequest struct + CallbackUrl *string + MinRegistrationLevel *string + OrgNumber *string + RefId *string + RequestAddress *bool + Ssn *string + Text string + type FrejaStatus interface + type FtnAuthRequest struct + RedirectUrl *string + RefId *string + RequestAddress *bool + RequestEmail *bool + RequestPhone *bool + type FtnCompleted struct + Address *string + AuthenticatedAt *string + BankId *string + BankName *string + BirthDate *string + Email *string + GivenName string + Id string + Name string + Phone *string + Pid *string + RefId *string + Ssn *string + Surname string + type FtnEndpoint struct + func (e *FtnEndpoint) AgeVerification(ctx context.Context, req AgeVerificationRequest) (AgeVerificationStatus, error) + func (e *FtnEndpoint) AgeVerificationStatus(ctx context.Context, id string) (AgeVerificationStatus, error) + func (e *FtnEndpoint) Auth(ctx context.Context, req FtnAuthRequest) (FtnStatus, error) + func (e *FtnEndpoint) AuthStatus(ctx context.Context, id string) (FtnStatus, error) + func (e *FtnEndpoint) CancelAgeVerification(ctx context.Context, id string) error + func (e *FtnEndpoint) CancelAuth(ctx context.Context, id string) error + func (e *FtnEndpoint) WaitForAgeVerification(ctx context.Context, id string, opts PollOptions) (AgeVerificationStatus, error) + func (e *FtnEndpoint) WaitForAuth(ctx context.Context, id string, opts PollOptions) (FtnStatus, error) + type FtnFailed struct + Error string + Id string + RefId *string + type FtnPending struct + Id string + RefId *string + Url string + type FtnStatus interface + type IdentisureClient struct + func (c *IdentisureClient) BankIdNo() *BankIdNoEndpoint + func (c *IdentisureClient) BankIdSe() *BankIdSeEndpoint + func (c *IdentisureClient) Document() *DocumentEndpoint + func (c *IdentisureClient) Freja() *FrejaEndpoint + func (c *IdentisureClient) Ftn() *FtnEndpoint + func (c *IdentisureClient) MitId() *MitIdEndpoint + func (c *IdentisureClient) Vipps() *VippsEndpoint + type IdentisureClientBuilder struct + func NewClientBuilder(clientID, clientSecret string) *IdentisureClientBuilder + func (b *IdentisureClientBuilder) BaseURL(url string) *IdentisureClientBuilder + func (b *IdentisureClientBuilder) Build() *IdentisureClient + func (b *IdentisureClientBuilder) Environment(env Environment) *IdentisureClientBuilder + func (b *IdentisureClientBuilder) HTTPClient(c *http.Client) *IdentisureClientBuilder + func (b *IdentisureClientBuilder) Timeout(d time.Duration) *IdentisureClientBuilder + type IdentisureError struct + Err error + Message string + StatusCode int + func (e *IdentisureError) Error() string + func (e *IdentisureError) Unwrap() error + type MitIdAuthRequest struct + RedirectUrl *string + RefId *string + ReferenceText *string + RequestAddress *bool + RequestEmail *bool + RequestPhone *bool + type MitIdBackchannelAuthRequest struct + BindingMessage string + CallbackUrl *string + RefId *string + Ssn string + type MitIdCompleted struct + Address *string + AuthenticatedAt *string + BankId *string + BirthDate *string + Email *string + GivenName string + Id string + Name string + Phone *string + Pid *string + RefId *string + SignResult *MitIdSignResult + SignedAt *string + Ssn *string + Surname string + type MitIdEndpoint struct + func (e *MitIdEndpoint) AgeVerification(ctx context.Context, req AgeVerificationRequest) (AgeVerificationStatus, error) + func (e *MitIdEndpoint) AgeVerificationStatus(ctx context.Context, id string) (AgeVerificationStatus, error) + func (e *MitIdEndpoint) Auth(ctx context.Context, req MitIdAuthRequest) (MitIdStatus, error) + func (e *MitIdEndpoint) AuthStatus(ctx context.Context, id string) (MitIdStatus, error) + func (e *MitIdEndpoint) BackchannelAuth(ctx context.Context, req MitIdBackchannelAuthRequest) (MitIdStatus, error) + func (e *MitIdEndpoint) CancelAgeVerification(ctx context.Context, id string) error + func (e *MitIdEndpoint) CancelAuth(ctx context.Context, id string) error + func (e *MitIdEndpoint) CancelSign(ctx context.Context, id string) error + func (e *MitIdEndpoint) Sign(ctx context.Context, req MitIdSignRequest) (MitIdStatus, error) + func (e *MitIdEndpoint) SignStatus(ctx context.Context, id string) (MitIdStatus, error) + func (e *MitIdEndpoint) WaitForAgeVerification(ctx context.Context, id string, opts PollOptions) (AgeVerificationStatus, error) + func (e *MitIdEndpoint) WaitForAuth(ctx context.Context, id string, opts PollOptions) (MitIdStatus, error) + func (e *MitIdEndpoint) WaitForSign(ctx context.Context, id string, opts PollOptions) (MitIdStatus, error) + type MitIdFailed struct + Error string + Id string + RefId *string + type MitIdPending struct + BindingMessage *string + Id string + RefId *string + Url *string + type MitIdSignRequest struct + RedirectUrl *string + RefId *string + Text string + type MitIdSignResult struct + Checksum string + type MitIdStatus interface + type PollOptions struct + Interval time.Duration + type UnknownStatus struct + Status string + type VippsAuthRequest struct + AppCallbackUri *string + RedirectUrl *string + RefId *string + RequestAddress *bool + RequestEmail *bool + RequestPhone *bool + RequestSsn *bool + type VippsBackchannelAuthRequest struct + CallbackUrl *string + Phone string + RefId *string + RequestAddress *bool + RequestEmail *bool + RequestSsn *bool + type VippsCompleted struct + Address *string + AuthenticatedAt *string + BankId *string + BirthDate *string + Email *string + GivenName string + Id string + Name string + Phone *string + Pid *string + RefId *string + Ssn *string + Surname string + type VippsEndpoint struct + func (e *VippsEndpoint) Auth(ctx context.Context, req VippsAuthRequest) (VippsStatus, error) + func (e *VippsEndpoint) AuthStatus(ctx context.Context, id string) (VippsStatus, error) + func (e *VippsEndpoint) BackchannelAuth(ctx context.Context, req VippsBackchannelAuthRequest) (VippsStatus, error) + func (e *VippsEndpoint) CancelAuth(ctx context.Context, id string) error + func (e *VippsEndpoint) WaitForAuth(ctx context.Context, id string, opts PollOptions) (VippsStatus, error) + type VippsFailed struct + Error string + Id string + RefId *string + type VippsPending struct + Id string + RefId *string + Url *string + type VippsStatus interface + type WaitError struct + Err error + Timeout bool + func (e *WaitError) Error() string + func (e *WaitError) Unwrap() error