Enabling Report Generation and Printing Using Web Communication with OAuth Service
To generate and print reports using SOAP web service communication with OAuth, create a confidential app in the Oracle Identity Cloud Service.
- Sign in to the Oracle Identity Cloud Service.
- Navigate to Identity and Security > Domains.
- On the Domain page, select Integrated applications. This page is where you'll add an OAuth confidential client application.
- Select Add application.
- On the next page, select Confidential Application and select Launch workflow.
- On the Add Confidential Application page, provide a unique application Name and a Description.
- Select Submit. A new confidential application is created. On the new application page, you'll configure OAuth.
- Select the OAuth configuration tab.
- Select Edit OAuth configuration.
- Select the Configure this application as a client now option.
- Select the JWT Assertion option.
- Generate the certificate from your system using the
command:
openssl req -newkey rsa:4096 -subj "/CN=otm-oac-service" -x509 -sha256 -days 365 -nodes -out "./jwt-signing.crt" -keyout "./jwt-signing.key - Scroll down and import the certificate generated in the prerequisite step
above.Note:
For the signing algorithm RS256, the certificate and the key generated using the command above will expire after 365 days. You'll have to regenerate the certificate and the key once they expire.
- Add a certificate, Alias.
- Select Import Certificate.
- Once the certificate is uploaded, Select Import.
- Select Submit to complete the OAuth.
- Turn on Add Resources.
- Select Add scopes.
- In Add scope, select the required scope. You can narrow down
the search result to the Oracle Analytics Cloud resource that's mapped to the OTM
instance by entering a search string consisting of the prefix ANALYTICSINST and part
of the OAC Enterprise App Names (you can get this from the OTM
application > Settings and Actions > OAC Enterprise App Names). For
example, if the OAC Enterprise App Names is
<Host Name>_APPID, the search string will beANALYTICSINST_<Host_Name>. - You can add a Primary audience for the access token of your confidential application. To get it, go to Business Process Automation > Reporting > Oracle Analytics Publisher. Take the part of the URL till .com.
- Select Submit.
- Keep these details accessible, as you’ll need them when setting up the external system in OTM.
- In the Security tab which is in parallel with Integrated applications, check in Trusted partner certificates whether the certificate you imported is present. If not, add it with the same Alias (KID).
- In OTM, create an External System using the following
values:
- User Name: The Oracle Identity Cloud Service user name for Oracle Analytics Cloud.
- Authentication Type: OAuth 2.0 - JWT Bearer Token
- URL: The Primary audience appended with /xmlpserver/services/v2.
- Authorization Service Authentication Type: Private Key JWT
- Client Key ID: the Alias used in Oracle Identity Cloud Service
- Signing Certificate: the certificate used in Oracle Identity Cloud Service
- Scope: the scope added in Oracle Identity Cloud Service
- Audience: Oracle Identity Cloud ServiceURL (https://identity.oraclecloud.com/)
- In OTM, create a Report System using the Report System Type of “BI Publisher SOAP Web Service with OAuth”.