Create Web Portal Shares¶
Web Portal shares can be created in several ways, either manually through the user interface, via SEAL OP-CLI (which is used by the PLOSSYS 4 Web Portal printer) or by directly accessing the Operator Rest-API.
A share has the following settings which can be specified during its creation or by editing. For detailed instructions refer to the following sections.
-
access notifications
(optional): If enabled and the email service is configured, notification emails will be sent when access to shares is granted or used.Hint - new notification emails
If you change the expiration date of an expired share with access notifications enabled, new notification emails will be sent to its recipients. If you change the expiration date of a not yet expired share, no emails will be sent.
-
description
(optional): Additional description of the share set by its creator or its owner. -
link access
(optional): If public access to shares and this option are enabled, users not listed in the OIDC can access the share via the provided link. -
owner
(optional): User on which's behalf the share has been created via SEAL OP-CLI or Rest-API. Not usable via user interface. -
share name
: Title or subject of the share used in the Web Portal panel and notifications. -
end date
(optional): Expiration date of the share. Default is the current date. The share will not be deleted instantly afterwards but can get restored by its owner via the user interface. -
users
(optional): Email addresses of users that should get access to the share. These users have to be registered in the OIDC used with SEAL Operator.
Manually¶
To create a Web Portal Share manually execute the following steps:
-
Log on to the user interface and open a Web Portal Panel.
-
In the
Owned Shares
section click theAdd Share
button. -
Enter a name for the share and adjust the expiration date. Default for the expiration date is the current date.
-
Enter the email address of the user who should get access to the share. Confirm it with the
+
button. Repeat for each additional user. -
If you disable the
Access notification
checkbox, neither the assignee will get a notification email about the new share nor you if the share got accessed for the first time.Hint - how to change the notification emails
The templates for the email notifications can be changed in the configuration settings. For detailed instructions, refer to Setup Email Notifications.
-
Click
Create
to finish.
Hint - add users later
At the current state there won't be any further emails sent, when files get added. Therefore, when creating an empty share don't add users yet. First add all the files to share, then add the other users. Otherwise they will get a notification email when the share is still empty and miss the moment when it isn't anymore.
Via a PLOSSYS 4 Printer¶
In PLOSSYS 4, you can output documents directly to the Web Portal in SEAL Operator. For this, you configure a printer in PLOSSYS 4 via which a Web Portal share will be created containing the output documents. You also have to make changes at the Web Portal Connector.
The following requirements have to be fulfilled:
-
In SEAL Operator, Web Portal is configured, refer to Connect the Web Portal.
-
The
seal.webportal
printer template containingseal.webportal.pl
as of version 1.20 is available for installing the printer via easyPRIMA or via PLOSSYS 4 directly.
Configure the Connection to the Web Portal¶
The following settings are configured in the templates in easyPRIMA before distributing the Web Portal printer. When installing the printer in PLOSSYS 4 directly, you have to change the configuration file of the Web Portal printer after the installation.
-
Edit the
seal.webportal.cfg
file in theserver/edc/templates/seal.operator_webportal.pdf_vr_pdf
directory when using easyPRIMA or in theserver/plotserv/plotter
directory when the printer has been installed in PLOSSYS 4 directly. -
Specify the following keys in the
[OPERATOR]
section:-
OPCLI_AUTH_CLIENT_SECRET
(mandatory): secret of command line client -
USER
(mandatory): User name of the technical user who has permission to access the SEAL Operator server's REST API and create Web Portal shares -
PASS
(mandatory): Password of the technical user; can be clear text or encrypted viasealencrypt
-
CONFIRM_ACCESS_MAIL
(optional): Should a notification mail be sent when the share got accessed? Default isY
. -
PORTAL_TTL
(optional): Lifetime of the Web Portal share; default are 10 days (10d
).
-
Example - operator section of template seal.operator_webportal.pdf_vr_pdf
[OPERATOR]
#OPCLI_AUTH_CLIENT_SECRET = <secret of command line client>
#USER = <name of technical Operator user>
#PASS = <password of technical Operator user>
CONFIRM_ACCESS_MAIL = Y
PORTAL_TTL = 10d
Create and Configure the Web Portal Printer¶
-
Create a Web Portal printer using the
seal.webportal
printer template. -
With the Web Portal printer, set the
QUEUE
parameter toOPERATOR/<default_owner>/<operator_server_url>
where-
<default_owner>
is the user name of the default owner of the Web Portal share. The owner is the user on who's behalf the share will be created. -
<operator_server_url>
is the URL of the SEAL Operator server's REST API. Normally, this ishttps://<operator_server_name>:3008
.
Example -
QUEUE
parameterIf the default creator is John Doe with user name
john.doe
the queue parameter would beOPERATOR/john.doe/https://opsrv:3008
If the default creator is John Doe with user nametest
the queue parameter would beOPERATOR/test/https://opsrv:3008
-
Install SEAL OP-CLI¶
The PLOSSYS 4 Web Portal printer uses the SEAL Operator command line tool, SEAL OP-CLI, for creating the Web Portal shares. Therefore, you have to install SEAL OP-CLI version 5.13.0 or higher on the PLOSSYS 4 server. For how to do this, refer to the SEAL OP-CLI documentation.
Configure the Connector¶
Set the required permissions for the OIDC clients seal-print-client
, seal-opcli
, and seal-webportal
:
Hint - generate a template
You can use SEAL Operator CLI to generate a template for ALLOWED_OIDC_CLIENTS
:
operator config template ALLOWED_OIDC_CLIENTS --file template.json
operator config set ALLOWED_OIDC_CLIENTS --file changed_template.json
-
Open a Command Prompt or PowerShell.
-
Export the complete configuration of SEAL Operator from Consul to a YAML file with the following command. So you're making sure the current configuration settings are being used.
operator config export <filename>.yml --insecure
-
Edit the exported file
<filename>.yml
. -
In the
env
section, specify the keyALLOWED_OIDC_CLIENTS
forany
service:{ "seal-print-client": { "roles": { "seal-print-client-user": {}, "techuser": { "areas": { "documents": { "set-impersonate": { "views": ["ALL"], "permissions": ["impersonate"] } }, "tasks": { "set-impersonate": { "views": ["ALL"], "permissions": ["impersonate"] } }, "panels": { "set-impersonate": { "views": ["ALL"], "permissions": ["impersonate"] } } } } } }, "seal-opcli": { "roles": { "seal-print-client-user": {}, "techuser": { "areas": { "documents": { "set-impersonate": { "views": ["ALL"], "permissions": ["impersonate"] } }, "tasks": { "set-impersonate": { "views": ["ALL"], "permissions": ["impersonate"] } }, "panels": { "set-impersonate": { "views": ["ALL"], "permissions": ["impersonate"] } }, "shares": { "set-impersonate": { "views": ["ALL"], "permissions": ["impersonate"] } } } } } }, "seal-webportal": { "roles": { "service-account": {} } } }
-
Save the
<filename>.yml
file and re-import it to Consul.operator config import <filename>.yml --insecure
Literature
For the description of possible keys and values for ALLOWED_OIDC_CLIENTS
, refer to Available Keys and Values.
Specify PLOSSYS 4 Job Parameters¶
The following job parameters affect the creation of the Web Portal share via the Web Portal printer:
-
PLS_PLOTID
(mandatory): Name of the share if it's a single print job. -
PLS_RECEIVER
(mandatory): E-mail addresses of users the Web Portal share will be shared with; the addresses are separated by blanks. -
PLS_SENDER
(optional): The name of the user on who's behalf the Web Portal share will be created; default is the owner specified in theQUEUE
parameter. -
PLS_SET_NAME
(optional): Name of the share if the print job is a set collation. -
PLS_SUBJECT
(optional): The description for the Web Portal share.
Expiration date and access notification of a share depend on Web Portal configuration values and can't be set individually for each job.