Skip to content

Commit

Permalink
add oauth2 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Dec 5, 2023
1 parent 8fc88d3 commit 20804be
Show file tree
Hide file tree
Showing 10 changed files with 1,721 additions and 520 deletions.
33 changes: 31 additions & 2 deletions app/Auth/NexusWebGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
use Carbon\Carbon;
use Illuminate\Auth\GuardHelpers;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Auth\StatefulGuard;
use Illuminate\Contracts\Auth\UserProvider;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\App;

class NexusWebGuard implements Guard
class NexusWebGuard implements StatefulGuard
{
use GuardHelpers;

Expand Down Expand Up @@ -88,4 +88,33 @@ public function logout()
}


public function attempt(array $credentials = [], $remember = false)
{
// TODO: Implement attempt() method.
}

public function once(array $credentials = [])
{
// TODO: Implement once() method.
}

public function login(Authenticatable $user, $remember = false)
{
// TODO: Implement login() method.
}

public function loginUsingId($id, $remember = false)
{
// TODO: Implement loginUsingId() method.
}

public function onceUsingId($id)
{
// TODO: Implement onceUsingId() method.
}

public function viaRemember()
{
// TODO: Implement viaRemember() method.
}
}
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@
"imdbphp/imdbphp": "^7.0",
"laravel/framework": "9.52.4",
"laravel/octane": "^1.2",
"laravel/passport": "*",
"laravel/sanctum": "^2.10",
"laravel/tinker": "^2.5",
"league/flysystem-ftp": "^3.0",
"league/flysystem-sftp-v3": "^3.0",
"league/uri": "6.8",
"masbug/flysystem-google-drive-ext": "^2.0",
"meilisearch/meilisearch-php": "^1.0",
"orangehill/iseed": "^3.0",
Expand Down
Loading

0 comments on commit 20804be

Please sign in to comment.