- Mobile Plugin Framework
- IDCS Configuration for OAuth Authorization Code Flow
IDCS Configuration for OAuth Authorization Code Flow
The setup aims to create an integrated application in IDCS that obtains an access token (JWT) using an authorization code to make authorized requests to REST APIs accessible through the application.
- Navigate to the Identity Domain Configuration in IDCS.
- Select the Integrated Applications section from the left pane.
-
Click Add application at the top of the page.
The Add application dialog box appears.
-
In the Add application dialog box, select Mobile
Application and then click Launch
Workflow. The Add Mobile Application page
appears.
- Name your application and click Next to proceed to the Configure
OAuth step.
-
In the Authorization section, enable the
Authorization code grant type. Uncheck other grant
types unless necessary.
Note: Enable the Refresh Token grant type if the plugin uses refresh token functionality.
- In the Redirect URL field, enter the URL for redirection to your Field
Service instance, appended with
/plugin-auth-redirect/
For example:https://<your-field-service-instance-domain>/plugin-auth-redirect/
. - In the Allowed Operations section, enable the On behalf of checkbox. This allows the client application to access user-endpoints based on their privileges.
- In the Token Issuance Policy section, select Add resources if you want your application to access the APIs of other applications.
- In the Resources section, click Add Scope. A list of applications appears in the Add scope dialog box.
-
Select Fusion Applications Cloud Service and then click
Add.
The selected application is added to the Resource scope.
Note: If Fusion Applications Cloud Service is not listed, it means Fusion Service is not linked with the IDCS domain. You need to create the application in the domain linked to Fusion Service. - Click Finish. The newly created application is now listed on the Integrated Applications page and its status is Inactive.
-
Click the Activate icon to activate the application.
Once activated, your application appears as follows: