Introduce revokation mechanism

This commit is contained in:
ErickSkrauch
2019-12-10 01:38:09 +03:00
parent ba7fad84a0
commit 016a193263
11 changed files with 103 additions and 20 deletions

View File

@@ -6,6 +6,23 @@ return [
'legacy_id' => 1,
'scopes' => null,
'created_at' => 1479944472,
'revoked_at' => null,
],
'revoked-tlauncher' => [
'account_id' => 1,
'client_id' => 'tlauncher',
'legacy_id' => null,
'scopes' => null,
'created_at' => Carbon\Carbon::create(2019, 8, 1, 0, 0, 0, 'Europe/Minsk')->unix(),
'revoked_at' => Carbon\Carbon::create(2019, 8, 1, 1, 2, 0, 'Europe/Minsk')->unix(),
],
'revoked-minecraft-game-launchers' => [
'account_id' => 1,
'client_id' => common\models\OauthClient::UNAUTHORIZED_MINECRAFT_GAME_LAUNCHER,
'legacy_id' => null,
'scopes' => null,
'created_at' => Carbon\Carbon::create(2019, 8, 1, 0, 0, 0, 'Europe/Minsk')->unix(),
'revoked_at' => Carbon\Carbon::create(2019, 8, 1, 1, 2, 0, 'Europe/Minsk')->unix(),
],
'banned-account-session' => [
'account_id' => 10,
@@ -13,6 +30,7 @@ return [
'legacy_id' => 2,
'scopes' => null,
'created_at' => 1481421663,
'revoked_at' => null,
],
'deleted-client-session' => [
'account_id' => 1,
@@ -20,6 +38,7 @@ return [
'legacy_id' => 3,
'scopes' => null,
'created_at' => 1519510065,
'revoked_at' => null,
],
'actual-deleted-client-session' => [
'account_id' => 2,
@@ -27,5 +46,6 @@ return [
'legacy_id' => 4,
'scopes' => null,
'created_at' => 1519511568,
'revoked_at' => null,
],
];