Route JWT decoder calls by environment

Recipe Tools

What it does

When there is a new call for JWT Decoder, this automation checks the source link and routes the request to the matching environment. It returns the decoded response so the caller gets the right result.

Who it's for

Engineering teams who need to decode JWT tokens across test and production environments without manual routing.

How teams use this

Decode tokens from test vendor panel

Route calls from test domains to the dev environment decoder so tokens are validated against test credentials. The automation handles the routing without manual intervention.

Decode tokens from production vendor panel

Route calls from production domains to the prod environment decoder so tokens are validated against live credentials. The same flow handles both test and production seamlessly.

Support security operations token validation

Extend the automation to include a logging step that records all decoded tokens for audit purposes. Add a condition to check if the source is from an approved security operations domain.

Add a new vendor panel domain

Include an additional source link condition so calls from a new vendor panel domain route to the correct decoder. Only the routing conditions need to be updated.

How it works

  1. Receive a JWT decoder call. A new call for JWT Decoder arrives in Workato Service with a source link that identifies which environment should handle the token decoding request.
  2. Check if source is test environment. Workato Service evaluates whether the source link matches a test vendor panel domain to determine if the request should route to the dev decoder.
  3. Route to dev or prod decoder. Send the request to the dev environment decoder if the source is test, or to the prod environment decoder if the source is production.
  4. Return the decoded response. Workato Service sends the decoded JWT token back to the caller so they receive the result from the correct environment.