Compare commits
3
Commits
d8c8f2d1e0
...
v0.9.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7bbf7f68e4 | ||
|
|
e663b03c0e | ||
|
|
4a718ce763 |
No files matched your search
@@ -21,6 +21,7 @@ You can publish the config file with:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
php artisan vendor:publish --tag="filament-oauth2-config"
|
php artisan vendor:publish --tag="filament-oauth2-config"
|
||||||
|
```
|
||||||
This is the contents of the published config file:
|
This is the contents of the published config file:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1",
|
"php": "^8.1",
|
||||||
"filament/filament": "^3.0",
|
"filament/filament": "^4.0",
|
||||||
"league/oauth2-client": "*",
|
"league/oauth2-client": "*",
|
||||||
"spatie/laravel-package-tools": "^1.15.0"
|
"spatie/laravel-package-tools": "^1.15.0"
|
||||||
},
|
},
|
||||||
|
|||||||
+2
-2
@@ -6,7 +6,7 @@ use AlexanderGabriel\FilamentOauth2\Http\Controllers\Oauth2Controller;
|
|||||||
use Filament\Facades\Filament;
|
use Filament\Facades\Filament;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
$panel = Filament::getCurrentPanel();
|
$panel = Filament::getCurrentOrDefaultPanel();
|
||||||
|
|
||||||
Route::prefix($panel->getPath())
|
Route::prefix($panel->getPath())
|
||||||
->middleware($panel->getMiddleware())
|
->middleware($panel->getMiddleware())
|
||||||
@@ -15,7 +15,7 @@ Route::prefix($panel->getPath())
|
|||||||
Route::name('filament-oauth2.')
|
Route::name('filament-oauth2.')
|
||||||
->prefix('filament-oauth2')
|
->prefix('filament-oauth2')
|
||||||
->group(function () {
|
->group(function () {
|
||||||
Route::post('handleLogout', [Oauth2Controller::class, 'handleLogout'])->name('handleLogout');
|
Route::get('handleLogout', [Oauth2Controller::class, 'handleLogout'])->name('handleLogout');
|
||||||
Route::get('redirectToOauth2Server', [Oauth2Controller::class, 'redirectToOauth2Server'])
|
Route::get('redirectToOauth2Server', [Oauth2Controller::class, 'redirectToOauth2Server'])
|
||||||
->name('redirectToOauth2Server');
|
->name('redirectToOauth2Server');
|
||||||
Route::get('handleCallback', [Oauth2Controller::class, 'handleCallback'])
|
Route::get('handleCallback', [Oauth2Controller::class, 'handleCallback'])
|
||||||
|
|||||||
@@ -51,15 +51,6 @@ class FilamentOauth2ServiceProvider extends PackageServiceProvider
|
|||||||
|
|
||||||
public function packageBooted(): void
|
public function packageBooted(): void
|
||||||
{
|
{
|
||||||
// Handle Stubs
|
|
||||||
if (app()->runningInConsole()) {
|
|
||||||
foreach (app(Filesystem::class)->files(__DIR__ . '/../stubs/') as $file) {
|
|
||||||
$this->publishes([
|
|
||||||
$file->getRealPath() => base_path("stubs/filament-oauth2/{$file->getFilename()}"),
|
|
||||||
], 'filament-oauth2-stubs');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Testing
|
// Testing
|
||||||
Testable::mixin(new TestsFilamentOauth2);
|
Testable::mixin(new TestsFilamentOauth2);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ use App\Models\Role;
|
|||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use Filament\Auth\Http\Responses\LoginResponse;
|
||||||
use Filament\Facades\Filament;
|
use Filament\Facades\Filament;
|
||||||
use Filament\Http\Responses\Auth\LoginResponse;
|
|
||||||
use Filament\Models\Contracts\FilamentUser;
|
use Filament\Models\Contracts\FilamentUser;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
|||||||
Whitespace-only changes.
Reference in new issue
Block a user