Skip to navigation

Set up Jwt Auth for an HTTP connector

View as Markdown

Not OAuth. Jwt Auth signs a JWT (JSON Web Token) with your private key and sends it in each API request as Authorization: Bearer <jwt>. There’s no token URL and no access token.

Looking for the OAuth 2.0 Jwt Grant?

If your provider’s docs give a token URL or the jwt-bearer grant type, the JWT is exchanged for an access token: use the Jwt Grant.

Jwt Auth or Jwks Auth?

Both send the signed JWT directly as Authorization: Bearer <jwt>. They differ in who holds the key:

OptionSigning keyHow the API verifies itKey rotation
Jwt AuthYour private key or secret, uploaded to the connectorWith the public key or shared secret you give itManual: upload a new key and update the API
Jwks AuthA Moveworks-managed RSA keyAt your org’s JWKS URLAutomatic, on the rotation interval

Send the JWT as a bearer token

  1. Select Jwt Auth from the Auth Config dropdown.

    Auth Config set to Jwt Auth, with the Jwt Auth Private Key upload, Key ID (Optional) and the required Jwt Auth Algorithm fields below it.

  2. Fill in the fields:

    Field NameField Value
    Jwt Auth Private KeyUpload your Private Key or 256-bit secret, as a file under 10 KB. See JWT.io for formatting details.
    Key ID (Optional)The kid of the private key, if the system you are integrating with needs it.
    Jwt Auth AlgorithmRequired, with nothing selected by default. Select from HS256, RS256, or ES256, as specified by the system you are integrating with.
    Jwt Auth Claims Expiry SecondsSet the expiration time in seconds (e.g., 3600). The exp claim is calculated as iat + this value.
    Jwt Auth Claims IssuerThe iss claim value.
    Jwt Auth Claims AudienceThe aud claim value.
    Jwt Auth Claims SubjectThe sub claim value. To carry each employee’s identity, use a template such as {{ user.email_addr }}. If there’s no requesting user, sub is left out.
    Enable JTI claimSelect it to include a unique jti (JWT ID) claim in each generated token.
    Jwt Auth HeadersAny additional header claims, such as typ.
    Jwt Auth Additional ClaimsAny extra payload claims, such as scope or name. Values are sent as strings.
    Assertion Key (optional)Leave blank. It applies only to the Oauth2 Jwt Grant.
  3. Save the connector.

Each API request then carries the signed JWT:

curl -X GET "https://api.example.com/data" \
-H "Authorization: Bearer $JWT"

Confirm it works

Test an action that uses the connector. To check the JWT itself, decode it at JWT.io and compare its claims with what the provider expects.

What the JWT contains

Decoded at JWT.io, a Jwt Auth token looks like this. The header carries the algorithm, any Jwt Auth Headers, and the Key ID (Optional) as kid:

{
"alg": "ES256",
"typ": "JWT",
"kid": "my-key-1"
}

The payload carries the configured claims. iat and exp are set automatically when the token is signed, aud and sub are included only when set, and jti only when Enable JTI claim is selected:

{
"iss": "moveworks",
"sub": "jane.doe@example.com",
"aud": "https://api.example.com",
"iat": 1767225600,
"exp": 1767229200,
"scope": "read"
}