File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -112,15 +112,16 @@ public function acs(): Template
112
112
$ redirect = $ idpMetadata ->getOptionalBoolean ('sfo:redirectToSelfserviceUrl ' , false );
113
113
$ selfserviceUrl = $ idpMetadata ->getOptionalString ('sfo:selfserviceUrl ' , '' );
114
114
115
- if ($ redirect &&
116
- !empty ($ selfserviceUrl ) &&
117
- $ e ->getStatus () == 'urn:oasis:names:tc:SAML:2.0:status:Responder ' &&
118
- $ e ->getSubStatus () == 'urn:oasis:names:tc:SAML:2.0:status:NoAuthnContext ' ) {
115
+ if (
116
+ $ redirect
117
+ && !empty ($ selfserviceUrl )
118
+ && $ e ->getStatus () == 'urn:oasis:names:tc:SAML:2.0:status:Responder '
119
+ && $ e ->getSubStatus () == 'urn:oasis:names:tc:SAML:2.0:status:NoAuthnContext '
120
+ ) {
119
121
Logger::debug ('SFO - token of demanded LOA is not available, redirecting to selfserviceUrl. ' );
120
122
121
123
$ httpUtils = new Utils \HTTP ();
122
124
return $ httpUtils ->redirectTrustedURL ($ selfserviceUrl );
123
-
124
125
} else {
125
126
Logger::debug ('SFO - status response received, showing error page. ' );
126
127
You can’t perform that action at this time.
0 commit comments