I have authorization service that giving JWT tokens with HS256 encryption (by hmac secret key). I want to configure NATS WebSocket for authenticate users via this tokens.
I have tried NATS resolver with URL but it only tried to get accounts in my case and doesn't anything else.
NATS test config:
websocket {
port: 8085
no_tls: true
}
resolver: url(http://nats-auth-checker/jwt/v1/accounts/)
How to configure users authentication via external JWT tokens in NATS WebSocket?
And I have doubts: is it a normal practice to use NATS as WebSocket gateway for frontend?