Enter your keyword

post

Call Oracle Fusion (SaaS) APIs from OIC with OAuth 2.0 JWT User Assertion

Call Oracle Fusion (SaaS) APIs from OIC with OAuth 2.0 JWT User Assertion

Why you need to change your OIC connections

As per Oracle’s official announcement dated 6 November 2026, Password-based authentication to the Oracle Fusion Applications API is being deprecated, and every Oracle Integration (OIC) connection that uses it must move to OAuth token-based authentication before March 31, 2027.

Required actions for all Oracle Integration Developers:

  1. Identify all invoke and trigger connections that use password-based authentication to access Fusion Applications. In OIC, open Integrations > Connections and check the security policy of each one.
  2. Note which adapter each connection uses: REST, SOAP, or the Oracle ERP Cloud Adapter (plus HCM and CX Sales where you have them).
  3. Review the supported OAuth token-based policies for each adapter: Authorization Code Credentials and JWT User Assertion.
  4. Decide per connection which policy fits. Authorization Code needs an interactive user login; JWT User Assertion needs none, so it suits scheduled and system-to-system integrations.
  5. Complete the prerequisites below:
    • A key pair
    • An integrated application in Fusion IAM
    • and an integration user with the right roles.
  6. Replace the password-based policy on each affected trigger and invoke connection with a supported OAuth policy, and configure the required OAuth credentials.
  7. Test and save the updated connections, activate them, and validate the dependent integrations before March 31, 2027.

This guide covers JWT User Assertion for calling Fusion (SaaS) APIs from OIC invoke connections.

Pre-requisites

Before you start migrating a password-based connection, make sure you have the following:

  • Admin access to the Fusion Applications identity domain (Fusion IAM) to create a confidential application.
  • An integration user that exists in Fusion IAM and holds the job roles and privileges needed by the Fusion REST, SOAP, or ERP service you call. If OIC uses a different identity domain from Fusion, the same user must exist in both.
  • Access to OIC to upload certificates and edit connections.
  • Your Fusion host name
  • OpenSSL (Git Bash on Windows is fine) to generate a certificate and private key

The following are Oracle Integration Adapters where the changes need to be applied:

API type OIC adapter Typical Connection URL
Fusion REST APIs REST Adapter https://<FUSION-HOST> (the base host; the resource path is set in the integration)
Fusion SOAP web services SOAP Adapter The service WSDL URL https://<FUSION-HOST>/<service-path>?WSDL
Fusion Cloud adapters Oracle ERP Cloud, Oracle HCM Cloud, and Oracle CX Sales and B2B Service https://<FUSION-HOST>

Need to update all Oracle Integration connections that point to the Oracle Fusion URL which use Basic Authentication, Username Password Token, or Username Password Token With PGP Key Support with the policy such as:

  1. OAuth using JWT User Assertion
  2. Authorization Code Credentials

The following are the steps to authenticate Oracle Fusion REST APIs using the JWT User Assertion policy:

Step 1: Generate the private key and certificate

Create a 2048-bit RSA private key:

openssl genrsa -out private_key.pem 2048

Create a self-signed certificate from it, valid for 365 days. The common name is only a label; the alias you register later is what matters.

openssl req -new -x509 -key private_key.pem -out cert.pem -days 365 -subj "/CN=fusion_jwt_cert"

On Windows (Git Bash), the /CN= value can be rewritten as a file path, and the command fails. Disable path conversion for that command:

MSYS_NO_PATHCONV=1 openssl req -new -x509 -key private_key.pem -out cert.pem -days 365 -subj "/CN=fusion_jwt_cert"

You now have two files:

  • cert.pem is the public certificate. It is uploaded to the Oracle Fusion identity domain while creating a confidential application in further steps.
  • private_key.pem is secret. It is used to sign the JWTs and is uploaded to the Oracle Integration Certificate screen.

If OIC rejects the key format later, convert it to PKCS#8 using the following command:

openssl pkcs8 -topk8 -nocrypt -in private_key.pem -out private_key_pkcs8.pem

Step 2: Create the integrated application in Fusion IAM

The integrated application is the OAuth client that Fusion trusts. Menu names can differ slightly between console versions.

  1. Sign in to the Fusion Applications identity domain console as an administrator and open Integrated applications > Add application.
  2. Choose Confidential application and click Launch workflow.
  3. Enter a name such as OIC_FUSION_JWT_CLIENT and a description, then click Next.
  4. On Configure OAuth, select Configure this application as a client now.
  5. Under Allowed grant types, tick JWT assertion. Add Client credentials only if you need them.
  6. Set Client type to Trusted. In the Trusted client section, import the certificate: enter the alias fusion_jwt_cert and upload cert.pem and save. The alias must be identical to the kid in your JWT header in the further steps.
  7. Under Token issuance policy, choose Specific resources, add a scope, and select your Fusion Applications resource. The scope has this form:
    urn:opc:resource:fa:instanceid=<FA_INSTANCE_ID>urn:opc:resource:consumer::all

  1. Finish the wizard, then Activate the application.
  2. Copy the Client ID from the application’s OAuth configuration section. It is the iss value in your JWT payload.

