Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Relay ESign API
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
Show more breadcrumbs
digital blueprint
Relay API Gateway
Examples
Relay ESign API
Commits
f712f825
Unverified
Commit
f712f825
authored
3 years ago
by
Bekerle, Patrizio
Browse files
Options
Downloads
Patches
Plain Diff
Add settings and event subscriber
parent
7fea415c
No related branches found
No related tags found
No related merge requests found
Pipeline
#86139
passed
3 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.env
+6
-0
6 additions, 0 deletions
.env
config/packages/dbp_relay_esign.yaml
+35
-0
35 additions, 0 deletions
config/packages/dbp_relay_esign.yaml
src/EventSubscriber/PersonFromUserItemSubscriber.php
+28
-0
28 additions, 0 deletions
src/EventSubscriber/PersonFromUserItemSubscriber.php
with
69 additions
and
0 deletions
.env
+
6
−
0
View file @
f712f825
...
...
@@ -42,3 +42,9 @@ LDAP_PERSON_PROVIDER_LDAP_ATTRIBUTE_FAMILY_NAME=sn
LDAP_PERSON_PROVIDER_LDAP_ATTRIBUTE_EMAIL=mail
LDAP_PERSON_PROVIDER_LDAP_ATTRIBUTE_BIRTHDAY=DateOfBirth
###< dbp/relay-base-person-connector-ldap-bundle ###
# PDF-AS
PDF_AS_WEB_ADVANCED_URI=https://pdfas-dev.tugraz.at/pdf-as-web
PDF_AS_WEB_QUALIFIED_URI=https://sig-dev.tugraz.at/pdf-as-web
PDF_AS_WEB_QUALIFIED_STATIC_URI=https://sig-dev.tugraz.at/static
PDF_AS_VERIFICATION_ENABLE=false
This diff is collapsed.
Click to expand it.
config/packages/dbp_relay_esign.yaml
0 → 100644
+
35
−
0
View file @
f712f825
dbp_relay_esign
:
qualified_signature
:
server_url
:
'
%env(PDF_AS_WEB_QUALIFIED_URI)%'
callback_url
:
'
%env(PDF_AS_WEB_QUALIFIED_STATIC_URI)%/callback.html'
error_callback_url
:
'
%env(PDF_AS_WEB_QUALIFIED_STATIC_URI)%/error.html'
profiles
:
-
name
:
default
profile_id
:
SIGNATURBLOCK_TUGRAZ_QUAL
user_text_table
:
usercontent
user_text_row
:
1
user_text_attach_parent
:
main
user_text_attach_child
:
user
user_text_attach_row
:
3
role
:
ROLE_SCOPE_QUALIFIED-SIGNATURE
advanced_signature
:
server_url
:
'
%env(PDF_AS_WEB_ADVANCED_URI)%'
profiles
:
-
name
:
official
key_id
:
tugraz-official
profile_id
:
SIGNATURBLOCK_TUGRAZ_AMTSSIGNATUR
user_text_table
:
usercontent
user_text_row
:
1
user_text_attach_parent
:
main
user_text_attach_child
:
user
user_text_attach_row
:
2
role
:
ROLE_SCOPE_OFFICIAL-SIGNATURE
-
name
:
sap
key_id
:
tugraz-sap
profile_id
:
SIGNATURBLOCK_TUGRAZ_SAP
user_text_table
:
usercontent
user_text_row
:
1
user_text_attach_parent
:
main
user_text_attach_child
:
user
user_text_attach_row
:
2
role
:
ROLE_SCOPE_CORPORATE-SIGNATURE
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/EventSubscriber/PersonFromUserItemSubscriber.php
0 → 100644
+
28
−
0
View file @
f712f825
<?php
declare
(
strict_types
=
1
);
namespace
App\EventSubscriber
;
use
Dbp\Relay\BasePersonConnectorLdapBundle\Event\PersonFromUserItemPostEvent
;
use
Symfony\Component\EventDispatcher\EventSubscriberInterface
;
class
PersonFromUserItemSubscriber
implements
EventSubscriberInterface
{
public
static
function
getSubscribedEvents
():
array
{
return
[
PersonFromUserItemPostEvent
::
NAME
=>
'onPost'
,
];
}
public
function
onPost
(
PersonFromUserItemPostEvent
$event
)
{
$person
=
$event
->
getPerson
();
$roles
=
[
'ROLE_SCOPE_GREENLIGHT'
];
$person
->
setExtraData
(
'ldap-roles'
,
$roles
);
$event
->
setPerson
(
$person
);
}
}
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