Skip to content

Commit cddac7d

Browse files
feat(app): add authenticated application area (dashboard, settings, security, sessions) with configurable routes, middleware, and rate limiting
1 parent 9ff7765 commit cddac7d

22 files changed

+1579
-8
lines changed

config/authkit.php

Lines changed: 1058 additions & 1 deletion
Large diffs are not rendered by default.

src/AuthKitServiceProvider.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,12 @@ public function boot(): void
262262

263263
$this->loadRoutesFrom(__DIR__ . '/Routes/web.php');
264264
$this->loadRoutesFrom(__DIR__ . '/Routes/api.php');
265+
266+
if ((bool) config('authkit.app.enabled', true)) {
267+
$this->loadRoutesFrom(__DIR__ . '/Routes/app-web.php');
268+
$this->loadRoutesFrom(__DIR__ . '/Routes/app-api.php');
269+
}
270+
265271
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'authkit');
266272

267273
Blade::anonymousComponentNamespace('authkit::components', 'authkit');
@@ -366,6 +372,8 @@ private function registerPublishables(): void
366372
$this->publishes([
367373
__DIR__ . '/Routes/web.php' => base_path('routes/authkit-web.php'),
368374
__DIR__ . '/Routes/api.php' => base_path('routes/authkit-api.php'),
375+
__DIR__ . '/Routes/app-web.php' => base_path('routes/authkit-app-web.php'),
376+
__DIR__ . '/Routes/app-api.php' => base_path('routes/authkit-app-api.php'),
369377
], 'authkit-routes');
370378
}
371379
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Xul\AuthKit\Http\Controllers\Api\App\Confirmations;
4+
5+
class ConfirmPasswordController
6+
{
7+
public function __invoke()
8+
{
9+
// TODO: Implement __invoke() method.
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Xul\AuthKit\Http\Controllers\Api\App\Confirmations;
4+
5+
class ConfirmTwoFactorController
6+
{
7+
public function __invoke()
8+
{
9+
// TODO: Implement __invoke() method.
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Xul\AuthKit\Http\Controllers\Api\App\Settings;
4+
5+
class ConfirmTwoFactorSetupController
6+
{
7+
public function __invoke()
8+
{
9+
// TODO: Implement __invoke() method.
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Xul\AuthKit\Http\Controllers\Api\App\Settings;
4+
5+
class DisableTwoFactorController
6+
{
7+
public function __invoke()
8+
{
9+
// TODO: Implement __invoke() method.
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Xul\AuthKit\Http\Controllers\Api\App\Settings;
4+
5+
class EnableTwoFactorController
6+
{
7+
public function __invoke()
8+
{
9+
// TODO: Implement __invoke() method.
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Xul\AuthKit\Http\Controllers\Api\App\Settings;
4+
5+
class LogoutOtherSessionsController
6+
{
7+
public function __invoke()
8+
{
9+
// TODO: Implement __invoke() method.
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Xul\AuthKit\Http\Controllers\Api\App\Settings;
4+
5+
class RegenerateTwoFactorRecoveryCodesController
6+
{
7+
public function __invoke()
8+
{
9+
// TODO: Implement __invoke() method.
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Xul\AuthKit\Http\Controllers\Api\App\Settings;
4+
5+
class UpdatePasswordController
6+
{
7+
public function __invoke()
8+
{
9+
// TODO: Implement __invoke() method.
10+
}
11+
}

0 commit comments

Comments
 (0)