Documentation Connection help

SSO connection — IDCS / IAM

With an SSO — IDCS / IAM connection, you sign in from your browser with your corporate account: ERP Commander never sees or stores an Oracle password. This guide covers registering the application in the Oracle identity domain, done once per environment, then creating the connection in ERP Commander.

The procedure is the same for ERP Commander Data, Setup and Companion.

1. How it works and prerequisites

ERP Commander opens your browser on your company’s sign-in page. Once you are signed in, the Oracle identity domain hands the application a short-lived access token, which it then presents to Oracle Fusion. For this exchange to be allowed, ERP Commander must be registered as a confidential application in the identity domain.

WhoDoes whatWhen
Identity domain administrator (OCI IAM / IDCS)Creates and configures the confidential application, then shares four values with users (steps 2 to 4).Once per Fusion environment.
Each userCreates the connection in ERP Commander with those four values and signs in (step 5).Once per workstation and environment.

Before you start, check that:

  • you have administrator access to the Oracle Cloud console, on the identity domain your Fusion environment is attached to;
  • local port 8787 is free on users’ workstations: this is where ERP Commander receives the browser’s return;
  • users have an Oracle Fusion account with the roles their ERP Commander application needs;
  • your ERP Commander version offers the SSO — IDCS / IAM connection type (ERP Commander Data 7.9 or later).

2. Create the application in the identity domain

  1. Sign in to the Oracle Cloud console, open the navigation menu, then Identity & Security › Domains.
    Identity & Security menu of the Oracle Cloud console, Domains entry highlighted
    Oracle Cloud console: Identity & Security › Domains.
  2. Click the domain of the environment concerned, open the Integrated applications tab, then click Add application.
    Integrated applications tab of the domain, Add application button highlighted
    The domain › Integrated applications › Add application.
  3. Choose Confidential Application, then click Launch workflow, at the bottom right of the page.
    Application type selection, Confidential Application highlighted
    The type to pick: Confidential Application.
  4. Enter a meaningful Name and Description, for example ERPCommander_OAuth. Leave the other fields empty and confirm.
    Application form: name and description filled in, URLs left empty
    Only the name and description are needed.
One application per environment

Each Fusion environment (DEV, TEST, PROD…) has its own resource in the identity domain. Create one application per environment, or add each environment’s resource to a single application in step 3.

3. Configure OAuth

  1. On the application page, open the OAuth configuration tab, then click Edit OAuth configuration.
    OAuth configuration tab of the application, Edit OAuth configuration button highlighted
    OAuth configuration tab › Edit OAuth configuration.
  2. Under Resource server configuration, keep No resource server configuration. Under Client configuration, choose Configure this application as a client now.
  3. Under Allowed grant types, tick Authorization code and Refresh token.
  4. Turn on Allow non-HTTPS URLs: the return address is local to the workstation, over http.
    Client configuration: Authorization code and Refresh token grants ticked, Allow non-HTTPS URLs turned on
    Client application, allowed grants and non-HTTPS URLs.
    Client credentials is not required

    In the screenshot, Client credentials is ticked as well: ERP Commander does not use it. Only tick it if you plan to test the application with a technical tool.

  5. In Redirect URL, enter exactly http://127.0.0.1:8787/oauth/callback. Keep Client type on Confidential and leave the other fields at their defaults.
    Redirect URL set to http://127.0.0.1:8787/oauth/callback, Client type Confidential
    The return address must match character for character.
  6. Under Token issuance policy, turn on Add resources, click Add scope and select the Fusion Applications Cloud Service resource of your environment.
    Resources table showing the Fusion Applications Cloud Service resource and its scope
    The Fusion resource added: its scope goes into ERP Commander.
  7. Save the configuration.
The scope is a single string

It looks like urn:opc:resource:faaas:fa:YOUR-ENVurn:opc:resource:consumer::all: two identifiers joined together, with no space. Always obtain it through Add scope, then copy it as is.

