Digital Signing Application
GitLab Repository | npmjs package | Unpkg CDN
Local development
# get the source
git clone git@gitlab.tugraz.at:dbp/esign/signature.git
cd signature
git submodule update --init
# install dependencies
yarn install
# constantly build dist/bundle.js and run a local web-server on port 8001
yarn run watch
# run tests
yarn test
Jump to http://localhost:8001 and you should get a Single Sign On login page.
To use the Nextcloud functionality you need a running Nextcloud server with the webapppassword Nextcloud app like this Nextcloud Development Environment.
Using this app as pre-built package
Not only you can use this app as pre-built package installed from npmjs via:
npm install @dbp-topics/signature
But you can also use this app directly from the Unpkg CDN for example like this: dbp-signature/index.html
Note that you will need a Keycloak server along with a client id for the domain you are running this html on.
Activities
dbp-qualified-signature-pdf-upload
You can use this activity to qualifiedly sign PDF documents like this: dbp-qualified-signature-pdf-upload/index.html
Note that you will need a Keycloak server along with a client id for the domain you are running this html on.
Attributes
-
lang
(optional, default:de
): set tode
oren
for German or English- example
lang="de"
- example
-
entry-point-url
(optional, default is the TU Graz entry point url): entry point url to access the api- example
entry-point-url="https://mw-dev.tugraz.at"
- example
-
auth
object: you need to set that object property for the auth token- example auth property:
{token: "THE_BEARER_TOKEN"}
- note: most often this should be an attribute that is not set directly, but subscribed at a provider
- example auth property:
-
show-nextcloud-file-picker
(optional): Needs to be set for the Nextcloud file picker to be shown- example
show-nextcloud-file-picker
- example
-
nextcloud-web-app-password-url
(optional): Nextcloud Auth Url to use with the Nextcloud file picker- example
nextcloud-web-app-password-url="http://localhost:8081/index.php/apps/webapppassword"
-
nextcloud-web-dav-url
also needs to be set for the Nextcloud file picker to be active
- example
-
nextcloud-web-dav-url
(optional): Nextcloud WebDav Url to use with the Nextcloud file picker- example
nextcloud-web-dav-url="http://localhost:8081/remote.php/dav/files"
-
nextcloud-web-app-password-url
also needs to be set for the Nextcloud file picker to be active
- example
-
nextcloud-file-url
(optional): Nextcloud File Url to use with the Nextcloud file picker- example
nextcloud-file-url="http://localhost:8081/apps/files/?dir="
- example
-
nextcloud-name
(optional): Name of the Nextcloud service- example
nextcloud-name="My Nextcloud"
- example
-
nextcloud-auth-info
(optional): Additional authentication information text that is shown in the Nextcloud file picker- example
nextcloud-auth-info="You need special permissions for this function"
- example
-
allow-annotating
(optional): Needs to be set to allow annotating the PDFs- example
allow-annotating
- example
Exposed CSS variables
-
--dbp-override-image-nextcloud
is used to override the cloud image on the connection screen of the Nextcloud file picker- example CSS:
html { --dbp-override-image-nextcloud: url(/icons/nextcloud.svg); }
- example CSS:
dbp-official-signature-pdf-upload
You can use this activity to officially sign PDF documents like this: dbp-official-signature-pdf-upload/index.html
Note that you will need a Keycloak server along with a client id for the domain you are running this html on.
Attributes
-
lang
(optional, default:de
): set tode
oren
for German or English- example
lang="de"
- example
-
entry-point-url
(optional, default is the TU Graz entry point url): entry point url to access the api- example
entry-point-url="https://mw-dev.tugraz.at"
- example
-
auth
object: you need to set that object property for the auth token- example auth property:
{token: "THE_BEARER_TOKEN"}
- note: most often this should be an attribute that is not set directly, but subscribed at a provider
- example auth property:
-
show-nextcloud-file-picker
(optional): Needs to be set for the Nextcloud file picker to be shown- example
show-nextcloud-file-picker
- example
-
nextcloud-web-app-password-url
(optional): Nextcloud Auth Url to use with the Nextcloud file picker- example
nextcloud-web-app-password-url="http://localhost:8081/index.php/apps/webapppassword"
-
nextcloud-web-dav-url
also needs to be set for the Nextcloud file picker to be active
- example
-
nextcloud-web-dav-url
(optional): Nextcloud WebDav Url to use with the Nextcloud file picker- example
nextcloud-web-dav-url="http://localhost:8081/remote.php/dav/files"
-
nextcloud-web-app-password-url
also needs to be set for the Nextcloud file picker to be active
- example
-
nextcloud-file-url
(optional): Nextcloud File Url to use with the Nextcloud file picker- example
nextcloud-file-url="http://localhost:8081/apps/files/?dir="
- example
-
nextcloud-name
(optional): Name of the Nextcloud service- example
nextcloud-name="My Nextcloud"
- example
-
nextcloud-auth-info
(optional): Additional authentication information text that is shown in the Nextcloud file picker- example
nextcloud-auth-info="You need special permissions for this function"
- example
-
allow-annotating
(optional): Needs to be set to allow annotating the PDFs- example
allow-annotating
- example
-
show-clipboard
(optional): Needs to be set to allow using the clipboard in the file picker dialog- example
show-clipboard
- example
Exposed CSS variables
-
--dbp-override-image-nextcloud
is used to override the cloud image on the connection screen of the Nextcloud file picker- example CSS:
html { --dbp-override-image-nextcloud: url(/icons/nextcloud.svg); }
- example CSS:
dbp-signature-verification
This activity shows an information page where to verify signed documents, you can use it like this: dbp-signature-verification/index.html
Attributes
-
lang
(optional, default:de
): set tode
oren
for German or English- example
lang="de"
- example