txToken creates an HS256 JWT token from JSON retrieved from a remote endpoint resulting from a proxied json request body.
txToken exposes an http POST endpoint accepting JSON data to be sent to a remote server along with a preset bearer token. Validation of this token on the remote side is optional and only needed if the remote wishes to authenticate the call using a shared key.
- Post JSON data to txToken.
- txToken re-posts the JSON to remote endpoint.
- txToken creates a JWT token with JSON data returned from remote.
- txToken returns a JWT token
Systems that share an encryption key with txToken can validate the token and ensure the authenticity of it's data.
Checkout the article JWT Microservice, Tokenize Remote APIs for a detailed functional overview and guide.