Oracle Integration · REST Adapter (Authorization Code grant)

OAuth: The token has already been consumed

Short answer

This REST Adapter error in Oracle Integration means the connection could not refresh its access token, because no refresh token was received or the refresh token expired. Verify that the connection receives a refresh token. Make sure the scope includes offline_access.

VerifiedLast verified

01Error text

Oracle Integration error
Failed retrieving access token using refresh token flow with error code [400]
The token has already been consumed.

02Likely causes

  • The refresh token was not received because the scope does not contain offline_access.
  • The refresh token expired. This can happen when integrations run rarely, because the connection only refreshes tokens when an adapter call is made.

03How to fix it

  1. Verify that the connection receives a refresh token. Make sure the scope includes offline_access.
  2. Increase the refresh token expiration time in OCI Identity and Access Management for the confidential application used for OAuth.

iNotes

The default access token expiration is one hour and the default refresh token expiration is one week.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for Oracle Integration work:Open Oracle Integration jobsOracle Integration rates and salaries

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.