Skip to content
Signature Management

Signature Management

Signature Management records electronic signatures of users on resources of your application. Signatures are unqualified electronic signatures: they do not have the legal weight of a qualified signature, but each one is stored in a hash chain, so later changes are detectable, and it is bound to the signed resources and the signing account. Users can deposit an image of their handwritten signature.

Signature component

Enable

import cfgsignature "go.wdy.de/nago/application/signature/cfg"

signatures := std.Must(cfgsignature.Enable(cfg)) // cfgsignature.Management

cfgsignature.Management has the fields UseCases signature.UseCases and Pages uisignature.Pages with the path MyImageSignature. The system adds the handwriting font Caveat to the theme fonts.

Sign in the UI

uisignature.UserSignature shows a signature field for a resource. Before signing it shows a button, after signing the name or signature image of the signer:

uisignature.UserSignature(wnd, wnd.Subject().ID(), user.Resource{Name: "my.app.contract", ID: string(contractID)})

Use cases

Use caseDescription
SignUnqualifiedWithSubjectSigns resources as the authenticated subject.
SignUnqualifiedSigns resources with name and mail, without an account, e.g. on a shared device.
FindSignaturesByUserLists the signatures of a user; own signatures are always allowed.
FindSignaturesByResourceLists the signatures of a resource.
FindByIDLoads a signature.
LoadUserSettings, UpdateUserSettingsRead and change the own signature image.

Permissions

PermissionAllows to
nago.signature.find_by_userlist the signatures of other users
nago.signature.find_by_resourcelist the signatures of a resource
nago.signature.find_by_idview a signature

Signing itself only requires a valid subject.

UI

Every signed-in user finds the card Meine Unterschrift in the admin center group Elektronische Signaturen. It opens admin/my-signature/settings, where the user draws their signature image.

Related