Skip to content

feat(backend): implement WebSocket authentication guard (#188)#192

Merged
RUKAYAT-CODER merged 2 commits intorinafcode:mainfrom
mijinummi:feature/backend-ws-auth-guard-188
Feb 26, 2026
Merged

feat(backend): implement WebSocket authentication guard (#188)#192
RUKAYAT-CODER merged 2 commits intorinafcode:mainfrom
mijinummi:feature/backend-ws-auth-guard-188

Conversation

@mijinummi
Copy link
Contributor

Summary

This PR secures all WebSocket gateways with JWT authentication, ensuring only authorized users can connect and providing user context for real-time features.

Changes

  • Added WsJwtAuthGuard to validate JWTs from socket handshake
  • Attached authenticated user context to socket
  • Secured messaging and notifications gateways
  • Added tests for guard and gateway authentication

Acceptance Criteria Covered

  • ✅ Unauthorized users cannot connect
  • ✅ Authenticated user context available in gateways
  • ✅ Guard implemented and applied
  • ✅ Tests validate pause behavior

Next Steps

@RUKAYAT-CODER RUKAYAT-CODER merged commit 3298b9d into rinafcode:main Feb 26, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement WebSocket Authentication Guard

2 participants