Commit d116cfc
committed
Release v4.0.2 - OAuth 2.0, DCR, and Authless Authentication
## What's New
### Authentication Modes
- **OAuth 2.0 with DCR**: Full OAuth 2.0 implementation with Dynamic Client Registration
- Claude Desktop pre-registered as OAuth client
- Automatic token refresh support
- PKCE support for enhanced security
- **Bearer Token**: JWT-based authentication (default)
- **Authless Mode**: No authentication for development/testing
### Bug Fixes
- Fixed API key length validation (49 chars instead of 50)
- Added python-multipart dependency for OAuth form data
### Configuration
- New `AUTH_MODE` setting: oauth, bearer, or none
- New `OAUTH_ENABLE_DCR` setting for Dynamic Client Registration
- OAuth discovery endpoint at /.well-known/oauth-authorization-server
### Endpoints
- `/oauth/authorize` - Authorization endpoint
- `/oauth/token` - Token exchange endpoint
- `/oauth/register` - Dynamic client registration (when enabled)
All 15 end-to-end tests pass.1 parent 00b2657 commit d116cfc
File tree
4 files changed
+5
-5
lines changed- src/wazuh_mcp_server
4 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
0 commit comments