Skip to content
Snippets Groups Projects
Unverified Commit db42566d authored by Maxime FRIESS's avatar Maxime FRIESS :blue_heart:
Browse files

[routes] Allow fastauth for api users

parent 647e18d9
Branches
Tags
No related merge requests found
Pipeline #69464 passed with stages
in 4 minutes and 47 seconds
......@@ -79,11 +79,13 @@ Route::group(['middleware' => ['auth:sanctum', 'throttle:api']], function () {
Route::post("tokens", [TokensController::class, 'create']);
Route::delete("tokens/{token}", [TokensController::class, 'delete']);
Route::delete("tokens", [TokensController::class, 'clear']);
// Only users logged via session can accept connection on fast auth
Route::put("fa/{token}", [FastAuthTokenController::class, 'update']);
});
// Allow Token-Authenticated users to use FastAuth.
// TODO: Add a protection mechanism on FastAuth, like
// a pin-code or something.
Route::put("fa/{token}", [FastAuthTokenController::class, 'update']);
Route::get("profile/me", [ProfileController::class, 'show']);
Route::get("dashboard/home", [DashboardController::class, 'home']);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment