OBLYTECH Logo
OBLYTECH Logo

Configure a JWT provider for an OAuth application profile

To configure a JWT provider for an OAuth application profile, upload the Java Key Store certificate, create its JWT signing key, and add a JWT provider with the required claims. Then select that provider in the OAuth configuration. For Azure certificate authentication, use the tenant-specific audience and the application’s client ID.

Prepare the certificate and identify the OAuth flow

The configuration connects three records: the uploaded certificate, the signing key that uses it, and the JWT provider that supplies the claims. The OAuth application configuration then references the provider. A certificate attachment by itself does not complete this chain. Before changing the application profile, identify which record will supply each part.

For the Azure-oriented JWT provider setup, the required role is admin. Start with a JKS certificate containing the certificate uploaded to Microsoft Azure, and attach that JKS certificate to the instance. Create the JWT signing key associated with that keystore before adding the provider. The keystore must contain a single entry, because ServiceNow selects the first alias in it, so confirm that the entry is the certificate registered in Azure before you attach the keystore. Keep the application’s client ID and the tenant’s directory ID available for the claim configuration.

Decide whether you are configuring outbound client authentication, an OIDC identity provider, or a JWT Bearer grant integration. These configurations can share certificate and provider concepts while using different claims and application settings. The OAuth profile explanation helps place the profile within the larger authentication configuration.

The steps here follow Brazil behavior; check the available fields on your instance and release. Use a nonproduction application registration for the initial configuration when possible.

Configure a JWT provider for an OAuth application profile

With the JKS certificate attached and the signing key created, add the JWT provider. The Azure-specific provider configuration requires admin. Populate the provider’s claims using values from the same Azure application registration and tenant. Mixing a client ID from one application with a certificate registered against another creates a configuration that may look complete but still needs correction.

  1. Associate the JWT provider with the signing key created for the uploaded JKS certificate.
  2. Set aud to the Microsoft identity platform token endpoint for the tenant, using its directory ID and the OAuth v2.0 token endpoint path.
  3. Set iss to the client ID copied from the Azure application registration.
  4. Set sub to that same Azure client ID.
  5. From the JWT Provider record menu, select Copy sys_id and retain the provider identifier for the next configuration step.

For this Azure setup, aud identifies the tenant-specific token endpoint, while iss and sub both identify the application. Treat these as separate inputs even though two values are equal. Comparing the fields individually makes it easier to catch a tenant mismatch or an application ID pasted into the audience claim.

The next task in this setup is generating a SHA-1 thumbprint. Include that dependency in the implementation checklist rather than declaring certificate authentication ready immediately after copying the provider identifier.

Connect the provider to outbound OAuth authentication

For Private Key JWT on outbound OAuth integrations, the required role is oauth_admin. Its prerequisites are an uploaded JKS certificate, an associated JWT signing key, and a JWT provider. If the JWT key needs the X.509 Certificate SHA-1 Thumbprint int (x5t) header field, configure the form to add that field.

Navigate to All > System OAuth > Application Registry and select New. Choose Connect to a third-party OAuth provider. Add the Send Credentials and JWT Provider fields to the form if they are absent; both are needed for the Private Key JWT authentication request configuration.

  • Name: give the third-party connection a distinct name that identifies its purpose.
  • Client ID: enter the application identifier registered with the external OAuth server.
  • Default Grant type: select Client Credentials for this outbound configuration.
  • Token URL: supply the external OAuth server’s token endpoint.
  • Send Credentials: select As Private Key JWT.
  • JWT Provider: use the lookup to select the provider associated with the intended signing key.

The resulting application registry record has type OAuth Provider in the Application Registries table. Review the actual reference selected in JWT Provider rather than relying on the display name alone. If multiple test providers exist, the retained provider identifier gives the reviewer a concrete record to compare.

Client Credentials does not provide refresh tokens in this configuration. Plan testing around obtaining an access token and using it for the intended operation. For the surrounding connection model, see the Integration Hub guide.

For help planning this work, see ServiceNow implementation.

Keep claim values specific to the receiving application

The Azure values above are tied to that certificate authentication setup. A different JWT Bearer integration can assign different meanings to the same claim names. Before reusing a provider, compare the intended issuer, subject, and audience with the application that will receive the assertion.

A Docusign JWT Bearer configuration template illustrates the distinction. Its issuer input represents the integrator key, also called the client ID. Its subject input represents the user being impersonated. Its audience represents the authentication service. The template also includes a custom scope claim. Copying the Azure rule that iss and sub both contain the client ID would lose that subject distinction.

The template connects credential, OAuth entity profile, JWT provider, signing keystore, and connection data. Review the generated references as well as the visible claim values when working through a template. Correct values entered into the wrong generated record will not establish the intended relationship between the credential and its provider.

A GitHub Application Vulnerability Integration gives another boundary case: its provider uses the GitHub App ID for iss and leaves aud and sub blank. That integration also selects JWT Bearer as the application registry’s Default Grant type and populates JWT Provider on the default profile in the OAuth Entity Profiles related list. These settings belong to that integration, rather than being defaults for Azure.

Verify the record chain before troubleshooting the connection

Review the setup in dependency order. Begin with the certificate attachment and signing key, continue through the provider and claims, and finish at the consuming application configuration. This order helps separate an incorrect reference from an incorrect claim value. Change one identified mismatch at a time and keep the previous value in the change record.

  1. Confirm that the intended JKS certificate is attached and that the signing key references that keystore.
  2. Confirm that the JWT provider uses the intended signing configuration.
  3. Compare aud, iss, and sub with the specific application’s requirements.
  4. Verify that the consuming OAuth configuration points to that provider.
  5. Request authentication through the intended integration and record the outcome without placing private key material in the troubleshooting notes.

Separate token acquisition from the downstream business action during testing. First establish whether authentication succeeds, then test the operation that uses the resulting credential. Keep the application, provider, and environment identifiers with the test result so another administrator can reproduce the same path.

If the records appear connected but the integration still fails, use the Integration Hub troubleshooting guide to organize the investigation. Avoid replacing the certificate and changing several claims together: that makes it harder to identify which correction resolved the failure.

Questions about related JWT configuration choices

What additional setup does OIDC SSO require?

Private Key JWT for OIDC-based SSO requires oauth_admin, the Integration – Multiple Provider Single Sign-On Installer plugin, enabled Multiple Provider SSO properties, and an OIDC Identity Provider. Open that provider through Application Registry, add the authentication fields through Configure > Form Design, then choose As Private Key JWT and the JWT Provider.

Does choosing mutual authentication select Private Key JWT?

Use mutual authentication is a separate application registry setting for token requests and revocation, and it requires a mutual authentication profile. Send Credentials selects As Private Key JWT. Review each field according to the authentication design rather than treating the two settings as interchangeable.

Where can a template expose the signing keystore input?

The JWT Bearer template’s dynamic data schema can expose a Key Store input mapped into the credential’s JWT provider signing-key data. This lets the connection configuration collect a keystore selection alongside claim inputs while the default data template defines the associated records.

Can the application registry customize OAuth requests?

The OAuth API Script field references a script that customizes requests and responses for the external provider. Treat an existing script as part of the configuration review before changing it. Its presence does not replace the certificate, signing key, or provider references.