Skip to content

Commit

Permalink
-- 8.x-3.14 --
Browse files Browse the repository at this point in the history
  *  Capitalised HTTP Method Names.
  • Loading branch information
SUDHANSHU authored and SUDHANSHU committed Aug 17, 2018
1 parent bdd607a commit 8c23106
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 15 deletions.
Binary file modified drupal-8/package/customer_identity_and_access_management.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ further information.
5. Let Composer download LoginRadius PHP SDK library for you. On command line of your server:
1. Go to the root directory of your Drupal installation.
2. Execute the following command to install php sdk only
composer require loginradius/php-sdk:4.5.1
composer require loginradius/php-sdk:4.5.3
6. After Successfully install LoginRadius PHP SDK, Enable CIAM Module.
7. Click on configuration link shown in CIAM or click on
configuration tab, Then go to people block and click on CIAM LoginRadius
Expand All @@ -27,6 +27,9 @@ further information.


-- CHANGE LOG --

-- 8.x-3.14 --
* Capitalised HTTP Method Names.

-- 8.x-3.13 --
* SSO related bug fixed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "The LoginRadius Customer Identity and Access Management",
"type": "drupal-module",
"require": {
"loginradius/php-sdk": "4.5.1"
"loginradius/php-sdk": "4.5.3"
},
"license": "GPL-2.0+"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public function request($path, $query_array = array(), $options = array())
$request_url .= API_DOMAIN;
}
$request_url .= $path;
$method = isset($options['method']) ? strtolower($options['method']) : 'GET';
$method = isset($options['method']) ? strtoupper($options['method']) : 'GET';
$post_data = isset($options['post_data']) ? $options['post_data'] : array();
$content_type = isset($options['content_type']) ? trim($options['content_type']) : 'x-www-form-urlencoded';

if ($query_array !== false) {
if ($query_array !== false) {
if(isset($options['authentication']) && $options['authentication'] == 'headsecure'){
$options = array_merge($options, Functions::authentication(array(), $options['authentication']));
$query_array = isset($options['authentication']) ? $query_array : $query_array;
Expand Down Expand Up @@ -94,7 +94,7 @@ public function request($path, $query_array = array(), $options = array())
private function curlApiMethod($request_url, $options = array())
{
$ssl_verify = isset($options['ssl_verify']) ? $options['ssl_verify'] : false;
$method = isset($options['method']) ? strtolower($options['method']) : 'get';
$method = isset($options['method']) ? strtoupper($options['method']) : 'GET';
$data = isset($options['post_data']) ? $options['post_data'] : array();
$content_type = isset($options['content_type']) ? trim($options['content_type']) : 'x-www-form-urlencoded';
$sott_header_content = isset($options['X-LoginRadius-Sott']) ? trim($options['X-LoginRadius-Sott']) : '';
Expand All @@ -117,11 +117,11 @@ private function curlApiMethod($request_url, $options = array())

curl_setopt($curl_handle, CURLOPT_POSTFIELDS, (($content_type == 'json') ? $data : Functions::queryBuild($data)));

if ($method == 'post') {
if ($method == 'POST') {
curl_setopt($curl_handle, CURLOPT_POST, 1);
} elseif ($method == 'delete') {
curl_setopt($curl_handle, CURLOPT_CUSTOMREQUEST, "delete");
} elseif ($method == 'put') {
} elseif ($method == 'DELETE') {
curl_setopt($curl_handle, CURLOPT_CUSTOMREQUEST, "DELETE");
} elseif ($method == 'PUT') {
curl_setopt($curl_handle, CURLOPT_CUSTOMREQUEST, "PUT");
}
}
Expand All @@ -146,7 +146,7 @@ private function curlApiMethod($request_url, $options = array())
*/
private function fsockopenApiMethod($request_url, $options = array()) {
$ssl_verify = isset($options['ssl_verify']) ? $options['ssl_verify'] : false;
$method = isset($options['method']) ? strtolower($options['method']) : 'get';
$method = isset($options['method']) ? strtoupper($options['method']) : 'GET';
$data = isset($options['post_data']) ? $options['post_data'] : array();
$content_type = isset($options['content_type']) ? $options['content_type'] : 'form_params';
$sott_header_content = isset($options['X-LoginRadius-Sott']) ? trim($options['X-LoginRadius-Sott']) : '';
Expand All @@ -155,7 +155,7 @@ private function fsockopenApiMethod($request_url, $options = array()) {

$optionsArray = array('http' =>
array(
'method' => strtoupper($method),
'method' => $method,
'timeout' => 50,
'ignore_errors' => true,
'header' => 'Content-Type: application/' . $content_type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ type: module
description: 'Allow users to sign up through a registration form. User Registration offers fully customized options for collecting and updating user data.'
package: CIAM LoginRadius
configure: lr_ciam.settings_form
version: '8.x-3.13'
version: '8.x-3.14'
core: '8.x'
project: 'customer_identity_and_access_management'
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ package: CIAM LoginRadius
dependencies:
- lr_ciam
configure: lr_hostedpage.settings_form
version: '8.x-3.13'
version: '8.x-3.14'
core: '8.x'
project: 'customer_identity_and_access_management'
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ package: CIAM LoginRadius
dependencies:
- drupal:lr_ciam
- drupal:simple_oauth
version: '8.x-3.13'
version: '8.x-3.14'
core: '8.x'
project: 'customer_identity_and_access_management'
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ package: CIAM LoginRadius
dependencies:
- lr_ciam
configure: lr_sso.settings_form
version: '8.x-3.13'
version: '8.x-3.14'
core: '8.x'
project: 'customer_identity_and_access_management'

0 comments on commit 8c23106

Please sign in to comment.