Test the Application
After you integrate a web application with Oracle Identity Cloud Service, you can test the application. To test a web application, you register the application, set up the application, import the Oracle Identity Cloud Service certificate into the application server, and then run the application.
Before You Begin
-
Experience developing in Java.
-
Access to Oracle Identity Cloud Service with authorization to manage applications. You must be an Identity Domain Administrator, a Security Administrator, or an Application Administrator.
-
Installed NetBeans IDE 8.1 (use the All or Java Platform, Enterprise Edition (Java EE) bundle).
-
Access to GitHub: https://github.com/oracle/idm-samples.
-
Cloned or downloaded the idm-samples repository on GitHub.
The Customer Quotes (sample code) application is provided “AS IS” with no express or implied warranty for accuracy or accessibility. The sample code is intended to demonstrate the basic integration between Oracle Identity Cloud Service and custom applications and does not represent, by any means, the recommended approach nor is it intended to be used in development or production environments.
Register the Application
The following steps show how to register the example Customer Quotes application in Oracle Identity Cloud Service. As part of the application registration process, you configure and activate the web application in Oracle Identity Cloud Service. During configuration, you define how Oracle Identity Cloud Service integrates with your web application.
- In the Identity Cloud Service console, expand the Navigation Drawer, click Applications, and then click Add.
- Select Trusted Application.
- Enter the following information, and then click Next.
- Name: Customer Quotes
- Description: Web application that works as a hub for all your quotations.
- Select Configure this application as a client now.
- In the Authorization section, select Authorization Code, and then enter the following information:
- Redirect URL: https://localhost:8181/cquotes/return
- Logout URL: https://localhost:8181/cquotes/logout
- Post Logout Redirect URL: https://localhost:8181/cquotes
- On the panes that follow, click Next until you reach the last pane, and then click Finish.
- Record the values for the Client ID and the Client Secret, and then click Close.
- Click Activate, and then click Activate Application.
Set Up the Application
After you register the web application, configure the web application to connect with Oracle Identity Cloud Service during authentication.
Import the Oracle Identity Cloud Service Certificate into the Application Server
Export the SSL certificate from the Oracle Identity Cloud Service UI and import it into NetBeans GlassFish Server trust store. This step is required for the custom web application to communicate with Oracle Identity Cloud Service by using HTTPS.
Run the Application
After you import the Oracle Identity Cloud Service Certificate into Oracle GlassFish Server Run the web application by building it in NetBeans.
An internet connection to run the cquotes build.
No proxy settings preventing the internet connection.
Disconnected from VPN.