Skip to content

Commit b81267c

Browse files
authored
Merge pull request #718 from OpenConext/release/672
Release/672
2 parents 96560ad + 38d57aa commit b81267c

20 files changed

Lines changed: 359 additions & 0 deletions

‎roles/stepupmiddleware/tasks/docker.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
mode: "0755"
2626
with_items:
2727
- "{{ current_release_config_dir_name }}"
28+
- "{{ current_release_config_dir_name }}/email_templates"
2829

2930
- name: Place parameters.yml
3031
ansible.builtin.template:
@@ -36,6 +37,23 @@
3637
notify:
3738
- restart {{ appname }}
3839

40+
- name: Copy email templates to the release config directory
41+
copy:
42+
src: templates/email_templates/
43+
dest: "{{ current_release_config_dir_name }}/email_templates"
44+
mode: "0640"
45+
owner: "{{ appname }}"
46+
group: "{{ appname }}"
47+
notify:
48+
- restart {{ appname }}
49+
50+
- name: Add the MariaDB docker network to the list of networks when MariaDB runs in Docker
51+
ansible.builtin.set_fact:
52+
middelware_docker_networks:
53+
- name: loadbalancer
54+
- name: openconext_mariadb
55+
when: mariadb_in_docker | default(false) | bool
56+
3957
- name: Create the container
4058
community.docker.docker_container:
4159
name: "{{ appname }}"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<p>Dear {{ commonName }},</p>
2+
3+
<p>Thank you for registering your token. Please visit this link to verify your email address:</p>
4+
5+
<p><a href='{{ verificationUrl }}'>{{ verificationUrl }}</a></p>
6+
7+
<p>If you can not click on the URL, please copy the link and paste it in the address bar of your browser.</p>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<p>Dear {{ commonName }},</p>
2+
3+
<p>Thank you for registering a recovery method. You can use this method if you want to reactivate a token that you have lost.</p>
4+
5+
<p>Always make sure you have at least one recovery method available.</p>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<p>Dear {{ commonName }},</p>
2+
3+
<p>
4+
{% if isRevokedByRa %}
5+
Your recovery method was removed by an administrator.
6+
{% else %}
7+
Your recovery method has been removed. Please contact your institution's helpdesk immediately if you did not do this yourself, as this could mean that your account has been compromised.
8+
{% endif %}
9+
</p>
10+
11+
<p>You can no longer use this recovery method to activate a token.</p>
12+
13+
<p>Always make sure you have at least one recovery method available.</p>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<p>Dear {{ commonName }},</p>
2+
3+
<p>Thank you for registering your token. Please visit one of the locations below within 14 days to get your token activated. After {{ expirationDate | format_date('full', locale=locale) }} your activation code is no longer valid.</p>
4+
5+
<p>Please bring the following:</p>
6+
<ul>
7+
<li>Your token</li>
8+
<li>A valid proof of identity (passport, drivers license or national ID-card)</li>
9+
<li>The activation code from this e-mail</li>
10+
</ul>
11+
12+
<p style='font-size: 150%; text-align: center'>Activation code: <code>{{ registrationCode }}</code></p>
13+
14+
<p>Location(s) to activate your token:</p>
15+
{% if raLocations is empty %}
16+
<p>No locations known.</p>
17+
{% else %}
18+
<ul>
19+
{% for ra in raLocations %}
20+
<li><address>
21+
<strong>{{ ra.name }}</strong><br />
22+
{{ ra.location }}<br />
23+
{{ ra.contactInformation }}
24+
</address></li>
25+
{% endfor %}
26+
</ul>
27+
{% endif %}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<p>Dear {{ commonName }},</p>
2+
3+
<p>Thank you for registering your token. Please visit one of the locations below within 14 days to get your token activated. After {{ expirationDate | format_date('full', locale=locale) }} your activation code is no longer valid.</p>
4+
5+
<p>Please bring the following:</p>
6+
<ul>
7+
<li>Your token</li>
8+
<li>A valid proof of identity (passport, drivers license or national ID-card)</li>
9+
<li>The activation code from this e-mail</li>
10+
</ul>
11+
12+
<p style='font-size: 150%; text-align: center'>Activation code: <code>{{ registrationCode }}</code></p>
13+
14+
<p>Location(s) to activate your token:</p>
15+
{% if ras is empty %}
16+
<p>No RAs are known.</p>
17+
{% else %}
18+
<ul>
19+
{% for ra in ras %}
20+
<li><address>
21+
<strong>{{ ra.commonName }}</strong><br />
22+
{{ ra.location }}<br />
23+
{{ ra.contactInformation }}
24+
</address></li>
25+
{% endfor %}
26+
</ul>
27+
{% endif %}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<p>Dear {{ commonName }},</p>
2+
3+
<p>
4+
{% if isRevokedByRa %}
5+
The registration of your {{ tokenType }} with ID {{ tokenIdentifier }} was deleted by an administrator.
6+
{% else %}
7+
You have deleted the registration of your {{ tokenType }} token with ID {{ tokenIdentifier }}. If you did not delete your token you must immediately contact the support desk of your institution, as this may indicate that your account has been compromised.
8+
{% endif %}
9+
</p>
10+
11+
<p>You can no longer use this token to access services that require two-step authentication.</p>
12+
13+
<p>Do you want to replace your token? Please visit <a href='{{ selfServiceUrl }}'>{{ selfServiceUrl }}</a> and register a new token.</p>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<p>Dear {{ commonName }},</p>
2+
3+
<p>You have registered, but not yet activated, a token. Please visit one of the locations below to get your token activated. After {{ expirationDate | format_date('full', locale=locale) }} your activation code is no longer valid.</p>
4+
5+
<p>Please bring the following:</p>
6+
<ul>
7+
<li>Your token</li>
8+
<li>A valid proof of identity (passport, drivers license or national ID-card)</li>
9+
<li>The activation code from this e-mail</li>
10+
</ul>
11+
12+
<p style='font-size: 150%; text-align: center'>Activation code: <code>{{ registrationCode }}</code></p>
13+
14+
<p>Location(s) to activate your token:</p>
15+
{% if raLocations is empty %}
16+
<p>No locations known.</p>
17+
{% else %}
18+
<ul>
19+
{% for ra in raLocations %}
20+
<li><address>
21+
<strong>{{ ra.name }}</strong><br />
22+
{{ ra.location }}<br />
23+
{{ ra.contactInformation }}
24+
</address></li>
25+
{% endfor %}
26+
</ul>
27+
{% endif %}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<p>Dear {{ commonName }},</p>
2+
3+
<p>You have registered, but not yet activated, a token. Please visit one of the locations below to get your token activated. After {{ expirationDate | format_date('full', locale=locale) }} your activation code is no longer valid.</p>
4+
5+
<p>Please bring the following:</p>
6+
<ul>
7+
<li>Your token</li>
8+
<li>A valid proof of identity (passport, drivers license or national ID-card).</li>
9+
<li>The activation code from this e-mail</li>
10+
</ul>
11+
12+
<p style='font-size: 150%; text-align: center'>Activation code: <code>{{ registrationCode }}</code></p>
13+
14+
<p>Location(s) to activate your token:</p>
15+
{% if ras is empty %}
16+
<p>No RAs are known.</p>
17+
{% else %}
18+
<ul>
19+
{% for ra in ras %}
20+
<li><address>
21+
<strong>{{ ra.commonName }}</strong><br />
22+
{{ ra.location }}<br />
23+
{{ ra.contactInformation }}
24+
</address></li>
25+
{% endfor %}
26+
</ul>
27+
{% endif %}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<p>Dear {{ commonName }},</p>
2+
3+
<p>Thank you for registering your token. Your token is ready to use. You can use this token for services connected to SURFconext that require two-step authentication. This e-mail contains more info on how to use your token.</p>
4+
5+
<p><strong>Handle your token with care</strong></p>
6+
<ul>
7+
<li>Your token is private, do not share your token with others</li>
8+
<li>Never leave your token unattended</li>
9+
<li>Lock your phone, e.g. with a code or fingerprint</li>
10+
</ul>
11+
12+
<p><strong>Token lost?</strong><br />
13+
Did you lose your token? Please visit <a href='{{ selfServiceUrl }}'>{{ selfServiceUrl }}</a> and remove your token registration. This way no one can take advantage of your token.</p>
14+
15+
<p><strong>Replace token</strong><br />
16+
Do you want to replace your token? Please visit <a href='{{ selfServiceUrl }}'>{{ selfServiceUrl }}</a>, remove your activated token and start the token registration process again.</p>
17+
18+
<p><strong>Test token</strong><br />
19+
Do you want to test your token? Please visit <a href='{{ selfServiceUrl }}'>{{ selfServiceUrl }}</a> and select the "Test" button next to the token you want to test.</p>

0 commit comments

Comments
 (0)