Skip to content

Commit

Permalink
Released Version 5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LoginRadius committed Feb 3, 2022
1 parent af1335f commit 583cdac
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 10 deletions.
Binary file modified drupal-9/package/customer_identity_and_access_management.tar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ Fully managed registration service including Email Registration, Social Login, p
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
composer require loginradius/php-sdk:11.0.0
```PHP
composer require loginradius/php-sdk:11.3.0
```
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 @@ -28,6 +30,11 @@ Fully managed registration service including Email Registration, Social Login, p

## CHANGE LOG

### 5.1.0
* Replaced the getSocialUserProfile API with getProfileByAccessToken API as getSocialUserProfile API is deprecated in PHP-SDK version 11.2.0 or above.
* Fixed the issue with the redirection to the profile page.
* Added Compatibility with our latest PHP SDK 11.3.0

### 5.0.0
* Added compatibility with Drupal-9.x
* Compatible with our latest PHP SDK 11.0.0
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": "11.0.0"
"loginradius/php-sdk": "11.3.0"
},
"license": "GPL-2.0+"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ 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: '5.0.0'
version: '5.1.0'
core_version_requirement: ^8.8 || ^9
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use Drupal\Core\Entity\EntityTypeInterface;
use LoginRadiusSDK\Utility\Functions;
use LoginRadiusSDK\CustomerRegistration\Advanced\ConfigurationAPI;
use LoginRadiusSDK\CustomerRegistration\Advanced\MultiFactorAuthenticationAPI;
use LoginRadiusSDK\CustomerRegistration\Authentication\AuthenticationAPI;
use LoginRadiusSDK\CustomerRegistration\Account\AccountAPI;
use LoginRadiusSDK\CustomerRegistration\Account\SottAPI;
use LoginRadiusSDK\CustomerRegistration\Social\SocialAPI;
Expand Down Expand Up @@ -1133,14 +1134,15 @@ if (!in_array("administrator", $user) && !\Drupal::currentUser()->isAnonymous())


if (isset($configSettings->TwoFactorAuthentication) && $configSettings->TwoFactorAuthentication->IsEnabled) {
$authenticationAPI = new AuthenticationAPI();
try {
$socialProfileData = $socialObject->getSocialUserProfile(trim(\Drupal::service('session')->get('access_token', [])), FALSE, 'Provider');
$userProfileData = $authenticationAPI->getProfileByAccessToken(trim(\Drupal::service('session')->get('access_token', [])),'Provider');
}
catch (LoginRadiusException $e) {
\Drupal::logger('ciam')->error($e);
}

if ($socialProfileData->Provider == 'RAAS') {
if ($userProfileData->Provider == 'Email') {
$form['lr_2fa_container'] = [
'#type' => 'item',
'#theme' => '2fa_container',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,7 @@ public function redirectUser($variable_path = '') {
}
elseif ($this->moduleconfig->get($variable_path) == 1) {
// Redirect to profile.
$response = new RedirectResponse($user->id() . '/edit');
return $response->send();
return new RedirectResponse($user->id() . '/edit');
}
elseif ($this->moduleconfig->get($variable_path) == 2) {
// Redirect to custom page.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ package: CIAM LoginRadius
dependencies:
- drupal:lr_ciam
configure: lr_identity_experience_framework.settings_form
version: '5.0.0'
version: '5.1.0'
core_version_requirement: ^8.8 || ^9
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: '5.0.0'
version: '5.1.0'
core_version_requirement: ^8.8 || ^9
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
configure: lr_sso.settings_form
version: '5.0.0'
version: '5.1.0'
core_version_requirement: ^8.8 || ^9
project: 'customer_identity_and_access_management'

0 comments on commit 583cdac

Please sign in to comment.