Step 3: Copy the following to a secure place:

  1. Client ID
  2. Oracle Fusion IDCS URL
  3. Scope
  4. Certificate Alias that was given while uploading the certificate under the confidential application

 

Step 4: Upload the private key to OIC

  1. In the OIC console, open Settings > Certificates and click Upload.
  2. Set the Alias name to fusion_jwt_cert.
  1. Set Type to Signing key (the other options are Digital signature, PGP, SAML and X.509 SSL transport; do not use those), then upload the key file and click Upload. The certificate then appears in the list with Type SIGNKEY, Category Private, and Status Configured.

This alias is the value for JWT Private Key Alias in Step 6.

 

Step 5: Prepare the header and payload files

The Oracle Integration connection takes two JSON files when using OAuth using JWT User Assertion security policy. Save them locally.

jwt_header.json

{
  "alg": "RS256",
  "typ": "JWT",
  "kid": "fusion_jwt_cert"
}

jwt_payload.json

{
  "iss": "<FUSION_CLIENT_ID>",
  "sub": "<FUSION_INTEGRATION_USER>",
  "iat": 1796128500,
  "exp": 1827664500,
  "aud": ["oauth.idm.oracle.com", "https://identity.oraclecloud.com/"]
}

iat and exp are mandatory. If exp is missing, saving or testing the connection fails with CASDK-0005: ‘exp’ claims are missing in the jwt payload uploaded. Both values are epoch seconds. The values above are examples; generate your own with date +%s for iat and date -d "+365 days" +%s for exp. The file is static, so OIC reuses the same exp on every call. After that date passes, token requests fail until you update the file and re-upload it to the connection, so note the expiry date. If the identity domain rejects a long lifetime, use a shorter one.

Please note: You can use this https://www.epochconverter.com/ to generate iat and exp.

If the sub value is left empty, OIC can take the user at runtime from the mapper, which lets different users run the same integration with their own identity.

Step 6: Configure the OIC connection with JWT User Assertion

This replaces the password-based policy on an existing trigger or invoke connection.

  1. Open Integrations > Connections (or your project, then Connections) and create or edit the connection for your Fusion REST, SOAP, or Fusion adapters.
  2. Under Properties, set the Connection type and the Connection URL from the table in Prerequisites.
  3. Under Security, set the Security policy to OAuth using JWT User Assertion.
  4. Fill in the fields as shown below.
Field Value
Access Token URI https://<FUSION-IDCS-DOMAIN>.identity.oraclecloud.com/oauth2/v1/token
JWT headers in JSON format Upload jwt_header.json
JWT payload in JSON format Upload jwt_payload.json
JWT Private Key Alias fusion_jwt_cert
Scope (under Optional security) urn:opc:resource:fa:instanceid=<FA_INSTANCE_ID>urn:opc:resource:consumer::all
Access Token Request (optional) Leave blank unless the identity provider needs extra parameters

5. Click Save, then Test.

Step 7: Test, save, activate, and validate

    1. On the connection page, click Test. A green confirmation means OIC obtained a token with your JWT.
    2. Click Save.
    3. Activate the integrations again.
    4. Run each integration end to end and confirm Fusion receives the call as the expected user.

Troubleshooting and security

Symptom Likely cause and fix
CASDK-0005: ‘exp’ claims are missing Add iat and exp to jwt_payload.json and re-upload it
Test fails with an invalid client or signature error kid does not match the certificate alias in the integrated application, or the imported certificate is not the pair of the signing key
Test fails with invalid grant The sub user does not exist in Fusion IAM, or exp has passed
Test fails with invalid scope Scope string is wrong, or the Fusion resource was not added in the application’s token issuance policy
Token is issued but Fusion returns 401 or 403 The integration user lacks the job roles or data access for that API
Test fails with a key or alias error JWT Private Key Alias differs from the alias uploaded under OIC Certificates, or the type is not Signing key

Security practice:

  • Treat private_key.pem like a password. Keep it out of Git, screenshots, and articles.
  • If a private key has ever been shared or published, generate a new key and certificate, import the new certificate, upload the new key to OIC, and delete the old alias.
  • Use a dedicated integration user with only the roles it needs, not a personal administrator account.
  • Certificates expire. This one lasts 365 days, so set a reminder to rotate it before then.

Conclusion

Password-based authentication to Fusion Applications is going away, and OAuth using JWT User Assertion is a clean replacement: no passwords are stored or sent, and each call runs as a named user with a short-lived token.

The setup comes down to a few pieces that must line up:

  • A private key and certificate pair, with the same alias used as kid in the JWT header, in the Fusion IAM application, and in OIC Certificates.
  • An integrated application in Fusion IAM with the JWT assertion grant, the Trusted client certificate, and the Fusion scope.
  • A header and payload file for the OIC connection, with iss, sub, aud, iat and exp all present.
  • A Signing key uploaded to OIC, whose alias goes in JWT Private Key Alias.

Update each affected REST, SOAP and ERP connection, test, save, activate and validate the dependent integrations. Plan the rotation of the certificate and the payload exp date, and finish the migration before March 31, 2027.

Still struggling to migrate your Basic Authentication to JWT user Assertion policy, kindly email to info@techsupper.com or what’s app at +91 99586 39888.

 

Our team will contact you.