Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit c7811e8

Browse files
author
Billy Clark
committed
module-mfa added support for the "learn more" url.
1 parent 17fa786 commit c7811e8

File tree

5 files changed

+4
-2
lines changed

5 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ If configured, an alert will be shown to the user filled with the content of tha
138138
5. Click **hub-discovery**
139139
6. Click **idp4**
140140
7. Login as an "unprotected" user: `username=`**nag_for_mfa** `password=`**a**
141+
8. The "learn more" link should be visible if configured via env var `MFA_LEARN_MORE_URL`.
141142

142143
#### Force MFA setup
143144
1. Goto [http://ssp-hub.local](http://ssp-hub.local)
@@ -147,6 +148,7 @@ If configured, an alert will be shown to the user filled with the content of tha
147148
5. Click **hub-discovery**
148149
6. Click **idp4**
149150
7. Login as an "unsafe" user: `username=`**must_set_up_mfa** `password=`**a**
151+
8. The "learn more" link should be visible if configured via env var `MFA_LEARN_MORE_URL`.
150152

151153
#### Backup code
152154
1. Goto [http://ssp-hub.local](http://ssp-hub.local)

development/idp4/saml20-idp-hosted.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
'idBrokerBaseUri' => Env::get('ID_BROKER_BASE_URI'),
1616
'idBrokerTrustedIpRanges' => Env::get('ID_BROKER_TRUSTED_IP_RANGES'),
1717
'mfaSetupUrl' => Env::get('MFA_SETUP_URL'),
18+
'mfaLearnMoreUrl' => Env::get('MFA_LEARN_MORE_URL'),
1819
'loggerClass' => Psr3SamlLogger::class,
1920
],
2021
]

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ services:
112112
IDP_DISPLAY_NAME: "Idp 4"
113113
IDP_DOMAIN_NAME: "idp-4.local"
114114
MFA_SETUP_URL: "https://example.org/mfa-setup"
115+
MFA_LEARN_MORE_URL: "//example.org/learn-more"
115116
MYSQL_HOST: "silAuthDb"
116117
MYSQL_DATABASE: "silauth"
117118
MYSQL_USER: "user"

themes/material/mfa/must-set-up-mfa.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646

4747
<?php
4848
$url = $this->data['learnMoreUrl'] ?? null;
49-
$url = "//example.org"; //TODO: remove when available
5049
if (! empty($url)) {
5150
?>
5251
<a href="<?= htmlentities($url) ?>" target="_blank"

themes/material/mfa/nag-for-mfa.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050

5151
<?php
5252
$url = $this->data['learnMoreUrl'] ?? null;
53-
$url = "//example.org"; //TODO: remove when available
5453
if (! empty($url)) {
5554
?>
5655
<a href="<?= htmlentities($url) ?>" target="_blank"

0 commit comments

Comments
 (0)