Enabling IDCS as Identity Provider in Spatial Studio
Starting from Oracle Spatial Studio Release 22.1.0, you can log into your Spatial Studio instance using users already managed by your own Oracle Cloud tenancy’s IDCS identity domain.
The workflow to setup IDCS as the identity provider for Spatial Studio involves the following three steps:
-
Adding Spatial Studio roles as Groups in IDCS.
-
Creating an Application in IDCS.
-
Copying IDCS settings into Spatial Studio’s configuration file.
Before you begin, see Prerequisite Requirements for Setting Up IDCS with Spatial Studio to ensure that you meet all the prerequisite requirements.
-
Prerequisite Requirements for Setting Up IDCS with Spatial Studio
-
Adding Spatial Studio Role as a Group in IDCS
You must add the system administrator role supported in Spatial Studio as a group in IDCS. -
Creating an Application in IDCS
This section describes the steps to add the Spatial Studio application in IDCS. -
Copying IDCS Settings into Spatial Studio’s Configuration File
To integrate Spatial Studio with IDCS, you must add the IDCS settings into thesgtech_config.jsonconfiguration file. -
Testing IDCS Login
After all the setup steps are completed, you can test and verify the IDCS login.
Prerequisite Requirements for Setting Up IDCS with Spatial Studio
To integrate IDCS with Spatial Studio, you must obtain the following details:
-
Identify your IDCS tenant: See Retrieving IDCS Instance details.
-
Identify your IDCS host: See Retrieving IDCS Instance details.
-
Identify the Spatial Studio URL: https://localhost:4040/spatialstudio/ is the default.
-
Setup an IDCS admin account: See About Oracle Identity Cloud Service User Accounts and Groups for details.
-
Identify IDCS console URL: See Determining the IDCS Console URL for more information.
Retrieving IDCS Instance details
You can obtain the IDCS instance details by inspecting any of the IDCS URLs. For instance, you can inspect the IDCS login URL which you receive in the email when you are added as a user in IDCS. For example, consider the following sample IDCS cloud account login URL:
https://idcs-54656e616e742d4578616d706c652121.identity.oraclecloud.com/ui/v1/signin
You can now derive the IDCS instance details from the preceding URL as shown:
-
IDCS tenant: idcs-54656e616e742d4578616d706c652121
-
IDCS host: identity.oraclecloud.com
-
Determining the IDCS Console URL
OCI tenancies include a default IDCS instance and you can obtain the IDCS console URL using the OCI console.
Determining the IDCS Console URL
OCI tenancies include a default IDCS instance and you can obtain the IDCS console URL using the OCI console.
Perform the following steps to identify the URL to access IDCS console:
-
Sign in to the OCI console using your Oracle Cloud credentials.
-
Open the navigation menu and select Identity and Security.
-
Click Federation under Identity.
The Federation page opens as shown:

-
Click on the default IDCS instance, shown highlighted in the preceding figure.
The Identity Provider Details page opens.
-
Note the IDCS console URL in the Oracle Identity Cloud Service Console field as shown:

Adding Spatial Studio Role as a Group in IDCS
You must add the system administrator role supported in Spatial Studio as a group in IDCS.
The system administrator role in Spatial Studio is identified by SGTech_SystemAdmin. This implies that the administrator has full access to the entire system.
You need to add this role as an IDCS group. However, the following applies:
-
Users assigned to this group will have admin rights in the Spatial Studio instance that is being set up.
-
Users who do not belong to this group will have regular access to the Spatial Studio instance when added to the IDCS application.
As a prerequisite, you must obtain the IDCS console URL. See Determining the IDCS Console URL for details.
Perform the following steps to create the groups in IDCS:
-
Open the IDCS login page using the IDCS console URL in your browser.
-
Enter the ADMIN user credentials and sign in as shown:

-
Open the navigation menu on top left, select Groups and click Add to create a new group as shown:

Description of the illustration add_idcs_groups.png
The Add Group dialog opens and displays the Step 1: Group Details page.
-
Enter Name as SGTech_SystemAdmin.
Note that the role name is case sensitive.
-
Optionally, enter a Description.
-
Click Next as shown:

Description of the illustration idcs_group_details.png
Step 2: Assign Users to Group (Optional) page opens listing all the existing users.
-
Select the required user and click Finish.
For example, the following figure shows assigning spatialstudio_user to the group role SGTech_SystemAdmin:

-
Verify that the newly added group is listed on the Groups page:

Creating an Application in IDCS
This section describes the steps to add the Spatial Studio application in IDCS.
-
Sign in to IDCS using ADMIN user credentials.
-
Open the navigation menu on top left, select Applications and click Add to add a new application as shown:

Description of the illustration add_idcs_app.png
The Add Application dialog opens.
-
Select Confidential Application.

Description of the illustration idcs_confidential_app.png
The Add Confidential Application wizard opens displaying the Details page.
-
Enter the application Name.
-
Optionally, add a Description and click Next.

