Lead Capture with Single Sign On
Jesse Stephens, Oracle A-Team
This sample demonstrates the following aspects of Oracle Cloud integration.
Information and status pertaining to leads is kept in an ADF application deployed to Java Cloud Service - SaaS Extension. External users of this system are given limited access to Oracle Sales Cloud leads and contacts for updating purposes. These users do not have access to other Oracle Sales Cloud system functions; what appears in menus and navigation is a slimmed-down subset of Oracle Sales Cloud features.
The Java/ADF application is deployed to Java Cloud Service - Saas Extension and also uses Oracle Database Cloud Service (Database Schema) to display additional data. A link to Oracle Sales Cloud is provided so a business user can quickly use the information displayed in the Java Cloud Service - SaaS Extension application to work with Oracle Sales Cloud. Single Sign-On (SSO) is used to allow a user to access the Java Application without having to authenticate with Oracle Sales Cloud again, after being already authenticated with Java Cloud Service - SaaS Extension.
All sample code is provided by Oracle for illustrative purposes only. The objective of this sample is only to demonstrate the goals defined above and may not represent other best practices, functional or technical. These sample code examples have not been thoroughly tested under all conditions. Oracle, therefore, cannot guarantee or imply security, reliability, serviceability, or function of the sample code. All sample code contained herein are provided to you AS IS without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed.
Create a new user or use an existing user that exists in both Oracle Sales Cloud and Java Cloud Service-SaaS Extension. For Java Cloud Service - SaaS Extension, refer to Chapter 7, "Managing Users and Roles" in Getting Started with Oracle Cloud for more details. For Sales Cloud, refer to Chapter 5, "About Oracle Sales Cloud Users", in Securing Oracle Sales Cloud.
A Sales Cloud user needs to be assigned a custom role. This role needs to be created in Sales Cloud. Refer to Chapter 12, "Customizing Security", in Securing Oracle Sales Cloud for details.
Clone the Git repository locally. You can also download the code from OTN to your local working directory and follow the same steps below. However the remaining steps will assume that you are using git.
Run the SQL scripts included in the source code using the SQL command in Oracle Database Cloud Service (Database Schema). For more details about the steps to access the SQL command, refer to the SQL Script section of Creating Data Models in Oracle Database Cloud Service - Database Schema.
git-home/lead-capture-app-sso/DbCS/sql/crTable_LEAD_CAPTURE_SYS_SSO.sql
To confirm script execution, verify that the LEAD_CAPTURE_SYS_SSO
table has been created in the Oracle Database Cloud Service (Database Schema) console.
Use JDeveloper to build the ADF application EAR and deploy it to Java Cloud Service - SaaS Extension:
Create an application user for testing purposes.
Create a test user in Oracle Sales Cloud with the same user ID as the one created in Java Cloud Service - SaaS Extension.
To run the sample:
After being deployed the ADF application for Lead Capture can be opened using this link:
https://your_jcs-sx_url/LeadCaptureSys-ViewLCS-context-root
For more details about this sample and other related samples refer to Oracle Cloud Solutions at https://cloud.oracle.com/developer/solutions
Drop the table and sequence from Oracle Database Cloud Service (Database Schema). You can borrow the two drop statements from the crTable_LEAD_CAPTURE_SYS_SSO.sql
script.
There are no known issues with the sample.
Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved