JWT Bearer Token
All Legacy Gateways use JWT Bearer Authentication.
- You can generate a private-public key pair.
- Add your private key & gateway information as a connector in Moveworks Setup.
- Share the public key with your Gateway team.
- As part of every request, Moveworks will generate a JWT with the standard set of claims and sign it with the private key.
{ "iss": "moveworks", "aud": "<https://your.gateway.com">, "iat": "1659540236", "exp": "1659547436" }
- Moveworks will set the token in the auth header as
Authorization: Bearer <token>
- Your gateway can then decrypt the token with the public key, verify, and then process our request.
See our starter code for an example.
Additional notes:
- Maximum TTL for a token is 2hrs
- We will use ES256 (ECDSA signature algorithm using SHA-256 hash algorithm) or RSA256.