Move authsome to a client server architecture #91
Replies: 1 comment
-
|
Brainstorming notes: The client-server direction looks useful, but I would avoid making it a wholesale move at first. A better framing is: add an optional local auth server/daemon while keeping authsome lightweight and usable as a direct CLI/library by default. Recommended architecture: Why this helps:
Important constraint: Authsome should remain lite by default. Server/UI dependencies should not be required for the base CLI/library install. Prefer optional extras or extension packaging: authsome # lightweight CLI/library
authsome[server] # local server / daemon
authsome[ui] # local management UI
authsome[all] # everythingOr potentially separate packages later ( Suggested responsibilities for the local server:
Responsibilities to avoid in the first version:
Security baseline:
Possible local API shape: GET /health
GET /profiles
POST /profiles
GET /providers
GET /providers/{name}
GET /profiles/{profile}/connections
POST /auth-flows
GET /auth-flows/{id}
POST /profiles/{profile}/logout/{provider}/{connection}
POST /profiles/{profile}/revoke/{provider}
GET /oauth/callback/{flow_id}
GET /uiImplementation path:
Preferred decision for now: Do not force a full move to client-server yet. Keep authsome CLI/library-first and lightweight, then add an optional local server as the shared home for callbacks, UI, and interactive flow orchestration. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe this will help us, server can render a simple ui, handle callbacks, device flow. The cli becomes the client. This can help us simplify the design a lot.
Beta Was this translation helpful? Give feedback.
All reactions