dev-master
9999999-dev https://github.com/rafatzbr/hanatap.gitA HANATrial Cloud Platform Authentication proxy written in PHP.
MIT
The Requires
- php >=5.2
authentication cloud request odata hana hanatrial hcp hanaxs xsodata
Wallogit.com
2017 © Pedro Peláez
A HANATrial Cloud Platform Authentication proxy written in PHP.
A proxy written in PHP to authenticate against HANATrial instances in hanatrial.ondemand.com, (*1)
Inspired by the excellent https://github.com/gregorwolf/hanatrial-auth-proxy, (*2)
// Include Composer's Autoload
require_once 'vendor/autoload.php';
// Or you can manually add the files
//require_once '../library/Request.php';
//require_once '../library/Proxy.php';
//require_once '../library/Client.php';
// Set the namespace
use HANATAP\Client;
// Initialize the object
$proxy = new Client(array(
'username' => '', //Your HCP user. Ex, p000000000
'accountname' => '', // Your HCP account name. Ex. p000000000trial
'password' => '', // Your HCP password
'host' => '', // The HCP host where your application is installed. Ex. s9hanaxs.hanatrial.ondemand.com
'namespace' => '', // Namespace of the application. Ex. app.package
'proxy' => '', // OPTIONAL: Proxy of your network. Ex. proxyhost:port
// Extra options
'params' => '$metadata'
));
// Set the header to display the content correctly
header('Content-Type: '.$proxy->getContentType());
// Show the content
echo $proxy->getContents();
HANATAP is under the MIT License, (*3)
A HANATrial Cloud Platform Authentication proxy written in PHP.
MIT
authentication cloud request odata hana hanatrial hcp hanaxs xsodata