File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -86,10 +86,16 @@ public function acs(Auth $auth)
8686 */
8787 public function sls (Auth $ auth )
8888 {
89- $ error = $ auth ->sls (config ('saml2.retrieveParametersFromServer ' ));
89+ $ errors = $ auth ->sls (config ('saml2.retrieveParametersFromServer ' ));
9090
91- if (!empty ($ error )) {
92- throw new \Exception ("Could not log out " );
91+ if (!empty ($ errors )) {
92+ logger ()->error ('saml2.error_detail ' , ['error ' => $ auth ->getLastErrorReason ()]);
93+ session ()->flash ('saml2.error_detail ' , [$ auth ->getLastErrorReason ()]);
94+
95+ logger ()->error ('saml2.error ' , $ errors );
96+ session ()->flash ('saml2.error ' , $ errors );
97+
98+ return redirect (config ('saml2.errorRoute ' ));
9399 }
94100
95101 return redirect (config ('saml2.logoutRoute ' )); //may be set a configurable default
You can’t perform that action at this time.
0 commit comments