Skip to content

Commit 550c622

Browse files
committed
Obliterate JWT from codebase
1 parent 6336e51 commit 550c622

File tree

8 files changed

+3
-125
lines changed

8 files changed

+3
-125
lines changed

app/Http/Controllers/Auth/AbstractLoginController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@
1313
use Illuminate\Contracts\Auth\Authenticatable;
1414
use Illuminate\Contracts\Encryption\Encrypter;
1515
use Illuminate\Foundation\Auth\AuthenticatesUsers;
16-
use Pterodactyl\Traits\Helpers\ProvidesJWTServices;
1716
use Illuminate\Contracts\Cache\Repository as CacheRepository;
1817
use Pterodactyl\Contracts\Repository\UserRepositoryInterface;
1918

2019
abstract class AbstractLoginController extends Controller
2120
{
22-
use AuthenticatesUsers, ProvidesJWTServices;
21+
use AuthenticatesUsers;
2322

2423
/**
2524
* @var \Illuminate\Auth\AuthManager

app/Http/Middleware/Api/AuthenticateKey.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@
99
use Pterodactyl\Models\ApiKey;
1010
use Illuminate\Auth\AuthManager;
1111
use Illuminate\Contracts\Encryption\Encrypter;
12-
use Pterodactyl\Traits\Helpers\ProvidesJWTServices;
1312
use Symfony\Component\HttpKernel\Exception\HttpException;
1413
use Pterodactyl\Exceptions\Repository\RecordNotFoundException;
1514
use Pterodactyl\Contracts\Repository\ApiKeyRepositoryInterface;
1615
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
1716

1817
class AuthenticateKey
1918
{
20-
use ProvidesJWTServices;
21-
2219
/**
2320
* @var \Illuminate\Auth\AuthManager
2421
*/

app/Traits/Helpers/ProvidesJWTServices.php

Lines changed: 0 additions & 36 deletions
This file was deleted.

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"laracasts/utilities": "^3.0",
2727
"laravel/framework": "5.6.*",
2828
"laravel/tinker": "^1.0",
29-
"lcobucci/jwt": "^3.2",
3029
"lord/laroute": "^2.4",
3130
"matriphe/iso-639": "^1.2",
3231
"nesbot/carbon": "^1.22",

composer.lock

Lines changed: 2 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/jwt.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"glob-all": "^3.1.0",
2828
"html-webpack-plugin": "^3.2.0",
2929
"jquery": "^3.3.1",
30-
"jwt-decode": "^2.2.0",
3130
"lodash": "^4.17.5",
3231
"postcss": "^6.0.21",
3332
"postcss-import": "^11.1.0",

yarn.lock

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3404,10 +3404,6 @@ jsonfile@^4.0.0:
34043404
optionalDependencies:
34053405
graceful-fs "^4.1.6"
34063406

3407-
jwt-decode@^2.2.0:
3408-
version "2.2.0"
3409-
resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-2.2.0.tgz#7d86bd56679f58ce6a84704a657dd392bba81a79"
3410-
34113407
keygrip@~1.0.2:
34123408
version "1.0.2"
34133409
resolved "https://registry.yarnpkg.com/keygrip/-/keygrip-1.0.2.tgz#ad3297c557069dea8bcfe7a4fa491b75c5ddeb91"

0 commit comments

Comments
 (0)