SAML-Toolkits / php-saml

Simple SAML toolkit for PHP
MIT License
1.21k stars 462 forks source link

Uncaught Error: Undefined constant "RobRichards\XMLSecLibs\OPENSSL_PKCS1_PADDING" #583

Closed naspy971 closed 2 months ago

naspy971 commented 2 months ago

Hi,

I just upgraded my Symfony 4.4 project to 5.4 along with using php 8.3.

I use onelogin/php-saml on version 3.5

When i try to login using a Saml/SSO mechanism, i get this critical error

_php.CRITICAL: Uncaught Error: Undefined constant "RobRichards\XMLSecLibs\OPENSSL_PKCS1_PADDING" {"exception":"[object] (Error(code: 0): Undefined constant \"RobRichards\\XMLSecLibs\\OPENSSL_PKCS1_PADDING\" at C:\\Apache24\\htdocs\\qms\\vendor\\robrichards\\xmlseclibs\\src\\XMLSecurityKey.php:212)"} []_

EDIT : openssl php extension was not correctly loaded via apache web server, i fixed it now it works.