We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f33dc7 commit c81b0c8Copy full SHA for c81b0c8
1 file changed
src/Controller/SFO.php
@@ -15,6 +15,7 @@
15
use SimpleSAML\Metadata\MetaDataStorageHandler;
16
use SimpleSAML\Module;
17
use SimpleSAML\Module\saml\Message;
18
+use SimpleSAML\Utils;
19
use SimpleSAML\XHTML\Template;
20
21
use function sprintf;
@@ -117,8 +118,8 @@ public function acs(): Template
117
118
$e->getSubStatus() == 'urn:oasis:names:tc:SAML:2.0:status:NoAuthnContext') {
119
Logger::debug('SFO - token of demanded LOA is not available, redirecting to selfserviceUrl.');
120
- header('Location: '. $selfserviceUrl);
121
- exit();
+ $httpUtils = new Utils\HTTP();
122
+ return $httpUtils->redirectTrustedURL($selfserviceUrl);
123
124
} else {
125
Logger::debug('SFO - status response received, showing error page.');
0 commit comments