Implement server-side ATProto OAuth login flow #68
Labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
puregarlic/microclimate!68
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue/9-server"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements the server-side ATProto OAuth login flow as tracked in #9.
What's included
New HTTP listener (HTTP_ADDR, default [::]:3000)
New gRPC service (AuthService, registered on the existing gRPC listener)
Session management
JWT minting
ATProto loopback dev requirements
New env var
JWT_SECRET — secret used to sign session tokens. Documented in README with a generation example (openssl rand -base64 32). Already present in .env.example.
Checklist
gud
@ -0,0 +50,4 @@}impl AuthState {#[instrument(name = "auth_state_new", fields(base_url = base_url.to_string()))]I think URL implements Display so you might not need to to_string() it