Include x-jwt-token header in JwtAuthProvider

I have a third-party client app that sends up the token in the “x-jwt-token” header.

I would like to include looking at this header in addition to everything it is currently doing.

What is the easiest way to achieve this? It looks like the client app limits its communications to a single route so I only need this functionality on a specific request.

You can override GetJwtToken(IRequest req) in your AppHost to change how the JWT Token is resolved.

You can inspect req.Dto for the Request DTO (or req.PathInfo) if you only want to enable it on a per-request basis.

1 Like