4. Activate the application and collect the values

  1. Back on the application page, open the Actions menu and click Activate. The status changes to Active.
    Actions menu of the application, Activate entry highlighted
    While the application is Inactive, no sign-in is accepted.
  2. In the OAuth configuration tab, collect the three values marked in the screenshot, then the domain address.
    OAuth configuration tab of the activated application: Client ID, Client secret and scope marked 1, 2 and 3
    The three values to collect from the application page.
ValueWhere to find itField in ERP Commander
1. Client IDApplication page › General Information.Client ID
2. Client secretApplication page › Client secret › Show secret.Client Secret
3. ScopeApplication page › Resources, Scope column.Scope
Domain addressDomain page › Details tab › Domain URL, in the form https://idcs-xxxxxxxx.identity.oraclecloud.com.Identity domain URL (https)
The Client secret is a secret

Share it with users through a secure channel (a password vault, for example), never in plain text by e-mail. If it is compromised, Regenerate secret issues a new one: every user then has to enter it again in their connection.

5. Create the connection in ERP Commander

The labels below are those of ERP Commander Data; Setup and Companion ask for the same information in their connections screen.

  1. On the Connect to Oracle Fusion screen, open the Connection list and choose + New connection….
  2. Fill in the Name (for example “DEV”), the Fusion Environment URL and your Oracle Username.
  3. Under Connection type, pick the SSO — IDCS / IAM card.
  4. Enter the Identity domain URL (https), the Client ID and the Client Secret, then replace the suggested Scope with the one collected in step 4.
  5. Leave Authorize path (oauth2/v1/authorize), Token path (oauth2/v1/token) and Redirect port (8787) at their defaults, then click Add.
  6. Select the connection and click Connect. The SSO session panel shows No session opened: click SSO sign-in.
  7. Your browser opens: sign in with your corporate account. A page confirms the sign-in succeeded; you can close the tab.
  8. Back in ERP Commander, the panel shows Session: followed by your name, and the application opens.
Your secrets stay on your workstation

The Client Secret and the session token are kept in Windows Credential Manager. They are never displayed, nor sent to LOGIC FACTORY.

6. Day to day

  • No password to type: on start-up, ERP Commander reuses your session. If it is no longer valid, it offers SSO sign-in.
  • Session lifetime: the access token lasts about one hour and renews by itself when the identity domain allows it. Otherwise the SSO session expired window appears: one click on SSO sign-in is enough, with nothing to retype while your browser session is still open.
  • Cancel: while waiting for the browser, Cancel stops the sign-in with no side effect. The wait ends by itself after five minutes.
  • BI Publisher in ERP Commander Data: with a token connection, running and publishing reports work, but browsing the BI Publisher catalog remains unavailable. This is an Oracle limitation.

7. Troubleshooting

What you seeLikely cause and fix
The browser does not open, or a message says the port is busyAnother program is using port 8787. Close it, or pick another port: it must then be changed both in Redirect port and in the application’s Redirect URL.
The browser shows an Oracle error before the sign-in pageThe Redirect URL does not exactly match http://127.0.0.1:8787/oauth/callback, Allow non-HTTPS URLs is off, the Client ID is wrong or the application is not Active.
invalid_scopeThe Scope entered differs from the one in the Resources table: a space between the two identifiers, a truncated value or the scope of another environment.
invalid_clientWrong Client ID or Client Secret, or the secret was regenerated in the console. Edit the connection and enter the secret again.
access_deniedThe identity domain refused access. Depending on your domain’s policy, the user or their group must be assigned to the application (Users and Groups tabs).
SSO session expired keeps coming backThe domain does not grant silent renewal for this environment. Check that the Refresh token grant is ticked; otherwise click SSO sign-in each time it expires.
IAM domain unreachableCheck the workstation’s network access (proxy, VPN) and the Identity domain URL: it starts with https:// and points to the identity domain, not to the Fusion environment.
Sign-in succeeds, but Oracle then rejects requestsThe signed-in account has no matching Fusion account, or it lacks roles. Check with your Oracle administrator.

Still stuck? Contact us and quote the message displayed.

← All connection types