You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I'm facing a problem with this package if using Laravel Octane & Swoole.
During redirect to IDP URL,
swoole Exit()
will trigger because of the class that calling exit() method. To be exact, I have noticed that redirect() method in Utils.php class calling exit() method.
Below is the sample screenshot of the error response.
Kindly, need your guide/help to encounter this problem, or is there any solution that I can refer to.
Thank you.
The text was updated successfully, but these errors were encountered:
You can set saml2_controller in your config to use your own instead of the bundled one.
The thing about swoole is that you don't get super globals set, so we set and unset them for onelogin/php-saml as in the above gist.
For your specific question, php-saml wants to set redirect headers and then exit - neither is going to work - so we directly use the Saml2Auth->login() method setting $stay to true. $stay is passed to Saml2Auth->redirectTo, then to OneLogin_Saml2_Utils::redirect which instead just returns the redirect url rather than setting headers and exiting.
Hi,
Laravel = 8.*
PHP = 8
Laravel Octane
Swoole
Currently, I'm facing a problem with this package if using Laravel Octane & Swoole.
During redirect to IDP URL,
will trigger because of the class that calling
exit()
method. To be exact, I have noticed thatredirect()
method in Utils.php class calling exit() method.Below is the sample screenshot of the error response.
Kindly, need your guide/help to encounter this problem, or is there any solution that I can refer to.
Thank you.
The text was updated successfully, but these errors were encountered: