SAML - Class "LightSaml\Meta\ParameterBag" not found

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
tom
User
Posts: 118

SAML - Class "LightSaml\Meta\ParameterBag" not found

Post by tom »

Hello,
in version 2023 i used saml to log into my project. After updating to 2024.8, this no longer works. Do I need to indicate an additional setting?

here my log:

[ log.DEBUG: Initialize PHPMaker2024\myproject\Saml2, config:  {"enabled":true,"adapter":"PHPMaker2024\\myproject\\Saml2","idpMetadata":"https://login.microsoftonline.com/***********************/federationmetadata/2007-06/federationmetadata.xml?appid=******************","entityId":"organisatie","certificate":"","privateKey":"","color":"success","callback":"https://projectsite/login/Saml","debug_mode":false,"debug_file":""} []
[2024-02-14T20:30:12.007416+00:00] log.INFO: PHPMaker2024\myproject\Saml2::authenticate() [] []
[2024-02-14T20:30:12.805687+00:00] log.DEBUG: Initialize PHPMaker2024\myproject\Saml2, config:  {"enabled":true,"adapter":"PHPMaker2024\\myproject\\Saml2","idpMetadata":"https://login.microsoftonline.com/*******************/federationmetadata/2007-06/federationmetadata.xml?appid=************************","entityId":"organisatie","certificate":"","privateKey":"","color":"success","callback":"https://mysite/login/Saml","debug_mode":false,"debug_file":""} []
[2024-02-14T20:30:12.806005+00:00] log.INFO: PHPMaker2024\myproject\Saml2::authenticate() [] []

According to the Azure error report, I can log in successfully, but in my application I am always referred back to https://mysite/login with the error message: Login with Saml failed

in debug mode:
/customers/xxx/httpd.www/organisatie/src/AdvancedSecurity.php(596): Class "LightSaml\Meta\ParameterBag" not found

thanks for the help
Tom


arbei
User
Posts: 9384

Post by arbei »

Aftering enabling login with SAML, make sure you generate all files again and make sure composer update is done successfully to download the "litesaml/lightsaml" package, then upload the files and the updated "vender" folder to your site, otherwise the classes from the package will not be found.


tom
User
Posts: 118

Post by tom »

regenerated everything and overwrote everything on the server, it works fine again. Thank you very much for the help!


Post Reply