Customer Quotes is a sample web application used to test the Oracle Identity Cloud Service integration with OpenID Connect and OAuth2.
This 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 or is intended to be used in development or productions environments.
- Oracle Identity Cloud Service: Integrating a Custom Client Application. In this tutorial, you experiment the OpenID Connect and OAuth2 integrations.
- Oracle Identity Cloud Service: Integrating a Resource Server Application. In this tutorial, you extend the Customer Quote's OAuth2 integration to integrate with
Sales Insights
, another sample application.
- Experience as Java Developer
- Java JDK 8 installed and available via your Operating System
PATH
. - A Java EE IDE with Maven. In our tutorials, we use Netbeans 8.1 for Windows.
- A Java EE Application Server. In our tutorials, we use the Glassfish 4.1.1 server (embedded with Netbeans).
- Access to Oracle Identity Cloud Service with authorization rights to manage Applications (Identity Domain Administrator, Security Administrator, or Application Administrator)
- Create and activate a Web Application in Oracle Identity Cloud Service with the Authorization code grant type.
- Copy the application client id and client secret.
- Access the Oracle Identity Cloud Service UI.
- Export the HTTPS certificate as Base-64 encoded X.509 (.CER).
- Import the certificate into your Application Server trust keystore. To import a certificate to the default keystore in Glassfish, you can use the
keytool
command as follows:
cd "C:\Users\adm\AppData\Roaming\NetBeans\8.1\config\GF_4.1.1\domain1\config"
keytool -import -keystore cacerts.jks -trustcacerts -file "C:\temp\idcs.cer" -storepass changeit
- Download and extract the cquotes application.
- In
ClientConfig.java
, update theCLIENT_ID
, theCLIENT_SECRET
, and theIDCS_URL
with values according to your Oracle Identity Cloud Service instance. - Rebuild and Launch the cquotes application.
- Access the application (in Glassfish:
https://localhost:8181/cquotes
)
Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
You may not use the identified files except in compliance with the Universal Permissive License (UPL), Version 1.0 (the "License.")
You may obtain a copy of the License at https://opensource.org/licenses/UPL.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.