-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1104 from open-dynaMIX/update_dms
chore: update DMS and also enable error mailing
- Loading branch information
Showing
3 changed files
with
15 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,14 @@ ALLOWED_HOSTS=yourdomain.tld,www.yourdomain.tdl | |
DATABASE_PASSWORD=alsoverysecure | ||
OIDC_USERINFO_ENDPOINT=https://yourdomain.tld/auth/realms/mysagw/protocol/openid-connect/userinfo | ||
ADMINS=Test Example <[email protected]>,Test2 <[email protected]> | ||
|
||
# Mailing | ||
EMAIL_HOST=mail | ||
EMAIL_PORT=25 | ||
[email protected] | ||
EMAIL_HOST_PASSWORD=verysecure | ||
EMAIL_USE_TLS=true | ||
MAILING_FROM_NAME=mySAGW | ||
[email protected] | ||
MAILING_SENDER="mySAGW <[email protected]>" | ||
ENABLE_ADMIN_EMAIL_LOGGING=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,192 +1,7 @@ | ||
# Manual steps for next deployment | ||
|
||
|
||
## Keycloak profile setup | ||
## Enable email logging for DMS | ||
|
||
### Realm settings -> User profile | ||
|
||
Add following JSON into the JSON editor: | ||
|
||
```json | ||
{ | ||
"attributes": [ | ||
{ | ||
"name": "username", | ||
"displayName": "${username}", | ||
"validations": { | ||
"length": { | ||
"min": 3, | ||
"max": 255 | ||
}, | ||
"username-prohibited-characters": {}, | ||
"up-username-not-idn-homograph": {} | ||
}, | ||
"permissions": { | ||
"view": [ | ||
"admin", | ||
"user" | ||
], | ||
"edit": [ | ||
"admin", | ||
"user" | ||
] | ||
}, | ||
"multivalued": false | ||
}, | ||
{ | ||
"name": "email", | ||
"displayName": "${email}", | ||
"validations": { | ||
"email": {}, | ||
"length": { | ||
"max": 255 | ||
} | ||
}, | ||
"required": { | ||
"roles": [ | ||
"user" | ||
] | ||
}, | ||
"permissions": { | ||
"view": [ | ||
"admin", | ||
"user" | ||
], | ||
"edit": [ | ||
"admin", | ||
"user" | ||
] | ||
}, | ||
"multivalued": false | ||
}, | ||
{ | ||
"name": "salutation", | ||
"displayName": "Salutation", | ||
"validations": { | ||
"options": { | ||
"options": [ | ||
"Mrs.", | ||
"Mr.", | ||
"neutral" | ||
] | ||
} | ||
}, | ||
"annotations": { | ||
"inputType": "select" | ||
}, | ||
"required": { | ||
"roles": [ | ||
"admin", | ||
"user" | ||
] | ||
}, | ||
"permissions": { | ||
"view": [ | ||
"admin", | ||
"user" | ||
], | ||
"edit": [ | ||
"admin", | ||
"user" | ||
] | ||
}, | ||
"multivalued": false | ||
}, | ||
{ | ||
"name": "firstName", | ||
"displayName": "${firstName}", | ||
"validations": { | ||
"length": { | ||
"max": 255 | ||
}, | ||
"person-name-prohibited-characters": {} | ||
}, | ||
"annotations": {}, | ||
"required": { | ||
"roles": [ | ||
"admin", | ||
"user" | ||
] | ||
}, | ||
"permissions": { | ||
"view": [ | ||
"admin", | ||
"user" | ||
], | ||
"edit": [ | ||
"admin", | ||
"user" | ||
] | ||
}, | ||
"multivalued": false | ||
}, | ||
{ | ||
"name": "title", | ||
"displayName": "Title", | ||
"validations": { | ||
"options": { | ||
"options": [ | ||
"Dr.", | ||
"Prof.", | ||
"Prof. Dr.", | ||
"PD Dr." | ||
] | ||
} | ||
}, | ||
"annotations": { | ||
"inputType": "select" | ||
}, | ||
"permissions": { | ||
"view": [ | ||
"admin", | ||
"user" | ||
], | ||
"edit": [ | ||
"admin", | ||
"user" | ||
] | ||
}, | ||
"multivalued": false | ||
}, | ||
{ | ||
"name": "lastName", | ||
"displayName": "${lastName}", | ||
"validations": { | ||
"length": { | ||
"max": 255 | ||
}, | ||
"person-name-prohibited-characters": {} | ||
}, | ||
"annotations": {}, | ||
"required": { | ||
"roles": [ | ||
"admin", | ||
"user" | ||
] | ||
}, | ||
"permissions": { | ||
"view": [ | ||
"admin", | ||
"user" | ||
], | ||
"edit": [ | ||
"admin", | ||
"user" | ||
] | ||
}, | ||
"multivalued": false | ||
} | ||
], | ||
"groups": [ | ||
{ | ||
"name": "user-metadata", | ||
"displayHeader": "User metadata", | ||
"displayDescription": "Attributes, which refer to user metadata" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
### Clients -> mysagw -> Client scopes -> mysagw-dedicated | ||
|
||
Add mappers for `salutation` and `title`. | ||
Configure email settings in the DMS env file according to the new settings added to | ||
`.envs/.production.example/.dms`. |