Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 1.07 KB

README.md

File metadata and controls

18 lines (11 loc) · 1.07 KB

About

Example code for performing WS-Security UserNameToken authentication for OLSA Web Services, utilising OpenSSL and PHP SoapClient

Minimum PHP version that supports TLS 1.2 is PHP 5.5.19 with OpenSSL 1.0.1

For an alternate version that uses cURL see https://github.com/martinholden-skillsoft/olsaphpcurl

Config

In the config.php you need to enter the OLSA endpoint url, customerid and shared secret

In PHP.INI you need to ensure the SOAP client and OPENSSL extensions are enabled.

SOAP Client Code Details

The WSSUserNameTokenSoapClient.class.php contains an implementation of a PHP SOAP client that supports WS-Security UserNameToken Password Digest.

Testing

Run the test.php on the command line, it will attempt to call the SO_GetMultiActionSignOnExtended function with username olsatest and display the returned URL to use to seamlessly log the user in.