Validating profile... 0% complete

What is your current level of experience in freelance work?

 

 

Secure SignalR & JWT Authentication in .NET 8 WebAPI with Clerk Integration

We have a fullstack app with the following setup: - Frontend: Next.js (hosted on Vercel) - Backend: .NET 8 WebAPI (hosted on Windows server) - Auth: Clerk.com (JWT-based) The frontend uses SignalR to connect to a hub on the backend. Clerk JWT tokens are available client-side. --- ## ✅ Task Scope We need you to: 1. Secure the SignalR hub: - Accept Clerk JWT tokens from frontend clients - Validate tokens using `Microsoft.AspNetCore.Authentication.JwtBearer` - Reject unauthorized connections 2. Configure cross-origin & CORS properly: - Ensure compatibility with Vercel frontend - Follow Clerk’s best practices for token validation (their suppport just gave us recommendations) 3. Document the solution: - How JWT validation is configured - How user claims are accessed --- ##