Skip to content

Commit

Permalink
YDA-5380: add parameter for EUS email validation
Browse files Browse the repository at this point in the history
  • Loading branch information
stsnel committed Sep 1, 2023
1 parent d31515e commit 65a1444
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/administration/configuring-yoda.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ eus_smtp_from_address | External User Service email from address
eus_smtp_replyto_name | External User Service email reply-to name
eus_smtp_replyto_address | External User Service email reply-to address
eus_mail_template | External User Service mail template
eus_mail_validate_address | External User Service: validate email address before sending email. If this option is enabled, EUS will only send emails to users if their username is a valid email address. It is intended to be used on environments where admins want to use an iRODS user with a non-email username to invite external users. This parameter is not meant to be enabled if the test data set installed by the test playbook has been loaded. Default value: false.
external_users_domain_filter | Domains to filter, separated by | and wildcard character *

### OpenID Connect (OIDC) configuration
Expand Down
1 change: 1 addition & 0 deletions roles/yoda_external_user_service/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ eus_smtp_from_name: Yoda External User Service
eus_smtp_from_address: PLACEHOLDER
eus_smtp_replyto_name: PLACEHOLDER
eus_smtp_replyto_address: PLACEHOLDER
eus_mail_validate_address: false
eus_mail_template: uu

# OpenSSL configuration.
Expand Down
1 change: 1 addition & 0 deletions roles/yoda_external_user_service/templates/flask.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ SMTP_FROM_EMAIL = '{{ eus_smtp_from_address }}'
SMTP_REPLYTO_NAME = '{{ eus_smtp_replyto_name }}'
SMTP_REPLYTO_EMAIL = '{{ eus_smtp_replyto_address }}'
MAIL_ENABLED = 'true'
MAIL_ONLY_TO_VALID_ADDRESS = '{{ ["false", "true"][eus_mail_validate_address|int] }}'
MAIL_TEMPLATE = '{{ eus_mail_template }}'
MAIL_TEMPLATE_DIR = '/var/www/extuser/yoda-external-user-service/yoda_eus/templates/mail'

Expand Down

0 comments on commit 65a1444

Please sign in to comment.