Configure custom JWT signing keys
Use this guide when your identity provider signs JWTs and you want the NPO portal to validate those tokens. You can provide a static public key or certificate, an OpenID Connect or OAuth metadata URL, or a direct JWKS URL.
Before you start
Ask your identity provider administrator for:
- The exact issuer value that appears in the token's
issclaim. - The expected audience value in the token's
audclaim. - One signing-key source: a public PEM key/certificate, a metadata URL, or a JWKS URL.
- For server-side submit, the claim that identifies the calling application and its expected value.
Never share or enter a private signing key in the portal. URL-based key sources must be publicly reachable by the service over HTTPS. The provider should publish the current and next signing keys together during a rotation so that tokens signed by either key can be validated during the transition.
Open the settings
In the NPO portal, open the relevant environment's settings. For form authentication, find Form Settings → Security → Authentication. For server-side submit, find Execution Settings → Security → Authentication. The exact environment selector and navigation labels can vary by portal version and your access role.
Only users with permission to edit that environment's settings can change these values.
Choose a key source
Configure exactly one of the following for the relevant authentication path. Form authentication and server-side submit have separate settings, so choose a source for each path you use. Clear the other source fields when changing modes; for example, clear the saved PEM value before switching that path to metadata or JWKS.
Static PEM public key or certificate
For form authentication, use Forms Portal Auth Issuer Key. For server-side submit, use Server Submit Auth Issuer Key. Paste the complete PEM public key or X.509 certificate, including its BEGIN and END lines. Do not paste a private key. For form authentication, enable Enable Forms Portal Auth Issuer Key Validation. Choose the matching algorithm, such as RS256; server-side submit uses Server Submit Auth Algorithm and requires RS256 for static PEM.
This mode is useful when the provider does not publish a JWKS endpoint. When the provider rotates its signing key, replace the configured public key or certificate with the new value. Coordinate this update with token issuance to avoid rejecting tokens signed by the previous key. For server-side submit, also configure the expected issuer and audience.
Metadata URL
Enter the provider's OpenID Connect discovery URL or OAuth authorization-server metadata URL in Forms Portal Auth Metadata URL or Server Submit Auth Metadata URL. The metadata document must include a jwks_uri pointing to a JWKS document. Enable issuer-key validation for form authentication.
For form authentication, set the portal token algorithm to the asymmetric signing algorithm used by your provider. Remote discovery supports RSA and ECDSA signing keys.
The metadata document's issuer should match the configured issuer and the token's iss claim. Configure the expected issuer and audience in the portal. Metadata discovery supplies signing keys; it does not replace issuer, audience, expiry, or server-submit caller checks.
Direct JWKS URL
Enter the provider's direct URL to a JSON Web Key Set in Forms Portal Auth JWKS URL or Server Submit Auth JWKS URL. A JWKS is JSON containing a keys array. Each public signing key should have a stable kid so a token can identify the key used to sign it.
The JWKS must contain a keys array of public verification keys only. A signing key commonly includes these fields:
| Field | Example | Purpose |
|---|---|---|
kty |
RSA |
Key type. RSA and EC keys are supported for remote discovery. |
use |
sig |
Marks the key for signing and signature verification. |
kid |
signing-key-2026-01 |
Identifies the key used by a token. |
alg |
RS256 |
Identifies the signing algorithm. |
n, e |
Provider supplied values | Public RSA modulus and exponent, encoded as base64url. |
Set the expected issuer separately, because a direct JWKS document does not identify its issuer.
Configure server-side submit
In Execution Settings → Security → Authentication, set the expected audience and issuer. For metadata discovery, you can use Server Submit Auth Metadata URL. For a direct key set, use Server Submit Auth JWKS URL and set Server Submit Auth Issuer to the issuer in the token.
Set Server Submit Allowed Application ID to the trusted caller's application identifier. By default, the validator reads this identifier from the appid claim. If your provider uses a different claim, set Server Submit Auth Caller Claim to that claim name. The claim value must still match the configured allowed application ID.
The caller must send a signed token with the configured issuer and audience, a valid lifetime, and the allowed application identifier. Publishing signing keys does not authorize every caller that can obtain a token from the provider.
Verify and rotate keys
- Save the settings and obtain a new token from the provider.
- Confirm that the token's
iss,aud, expiry and signing key match the configured values and published key set. - Test with a non-production environment before applying changes to production.
- For URL-based sources, publish the new key before signing tokens with it. Keep the previous key available until tokens signed with it have expired, then remove it.
- For static PEM, update the configured key during the provider's planned rotation window. If both old and new keys must be accepted during a transition, use a provider JWKS/metadata endpoint that publishes both keys.
Troubleshooting
- Signature validation fails: Check that the selected source is correct, the public key is present, and the token's
kidmatches a key in the JWKS. For static PEM, check the full PEM header/footer and algorithm. - Issuer or audience validation fails: Compare the configured values character-for-character with the token claims and provider metadata.
- A metadata URL does not work: Confirm it returns JSON containing
jwks_uri, and that the referenced JWKS is available over HTTPS. - A direct JWKS URL does not work: Confirm it returns a JSON object with a non-empty
keysarray and public signing keys. - Server-side submit rejects a valid token: Check the configured caller claim name and ensure its value matches Server Submit Allowed Application ID.
- Validation fails during rotation: Keep old and new public keys published together until tokens signed with the old key have expired. With static PEM, coordinate the key update with token issuance.
If the settings do not appear, ask your portal administrator to confirm that the environment's settings template has been updated and that your account can edit the environment.
Server-side delete uses the same JWT configuration
Server-Delete uses the Server Submit Auth issuer, audience, signing-key source, algorithm and caller-claim settings described above. Key rotation and other changes to these settings affect both APIs. Configure the separate Server Delete Allowed Application ID to enable local draft deletion; leaving it empty disables deletion. A caller authorised only for submit cannot delete drafts.