mirror of
https://github.com/syntrex-lab/gomcp.git
synced 2026-04-29 22:36:21 +02:00
fix(auth): whitelist /api/auth/demo in JWT middleware to fix demo login
This commit is contained in:
parent
06e5c81dd7
commit
4d6aeedccd
1 changed files with 1 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ func NewJWTMiddleware(secret []byte) *JWTMiddleware {
|
|||
"/api/auth/register": true,
|
||||
"/api/auth/verify": true,
|
||||
"/api/auth/plans": true,
|
||||
"/api/auth/demo": true,
|
||||
"/api/v1/scan": true, // public demo scanner
|
||||
"/api/v1/usage": true, // public usage/quota check
|
||||
"/api/v1/soc/events": true, // sensor ingest (auth via RBAC API key when enabled)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue