feat(auth): add DB-based token authentication for dashboard-created clients
Add client_tokens table with auto-generated sk-{hex} tokens so clients
created in the dashboard get working API keys. Auth flow: DB token lookup
first, then env token fallback, then permissive mode. Includes token
management CRUD endpoints and copy-once reveal modal in the frontend.
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -1444,10 +1444,12 @@ dependencies = [
|
||||
"dotenvy",
|
||||
"futures",
|
||||
"headers",
|
||||
"hex",
|
||||
"image",
|
||||
"insta",
|
||||
"mime",
|
||||
"mockito",
|
||||
"rand 0.9.2",
|
||||
"reqwest",
|
||||
"reqwest-eventsource",
|
||||
"serde",
|
||||
|
||||
Reference in New Issue
Block a user