How OAuth 2.0 works for HTTP connectors
With OAuth 2.0, an HTTP connector doesn’t send a long-lived credential on every API call. It first trades something at the provider’s token URL, such as a client ID and secret, a refresh token or a signed JWT, for a short-lived access token. It then sends that token with each request as Authorization: Bearer <access token>. Select Oauth2 in the connector’s Auth Config, then pick a grant in Oauth2 Grant Type. If your provider’s docs mention a token URL or a grant_type, you need OAuth 2.0.
What Moveworks sends in step 1 depends on the grant. See How the token request is sent.
Choose a grant
With Auth Config set to Oauth2, Oauth2 Grant Type is required. Pick the grant your provider supports for the identity you’re connecting with:

If the API accepts a credential directly on each request instead, such as an API key or a JWT you sign, you don’t need OAuth. See Choose an auth type.
How the token request is sent
Moveworks sends a POST to the Oauth2 Token Url with an x-www-form-urlencoded body, or a JSON body if you add Content-Type: application/json under Oauth2 Custom Oauth Request Options Additional Headers. Oauth2 Custom Oauth Request Options Additional Request Data is added to the body, and Oauth2 Custom Oauth Request Options Additional Headers are sent as headers on the token request.
Token endpoints expect the client ID and secret in one of two places: the request body, or a Basic Authorization header. For the Client Credentials and Refresh Token grants, Moveworks tries both, so you don’t need to choose on the connector:
- First it sends them in the request body (
client_secret_post). - If that attempt fails for any reason, it retries with them as a Basic
Authorizationheader instead (client_secret_basic).
For the Password grant, the client ID, client secret, username and password are sent in the request body. The Jwt Grant and Jwks Grant send a signed JWT and no client ID or secret.
How access tokens are reused
Moveworks caches the access token and fetches a new one before it expires. If the token response has no expiry, the token isn’t reused, and a new one is fetched for every request. Jwt Grant and Jwks Grant tokens with a per-user Subject template are also fetched for every request. If the API returns 401 for a request, the cached token is cleared and the next request fetches a new one. Authorization Code tokens are kept per employee.