Commit f5295b5
Lasim
feat(backend): Implement OAuth2 consent flow with detailed consent management
- Added consent route to handle GET and POST requests for OAuth2 consent.
- Implemented consent details retrieval including user and client information.
- Created schemas for request and response validation using Zod.
- Integrated authorization service to manage authorization requests and codes.
- Added error handling for various scenarios including user authentication and request validation.
- Implemented token route for exchanging authorization codes and refreshing tokens.
- Developed authorization service to validate clients, redirect URIs, and manage authorization requests.
- Introduced cleanup service to periodically remove expired tokens and authorization codes.
- Enhanced token service to generate and verify access and refresh tokens securely.1 parent 3ad4ab6 commit f5295b5
File tree
24 files changed
+4985
-98
lines changed- services/backend
- drizzle/migrations_sqlite
- meta
- src
- db
- middleware
- routes
- mcp/installations
- oauth2
- teams
- services/oauth
24 files changed
+4985
-98
lines changedLarge diffs are not rendered by default.
Large diffs are not rendered by default.
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments