Remove identity status
Until we have a clearer picture of why we need it, it would be best to remove it since it's easier to add it later than to remove it after it's released.
This commit is contained in:
parent
b9c2b9322f
commit
b8e22151f6
|
@ -1959,17 +1959,6 @@ $collections = [
|
|||
'array' => false,
|
||||
'filters' => [],
|
||||
],
|
||||
[
|
||||
'$id' => ID::custom('status'),
|
||||
'type' => Database::VAR_STRING,
|
||||
'format' => '',
|
||||
'size' => 256,
|
||||
'signed' => true,
|
||||
'required' => true,
|
||||
'default' => 'connected',
|
||||
'array' => false,
|
||||
'filters' => [],
|
||||
],
|
||||
[
|
||||
'$id' => ID::custom('providerUid'),
|
||||
'type' => Database::VAR_STRING,
|
||||
|
@ -2062,13 +2051,6 @@ $collections = [
|
|||
'lengths' => [100],
|
||||
'orders' => [Database::ORDER_ASC],
|
||||
],
|
||||
[
|
||||
'$id' => ID::custom('_key_status'),
|
||||
'type' => Database::INDEX_KEY,
|
||||
'attributes' => ['status'],
|
||||
'lengths' => [Database::LENGTH_KEY],
|
||||
'orders' => [Database::ORDER_ASC],
|
||||
],
|
||||
[
|
||||
'$id' => ID::custom('_key_providerUid'),
|
||||
'type' => Database::INDEX_KEY,
|
||||
|
|
|
@ -628,7 +628,6 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect')
|
|||
'userInternalId' => $user->getInternalId(),
|
||||
'userId' => $userId,
|
||||
'provider' => $provider,
|
||||
'status' => 'connected',
|
||||
'providerUid' => $oauth2ID,
|
||||
'providerEmail' => $email,
|
||||
'providerAccessToken' => $accessToken,
|
||||
|
@ -637,7 +636,6 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect')
|
|||
]));
|
||||
} else {
|
||||
$identity
|
||||
->setAttribute('status', 'connected')
|
||||
->setAttribute('providerAccessToken', $accessToken)
|
||||
->setAttribute('providerRefreshToken', $refreshToken)
|
||||
->setAttribute('providerAccessTokenExpiry', DateTime::addSeconds(new \DateTime(), (int)$accessTokenExpiry));
|
||||
|
|
|
@ -7,7 +7,6 @@ class Identities extends Base
|
|||
public const ALLOWED_ATTRIBUTES = [
|
||||
'userId',
|
||||
'provider',
|
||||
'status',
|
||||
'providerUid',
|
||||
'providerEmail',
|
||||
];
|
||||
|
|
|
@ -40,12 +40,6 @@ class Identity extends Model
|
|||
'default' => '',
|
||||
'example' => 'email',
|
||||
])
|
||||
->addRule('status', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Connection status. Can be connected or disconnected',
|
||||
'default' => '',
|
||||
'example' => 'connected',
|
||||
])
|
||||
->addRule('providerUid', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'ID of the User in the Identity Provider.',
|
||||
|
|
Loading…
Reference in a new issue