Add manual Micropub token generation for non-PKCE clients
iA Writer's IndieAuth client predates PKCE support in the spec, so it can't complete the normal authorization flow. Add an admin form to mint a token directly (reusing the existing TokenService), so it can be pasted into clients that support manual token setup instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017USyUg8PwuoDcHP8pv5xjy
This commit is contained in:
parent
9e9fbdc127
commit
568ae78864
12 changed files with 190 additions and 2 deletions
|
|
@ -157,6 +157,8 @@ Route::middleware(MyAuthMiddleware::class)->prefix('admin')->group(function () {
|
|||
// Micropub Tokens
|
||||
Route::prefix('tokens')->group(function () {
|
||||
Route::get('/', [TokensController::class, 'index']);
|
||||
Route::get('/create', [TokensController::class, 'create']);
|
||||
Route::post('/', [TokensController::class, 'store']);
|
||||
Route::put('/{token}/revoke', [TokensController::class, 'revoke']);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue