Skip to content

lushonline/olsaphpnocurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages