Skip to content

Commit c5c6864

Browse files
aryaantony92dvesh3
andauthored
Remove unused OAuth config (#411)
* Removed ununsed config * Apply php-cs-fixer changes * Removed other SSOIdentity references * Update doc * Docs changes * more cleanup --------- Co-authored-by: aryaantony92 <[email protected]> Co-authored-by: Divesh Pahuja <[email protected]>
1 parent 536c30e commit c5c6864

28 files changed

+9
-1554
lines changed

.github/ci/files/var/classes/DataObject/Customer.php

-46
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
- manualSegments [advancedManyToManyObjectRelation]
2727
- calculatedSegments [advancedManyToManyObjectRelation]
2828
- password [password]
29-
- ssoIdentities [manyToManyObjectRelation]
3029
- passwordRecoveryToken [input]
3130
- passwordRecoveryTokenDate [datetime]
3231
*/
@@ -55,7 +54,6 @@
5554
* @method static \Pimcore\Model\DataObject\Customer\Listing|\Pimcore\Model\DataObject\Customer|null getByNewsletterConfirmToken($value, $limit = 0, $offset = 0, $objectTypes = null)
5655
* @method static \Pimcore\Model\DataObject\Customer\Listing|\Pimcore\Model\DataObject\Customer|null getByManualSegments($value, $limit = 0, $offset = 0, $objectTypes = null)
5756
* @method static \Pimcore\Model\DataObject\Customer\Listing|\Pimcore\Model\DataObject\Customer|null getByCalculatedSegments($value, $limit = 0, $offset = 0, $objectTypes = null)
58-
* @method static \Pimcore\Model\DataObject\Customer\Listing|\Pimcore\Model\DataObject\Customer|null getBySsoIdentities($value, $limit = 0, $offset = 0, $objectTypes = null)
5957
* @method static \Pimcore\Model\DataObject\Customer\Listing|\Pimcore\Model\DataObject\Customer|null getByPasswordRecoveryToken($value, $limit = 0, $offset = 0, $objectTypes = null)
6058
* @method static \Pimcore\Model\DataObject\Customer\Listing|\Pimcore\Model\DataObject\Customer|null getByPasswordRecoveryTokenDate($value, $limit = 0, $offset = 0, $objectTypes = null)
6159
*/
@@ -84,7 +82,6 @@ class Customer extends \CustomerManagementFrameworkBundle\Model\AbstractCustomer
8482
protected $manualSegments;
8583
protected $calculatedSegments;
8684
protected $password;
87-
protected $ssoIdentities;
8885
protected $passwordRecoveryToken;
8986
protected $passwordRecoveryTokenDate;
9087

@@ -797,49 +794,6 @@ public function setPassword(?string $password)
797794
return $this;
798795
}
799796

800-
/**
801-
* Get ssoIdentities - SSO Identities
802-
* @return \Pimcore\Model\DataObject\SsoIdentity[]
803-
*/
804-
public function getSsoIdentities(): array
805-
{
806-
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
807-
$preValue = $this->preGetValue("ssoIdentities");
808-
if ($preValue !== null) {
809-
return $preValue;
810-
}
811-
}
812-
813-
$data = $this->getClass()->getFieldDefinition("ssoIdentities")->preGetData($this);
814-
815-
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
816-
return $data->getPlain();
817-
}
818-
819-
return $data;
820-
}
821-
822-
/**
823-
* Set ssoIdentities - SSO Identities
824-
* @param \Pimcore\Model\DataObject\SsoIdentity[] $ssoIdentities
825-
* @return \Pimcore\Model\DataObject\Customer
826-
*/
827-
public function setSsoIdentities(?array $ssoIdentities)
828-
{
829-
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
830-
$fd = $this->getClass()->getFieldDefinition("ssoIdentities");
831-
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
832-
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
833-
$currentData = $this->getSsoIdentities();
834-
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
835-
$isEqual = $fd->isEqual($currentData, $ssoIdentities);
836-
if (!$isEqual) {
837-
$this->markFieldDirty("ssoIdentities", true);
838-
}
839-
$this->ssoIdentities = $fd->preSetData($this, $ssoIdentities);
840-
return $this;
841-
}
842-
843797
/**
844798
* Get passwordRecoveryToken - Password Recovery Token
845799
* @return string|null

.github/ci/files/var/classes/DataObject/Customer/Listing.php

-12
Original file line numberDiff line numberDiff line change
@@ -220,18 +220,6 @@ public function filterByCalculatedSegments ($data, $operator = '=')
220220
return $this;
221221
}
222222

223-
/**
224-
* Filter by ssoIdentities (SSO Identities)
225-
* @param mixed $data
226-
* @param string $operator SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
227-
* @return static
228-
*/
229-
public function filterBySsoIdentities ($data, $operator = '=')
230-
{
231-
$this->getClass()->getFieldDefinition("ssoIdentities")->addListingFilter($this, $data, $operator);
232-
return $this;
233-
}
234-
235223
/**
236224
* Filter by passwordRecoveryToken (Password Recovery Token)
237225
* @param string|int|float|array|Model\Element\ElementInterface $data comparison data, can be scalar or array (if operator is e.g. "IN (?)")

.github/ci/files/var/classes/DataObject/Objectbrick/Data/OAuth1Token.php

-100
This file was deleted.

.github/ci/files/var/classes/DataObject/Objectbrick/Data/OAuth2Token.php

-205
This file was deleted.

0 commit comments

Comments
 (0)