Description of the illustration add_conf_app_dtls_page.png
The Client page opens.
-
Click Configure this application as a client now to configure the authorization information for the new application.
Perform the following in the Authorization section:
-
Enable Client Credentials and Authorization Code for Allowed Grant Types.
-
Enter <spatial_studio_url>/idcscallback in Redirect URL.
-
Enter <spatial_studio_url> in Post Logout Redirect URL.
-
Optionally, for Security, you can enable Trusted Client to import a custom certificate.

Description of the illustration add_conf_app_client_dtls_page.png
Perform the following in the Token Issuance Policy section:
-
Click Add under Grant the client access to Identity Cloud Service Admin APIs to enable the application to access IDCS APIs.
The Add App Role window opens listing the application roles.
-
Select Me and Authenticator Client and click Add to assign these application roles to the application as shown:

Description of the illustration configure_token_issuance.png
-
Click Next on the top right of the page to continue.
-
-
Skip Resources and Web Tier Policy by clicking the Next button and navigate to the Authorization page.
-
Enable the Enforce Grants as Authorization option.
-
Click Finish.

Description of the illustration configure_authorization_idcs.png
The application is added and the Application Added dialog box opens.

-
Note the Client ID and Client Secret to be used later to complete the configuration.
Tip: You can also obtain the client credentials for the application from the Configuration tab in the General Information section, once the application is activated.
-
Click Close.
The new application’s Details page is displayed.
-
Click Activate to grant users access to the application and confirm the operation on the prompt that follows.

-
Click the Groups tab and then click Assign to add the group created in Adding Spatial Studio Role as a Group in IDCS as shown:

-
Optionally, add non-admin users through the Users tab or using other groups.

Copying IDCS Settings into Spatial Studio’s Configuration File
To integrate Spatial Studio with IDCS, you must add the IDCS settings into the sgtech_config.json configuration file.
The configuration file is located at ~/.sgtech/sgtech_config.json path. You can directly append the IDCS settings into the sgtech_config.json file. However, the best practice is to have the IDCS settings in a separate configuration file and then import this file into the main configuration file.
Perform the following steps to create a configuration file for the IDCS settings and to import this configuration in sgtech_config.json:
-
Create a new empty
JSONconfiguration file in the~/.sgtechdirectory.For example:
~/.sgtech/sgtech_config.idcs.json -
Edit the created file with a file editor of your choice and add the IDCS settings information as shown:
{ "idcs" : { "Host" : "identity.oraclecloud.com", "ClientTenant" : "<tenant_id>", "ClientId" : "<client_id>", "ClientSecret" : "<client_secret>", "redirectURL" : "https://localhost:4040/spatialstudio/idcscallback", "postLogoutRedirectURL" : "https://localhost:4040/spatialstudio/" } }In the preceding file:
-
Host: IDCS host.
-
Client Tenant: IDCS tenant.
-
ClientId : Generated when creating the IDCS application.
-
ClientSecret : Generated when creating the IDCS application.
-
redirectURL : Same as the
Redirect URLused when creating the IDCS application. -
postLogoutRedirectURL : Same as the
Post Logout Redirect URLused when creating the IDCS application.
-
-
Save the
sgtech_config.idcs.jsonfile. -
Edit the main
sgtech_config.jsonfile and add the import configuration as shown:{ "version" : "26.1.0", "work_dir" : "", ... "jobs" : { "init_threads_count" : 15 }, "imports" : { "idcsclient" : { "module" : "sgtech_config.idcs.json" } }It is important to note that there can be only one
importsobject in the mainsgtech_config.jsonfile. Therefore, if animportsconfiguration is already existing in the mainsgtech_config.jsonfile, then you can add theidcscliententry to the imports block as shown:{ "version" : "26.1.0", "work_dir" : "", ... "jobs" : { "init_threads_count" : 15 }, "imports" : { "idcsclient" : { "module" : "sgtech_config.idcs.json" }, "rolesmapping" : { "module" : "sgtech_config.security.json" } } -
Save the
sgtech_config.jsonfile.
Testing IDCS Login
After all the setup steps are completed, you can test and verify the IDCS login.
-
Ensure you have logged out from IDCS.
-
Ensure all Spatial Studio instances are stopped.
You can stop a Spatial Studio instance by executing
stop.shfor Linux andstop.cmdfor Windows. -
Run Spatial Studio by executing
start.sh(Linux) orstart.cmd(Windows). -
Open the main URL in your browser, once Spatial Studio is running. For example:
https://localhost:4040/spatialstudio/The IDCS login screen opens instead of Spatial Studio’s standard login screen.
-
Enter your credentials and click Sign In.
You will be automatically redirected to the Spatial Studio instance. You can verify the logged in user by clicking on the Avatar icon as shown:

-
Click Sign out in the Profile menu to logout from Spatial Studio.
Note, this will also log you out from any other application that is running on IDCS.