HTTP connections that authenticate with OAuth 2.0 get their client ID, client secret, and grant settings from an OAuth 2.0 iClient. This article shows you how to create the iClient, choose a grant type, and prepare a private key for JWT signing. For what each setting means, see OAuth 2.0 iClient settings.
Prerequisites:
- You've registered an app with the OAuth 2.0 provider and have its client ID, client secret, and token endpoints.
- You know which grant type the provider supports. See Grant types.
Create the iClient
- Go to Resources
, and then select iClients.
- Select Create iClient.
- Enter a Name that identifies the provider and app, such as
Zoom OAuth – production. - In Application, select the provider. If the provider offers several APIs or API versions, select the one this iClient is for.
- Enter the Client ID and Client secret from the provider's app registration.
- In Grant type, select the grant type, and then enter its settings. See Settings by grant type.
- In Valid domain names, enter the domains of the provider's OAuth URLs. See Valid domain names.
- For Authorization code and Authorization code with PKCE, copy the Redirect URL and add it to the redirect URL allowlist in the provider's app registration.
- If the provider doesn't follow the OAuth 2.0 defaults, set the overrides and token settings it needs. See OAuth 2.0 overrides.
- Select Save.
You can now select the iClient when you set up an OAuth 2.0 connection. See Set up an OAuth 2.0 HTTP connection.
Format a JWT private key
When Grant type is Client credentials with Use JWT and a non-HMAC Signature method, the Private key must be in PEM format with real line breaks.
- Paste the private key into a text editor.
- Replace each
\nwith a line break. - Make sure the key starts with
-----BEGIN PRIVATE KEY-----and ends with-----END PRIVATE KEY-----. - Copy the whole key, including the first and last lines, and paste it into Private key.