Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Signature Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Electronic Signature Service
Signature Frontend
Commits
30a2cc2b
Unverified
Commit
30a2cc2b
authored
3 years ago
by
Bekerle, Patrizio
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation and example for dbp-official-signature-pdf-upload
parent
e8ed51b0
No related branches found
No related tags found
No related merge requests found
Pipeline
#37962
passed
3 years ago
Stage: test
Stage: deploy
Stage: e2e
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+34
-0
34 additions, 0 deletions
README.md
examples/dbp-official-signature-pdf-upload/index.html
+59
-0
59 additions, 0 deletions
examples/dbp-official-signature-pdf-upload/index.html
with
93 additions
and
0 deletions
README.md
+
34
−
0
View file @
30a2cc2b
...
...
@@ -74,3 +74,37 @@ Note that you will need a Keycloak server along with a client id for the domain
-
example
`nextcloud-name="My Nextcloud"`
-
`allow-annotating`
(optional): Needs to be set to allow annotating the PDFs
-
example
`allow-annotating`
### dbp-official-signature-pdf-upload
You can also use a single activity directly from the
[
Unpkg CDN
](
https://unpkg.com/browse/@dbp-topics/signature/
)
for example the
`dbp-official-signature-pdf-upload`
activity to qualifiedly sign PDF documents like this:
[
dbp-official-signature-pdf-upload/index.html
](
https://gitlab.tugraz.at/dbp/esign/signature/-/tree/master/examples/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 to
`de`
or
`en`
for German or English
-
example
`lang="de"`
-
`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"`
-
`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
-
`show-nextcloud-file-picker`
(optional): Needs to be set for the Nextcloud file picker to be shown
-
example
`show-nextcloud-file-picker`
-
`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
-
`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
-
`nextcloud-file-url`
(optional): Nextcloud File Url to use with the Nextcloud file picker
-
example
`nextcloud-file-url="http://localhost:8081/apps/files/?dir="`
-
`nextcloud-name`
(optional): Name of the Nextcloud service
-
example
`nextcloud-name="My Nextcloud"`
-
`allow-annotating`
(optional): Needs to be set to allow annotating the PDFs
-
example
`allow-annotating`
-
`show-clipboard`
(optional): Needs to be set to allow using the clipboard in the file picker dialog
-
example
`show-clipboard`
This diff is collapsed.
Click to expand it.
examples/dbp-official-signature-pdf-upload/index.html
0 → 100644
+
59
−
0
View file @
30a2cc2b
<!doctype html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<!-- Package bundles-->
<script
type=
"module"
src=
"https://unpkg.com/@dbp-toolkit/provider@0.2.2/dist/dbp-provider.js"
></script>
<script
type=
"module"
src=
"https://unpkg.com/@dbp-toolkit/auth@0.2.2/dist/dbp-auth.js"
></script>
<script
type=
"module"
src=
"https://unpkg.com/@dbp-topics/signature@1.0.3/dist/dbp-official-signature-pdf-upload.js"
></script>
<!-- Prevent Chrome/Edge from suggesting to translate the page -->
<meta
name=
"google"
content=
"notranslate"
>
<!-- Font related CSS -->
<style>
@import
"https://unpkg.com/@dbp-topics/signature@1.0.3/dist/local/@dbp-topics/signature/fonts/source-sans-pro/300.css"
;
@import
"https://unpkg.com/@dbp-topics/signature@1.0.3/dist/local/@dbp-topics/signature/fonts/source-sans-pro/400.css"
;
@import
"https://unpkg.com/@dbp-topics/signature@1.0.3/dist/local/@dbp-topics/signature/fonts/source-sans-pro/600.css"
;
body
{
font-family
:
'Source Sans Pro'
,
'Calibri'
,
'Arial'
,
'sans-serif'
;
font-weight
:
300
;
margin
:
0
;
}
/* TU-Graz style override */
html
{
--dbp-override-primary-bg-color
:
#245b78
;
--dbp-override-primary-button-border
:
solid
1px
#245b78
;
--dbp-override-info-bg-color
:
#245b78
;
--dbp-override-danger-bg-color
:
#e4154b
;
--dbp-override-warning-bg-color
:
#ffe183
;
--dbp-override-warning-text-color
:
black
;
--dbp-override-success-bg-color
:
#259207
;
}
</style>
<!-- Preloading/Preconnecting -->
<link
rel=
"preconnect"
href=
"https://mw-dev.tugraz.at"
>
<link
rel=
"preconnect"
href=
"https://auth-dev.tugraz.at/auth"
>
</head>
<body>
<dbp-provider
auth
requested-login-status
analytics-event
lang=
"de"
entry-point-url=
"https://mw-dev.tugraz.at"
>
<dbp-auth-keycloak
client-id=
"auth-dev-mw-frontend-local"
idp-hint=
""
load-person=
""
realm=
"tugraz"
scope=
""
silent-check-sso-redirect-uri=
"./silent-check-sso.html"
subscribe=
"requested-login-status,entry-point-url,lang"
try-login=
""
url=
"https://auth-dev.tugraz.at/auth"
></dbp-auth-keycloak>
<dbp-login-button
subscribe=
"auth,lang"
></dbp-login-button>
<dbp-official-signature-pdf-upload
subscribe=
"lang,entry-point-url,auth"
show-clipboard
></dbp-official-signature-pdf-upload>
</dbp-provider>
</body>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment