mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
020957cd76
Signed-off-by: phernandez <paul@basicmachines.co> Co-authored-by: phernandez <paul@basicmachines.co> Co-authored-by: Claude <noreply@anthropic.com>
1.5 KiB
1.5 KiB
OAuth Quick Start
Basic Memory supports OAuth authentication for secure access control. For detailed documentation, see OAuth Authentication Guide.
Quick Test with MCP Inspector
# 1. Set a consistent secret key
export FASTMCP_AUTH_SECRET_KEY="test-secret-key"
# 2. Start server with OAuth
FASTMCP_AUTH_ENABLED=true basic-memory mcp --transport streamable-http
# 3. In another terminal, get a test token
export FASTMCP_AUTH_SECRET_KEY="test-secret-key" # Same key!
basic-memory auth test-auth
# 4. Copy the access token and use in MCP Inspector:
# - Server URL: http://localhost:8000/mcp
# - Transport: streamable-http
# - Custom Headers:
# Authorization: Bearer YOUR_ACCESS_TOKEN
# Accept: application/json, text/event-stream
OAuth Endpoints
GET /authorize- Authorization endpointPOST /token- Token exchange endpointGET /.well-known/oauth-authorization-server- OAuth metadata
Common Issues
- 401 Unauthorized: Make sure you're using the same secret key for both server and client
- 404 Not Found: Use
/authorizenot/auth/authorize - Token Invalid: Tokens don't persist across server restarts with basic provider
Documentation
- OAuth Authentication Guide - Complete setup guide
- Supabase OAuth Setup - Production deployment
- External OAuth Providers - GitHub, Google integration