Skip to content

Commit

Permalink
# Version 4.5.2
Browse files Browse the repository at this point in the history
Released on **April 3, 2018**
## Bug Fixed
	  -  SOTT was not generating properly in PHP SDK demo
  • Loading branch information
SUDHANSHU authored and SUDHANSHU committed Apr 3, 2018
1 parent 3d6f084 commit bec589b
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# LoginRadius PHP SDK Change Log

# Version 4.5.2
Released on **April 3, 2018**
## Bug Fixed
- SOTT was not generating properly in PHP SDK demo

# Version 4.5.1
Released on **January 24, 2018**
Expand Down
4 changes: 2 additions & 2 deletions demo/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
<?php

function lr_raas_get_sott() {
$sott = new \LoginRadiusSDK\Utility\SOTT(API_KEY, API_SECRET);
return urlencode($sott->encrypt('10', true));
$sott = new \LoginRadiusSDK\Utility\SOTT(API_KEY, API_SECRET, array('output_format' => 'json'));
return urlencode($sott->encrypt('10', false)->Sott);
}
2 changes: 1 addition & 1 deletion demo/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use \LoginRadiusSDK\LoginRadiusException;
use \LoginRadiusSDK\Clients\IHttpClient;
use \LoginRadiusSDK\Clients\DefaultHttpClient;
use LoginRadiusSDK\CustomerRegistration\Authentication\UserAPI;
use \LoginRadiusSDK\CustomerRegistration\Authentication\UserAPI;
use LoginRadiusSDK\CustomerRegistration\Social\SocialLoginAPI;

$message = '';
Expand Down
9 changes: 8 additions & 1 deletion src/LoginRadiusSDK/Advance/CloudAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ public function getConfigurationList()
{
$options = array('authentication' => 'key');
$url = LR_CLOUD_ENDPOINT . "/ciam/appInfo";
return Functions::apiClient($url, '', $options);
return Functions::apiClient($url, '', $options);
}

private function apiClientHandler($path, $query_array = array(), $customize_options = array()) {
$options = array_merge(array('authentication' => 'secret'), $customize_options);
$url = LR_CLD_STORAGE_ENDPOINT;
return Functions::apiClient($url.$path, $query_array, $options);
}

}
3 changes: 1 addition & 2 deletions src/LoginRadiusSDK/Clients/DefaultHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @category : Clients
* @package : DefaultHttpClient
* @author : LoginRadius Team
* @version : 4.5.1
* @version : 4.5.2
* @license : https://opensource.org/licenses/MIT
*/

Expand Down Expand Up @@ -54,7 +54,6 @@ public function request($path, $query_array = array(), $options = array()) {
}
$request_url .= Functions::queryBuild($query_array);
}

if (in_array('curl', get_loaded_extensions())) {
$response = $this->curlApiMethod($request_url, $options);
}
Expand Down
2 changes: 1 addition & 1 deletion src/LoginRadiusSDK/Clients/IHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @category : Clients
* @package : IHttpClient
* @author : LoginRadius Team
* @version : 4.5.1
* @version : 4.5.2
* @license : https://opensource.org/licenses/MIT
*/

Expand Down
2 changes: 1 addition & 1 deletion src/LoginRadiusSDK/LoginRadiusException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @category : LoginRadiusSDK
* @package : LoginRadiusException
* @author : LoginRadius Team
* @version : 4.5.1
* @version : 4.5.2
* @license : https://opensource.org/licenses/MIT
*/
namespace LoginRadiusSDK;
Expand Down
4 changes: 2 additions & 2 deletions src/LoginRadiusSDK/Utility/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @category : Utility
* @package : Functions
* @author : LoginRadius Team
* @version : 4.5.1
* @version : 4.5.2
* @license : https://opensource.org/licenses/MIT
*/

Expand All @@ -26,7 +26,7 @@
class Functions
{

const version = '4.5.1';
const version = '4.5.2';

private static $apikey;
private static $apisecret;
Expand Down

0 comments on commit bec589b

Please sign in to comment.