summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2024-01-31 21:17:33 +0000
committerFrankie B <git@diskfloppy.me>2024-01-31 21:17:46 +0000
commit278abdbcfaacf1fc8ee0f7d4289b85aa14cc3735 (patch)
treee527fd906f365723b12f74a2981a9b46f4e869e8
parent08586938f6a4e06aa0808a2f9a3f87a83f981585 (diff)
Remove sanctum
-rw-r--r--composer.json1
-rw-r--r--composer.lock68
-rw-r--r--config/sanctum.php67
-rw-r--r--database/migrations/2019_08_19_000000_create_failed_jobs_table.php32
-rw-r--r--database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php33
5 files changed, 1 insertions, 200 deletions
diff --git a/composer.json b/composer.json
index f075442..b924604 100644
--- a/composer.json
+++ b/composer.json
@@ -9,7 +9,6 @@
"auth0/login": "^7.8",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
- "laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"scrivo/highlight.php": "v9.18.1.10",
"sentry/sentry-laravel": "^4.1",
diff --git a/composer.lock b/composer.lock
index 0c62ab4..3fb9a92 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "ebf76c457c15d95cb9e5760f9af003c2",
+ "content-hash": "d9ef400d61fb79fa5da5ecf7868fced5",
"packages": [
{
"name": "auth0/auth0-php",
@@ -1734,72 +1734,6 @@
"time": "2023-12-29T22:37:42+00:00"
},
{
- "name": "laravel/sanctum",
- "version": "v3.3.3",
- "source": {
- "type": "git",
- "url": "https://github.com/laravel/sanctum.git",
- "reference": "8c104366459739f3ada0e994bcd3e6fd681ce3d5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/laravel/sanctum/zipball/8c104366459739f3ada0e994bcd3e6fd681ce3d5",
- "reference": "8c104366459739f3ada0e994bcd3e6fd681ce3d5",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "illuminate/console": "^9.21|^10.0",
- "illuminate/contracts": "^9.21|^10.0",
- "illuminate/database": "^9.21|^10.0",
- "illuminate/support": "^9.21|^10.0",
- "php": "^8.0.2"
- },
- "require-dev": {
- "mockery/mockery": "^1.0",
- "orchestra/testbench": "^7.28.2|^8.8.3",
- "phpstan/phpstan": "^1.10",
- "phpunit/phpunit": "^9.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- },
- "laravel": {
- "providers": [
- "Laravel\\Sanctum\\SanctumServiceProvider"
- ]
- }
- },
- "autoload": {
- "psr-4": {
- "Laravel\\Sanctum\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Taylor Otwell",
- "email": "taylor@laravel.com"
- }
- ],
- "description": "Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.",
- "keywords": [
- "auth",
- "laravel",
- "sanctum"
- ],
- "support": {
- "issues": "https://github.com/laravel/sanctum/issues",
- "source": "https://github.com/laravel/sanctum"
- },
- "time": "2023-12-19T18:44:48+00:00"
- },
- {
"name": "laravel/serializable-closure",
"version": "v1.3.3",
"source": {
diff --git a/config/sanctum.php b/config/sanctum.php
deleted file mode 100644
index 529cfdc..0000000
--- a/config/sanctum.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-use Laravel\Sanctum\Sanctum;
-
-return [
-
- /*
- |--------------------------------------------------------------------------
- | Stateful Domains
- |--------------------------------------------------------------------------
- |
- | Requests from the following domains / hosts will receive stateful API
- | authentication cookies. Typically, these should include your local
- | and production domains which access your API via a frontend SPA.
- |
- */
-
- 'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
- '%s%s',
- 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1',
- Sanctum::currentApplicationUrlWithPort()
- ))),
-
- /*
- |--------------------------------------------------------------------------
- | Sanctum Guards
- |--------------------------------------------------------------------------
- |
- | This array contains the authentication guards that will be checked when
- | Sanctum is trying to authenticate a request. If none of these guards
- | are able to authenticate the request, Sanctum will use the bearer
- | token that's present on an incoming request for authentication.
- |
- */
-
- 'guard' => ['web'],
-
- /*
- |--------------------------------------------------------------------------
- | Expiration Minutes
- |--------------------------------------------------------------------------
- |
- | This value controls the number of minutes until an issued token will be
- | considered expired. If this value is null, personal access tokens do
- | not expire. This won't tweak the lifetime of first-party sessions.
- |
- */
-
- 'expiration' => null,
-
- /*
- |--------------------------------------------------------------------------
- | Sanctum Middleware
- |--------------------------------------------------------------------------
- |
- | When authenticating your first-party SPA with Sanctum you may need to
- | customize some of the middleware Sanctum uses while processing the
- | request. You may change the middleware listed below as required.
- |
- */
-
- 'middleware' => [
- 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class,
- 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class,
- ],
-
-];
diff --git a/database/migrations/2019_08_19_000000_create_failed_jobs_table.php b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php
deleted file mode 100644
index 249da81..0000000
--- a/database/migrations/2019_08_19_000000_create_failed_jobs_table.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
- /**
- * Run the migrations.
- */
- public function up(): void
- {
- Schema::create('failed_jobs', function (Blueprint $table) {
- $table->id();
- $table->string('uuid')->unique();
- $table->text('connection');
- $table->text('queue');
- $table->longText('payload');
- $table->longText('exception');
- $table->timestamp('failed_at')->useCurrent();
- });
- }
-
- /**
- * Reverse the migrations.
- */
- public function down(): void
- {
- Schema::dropIfExists('failed_jobs');
- }
-};
diff --git a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php
deleted file mode 100644
index e828ad8..0000000
--- a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
- /**
- * Run the migrations.
- */
- public function up(): void
- {
- Schema::create('personal_access_tokens', function (Blueprint $table) {
- $table->id();
- $table->morphs('tokenable');
- $table->string('name');
- $table->string('token', 64)->unique();
- $table->text('abilities')->nullable();
- $table->timestamp('last_used_at')->nullable();
- $table->timestamp('expires_at')->nullable();
- $table->timestamps();
- });
- }
-
- /**
- * Reverse the migrations.
- */
- public function down(): void
- {
- Schema::dropIfExists('personal_access_tokens');
- }
-};