Salesforce FedID
Before You Begin
Introduction
This document describes how to configure Oracle Identity Cloud Service to provide Single Sign-On (SSO) for Salesforce using SAML.
About Salesforce
Salesforce is a Software-as-a-Service (SaaS) solution built on the power of App Cloud, so users can run their business on any device, easily build new customer apps, or integrate with existing back office systems. It provides companies with an interface for case management and task management, and a system for automatically routing and escalating important events. Salesforce comprises Salesforce Application, Salesforce Work.com, and Salesforce Chatter for collaboration.
After integrating Salesforce with Oracle Identity Cloud Service:
- Users can access Salesforce using their Oracle Identity Cloud Service login credentials.
- Users can start Salesforce from Oracle Identity Cloud Service My Apps console.
- Admins can assign and revoke user access to the Salesforce app using the Oracle Identity Cloud Service administration console.
What Do You Need?
- An Oracle Identity Cloud Service account with authorization rights to manage apps and users (Identity Domain Administrator or Application Administrator).
- A Salesforce account with authorization rights to configure federated authentication.
- Make sure that the email ID of each user in Salesforce matches the primary email ID of the Oracle Identity Cloud Service account.
- A downloaded Identity Provider metadata file. Use the following URL to access the metadata:
https://<IDCS-Service-Instance>.identity.oraclecloud.com/fed/v1/metadata
. Use this file later during the Salesforce configuration in the "Configuring SSO for Salesforce" section.
Configuring SSO for Salesforce
Use this section to set up the domain, set up the Federation ID for the Salesforce user, and configure SSO for Salesforce.
Setting Up the Domain in Salesforce
Access Salesforce as an administrator using the URL:
https://login.salesforce.com
.Click Setup.
From the left navigation menu, expand Domain Management in the Administer section, and then select My Domain. The My Domain page appears.
In the Choose Your Domain section, enter the Domain Name, and then click Check Availability.
If the domain name is available, click Register Domain.
After registering the domain, Salesforce sends you an email. Click the link in the email to activate the Salesforce-created domain.
Log in with your domain URL to test and deploy the domain.
Setting Up the Federation ID for the Salesforce User
Access Salesforce as an administrator using the URL:
https://login.salesforce.com
.Click Setup.
From the left navigation menu, expand Manage Users in the Administer section, and then select Users.
Click the Edit link next to the administrator user name. The User Edit window appears.
In the Single Sign On Information section, enter or paste the user's email ID into the Federation ID text box, and then click Save.
Configuring SSO for Salesforce
Access Salesforce as an administrator using the URL:
https://login.salesforce.com
.Click Setup.
From the left navigation menu, expand Security Controls in the Administer section, and then select Single Sign-On Settings.
On the Single Sign-On Settings page, click Edit.
In the Federated Single Sign-On Using SAML section, select the SAML Enabled check box, and then click Save.
In the SAML Single Sign-On Settings section, click New from Metadata File.
Click Choose File, and then upload the metadata that you previously downloaded. See the "What Do You Need" section.
Click Create.
Use the table to update the federated authentication attributes, and then click Save.
This table lists the mandatory federated authentication attributes that you must set to complete the SSO configuration. Attribute Value Name Enter the identity provider name. API Name Enter a name for the API. SAML Identity Type Make sure that Assertion contains the Federation ID from the User object is selected.
Configuring the Salesforce App in Oracle Identity Cloud Service
Use this section to obtain the Organization ID and Domain Name, register and activate the Salesforce app, and then assign users to the app.
Obtaining the Organization ID and Domain Name from Salesforce
An organization ID and a domain name are required before you can register and activate the Salesforce app. You obtain these values from Salesforce.
From the Salesforce home page, select Setup.
From the left navigation menu, expand Security Controls in the Administer section, and then select Single Sign-On Settings. The Single Sign-On Settings page appears.
In the SAML Single Sign-On Settings section, click the name that you provided for your SAML Single Sign-On Settings. The SAML configuration page appears.
In the Endpoints section, copy the domain name and the organization ID from the Salesforce Login URL:
https://<Domain_Name>.my.salesforce.com?so=<Organization_ID>
. The domain name appears at the beginning and the organization ID appears at the end of the URL.
Registering and Activating the Salesforce App
Access the Oracle Identity Cloud Service administration console, select Applications, and then click Add.
Click App Catalog.
Search for
Salesforce
, and then click Add.In the App Details section, enter the Salesforce Organization ID and Domain Name, and then click Next.
Note: These are the values that you obtained while performing the steps in the previous section.
Click Finish. Oracle Identity Cloud Service displays a confirmation message.
Click Activate, and then click Activate Application. Oracle Identity Cloud Service displays a confirmation message.
Assigning Users to the Salesforce App
On the Salesforce app page in Oracle Identity Cloud Service, select Users, and then click Assign. The Assign Users window appears.
Select users that you want to assign to Salesforce, and then click OK. Oracle Identity Cloud Service displays a confirmation message stating that the Salesforce app is assigned to the users that you selected.
Verifying the Integration
Use this section to verify that SSO works when initiated from Oracle Identity Cloud Service (IdP initiated SSO) and Salesforce (SP initiated SSO).
Verifying Identity Provider Initiated SSO from Oracle Identity Cloud Service
Access the Oracle Identity Cloud Service My Profile console using the URL:
https://<IDCS-Service-Instance>.identity.oraclecloud.com/ui/v1/myconsole
.Log in using credentials for a user that is assigned to the Salesforce app. Oracle Identity Cloud Service displays a shortcut to Salesforce under (Salesforce Application, Salesforce Chatter, and Salesforce Work.com) My Apps.
Click Salesforce Application. The Salesforce home page appears.
Locate the user name at the top of the page to confirm that the user that is logged in is the same for both Salesforce and Oracle Identity Cloud Service.
Repeat step 3 for the Salesforce Chatter app and the Salesforce Work.com app.
This confirms that SSO that is initiated from Oracle Identity Cloud Service works.
Verifying Service Provider Initiated SSO from Salesforce
Access Salesforce using the URL:
https://login.salesforce.com
.On the login page, click Use Custom Domain, and then click the identity provider name. You are redirected to the Oracle Identity Cloud Service login page.
Log in using credentials for a user that is assigned to the Salesforce app. The Salesforce home page appears.
Locate the user name at the top of the page to confirm that the user that is logged in is the same for both Salesforce and Oracle Identity Cloud Service.
This confirms that SSO that is initiated from Salesforce works.
Troubleshooting
Use this section to locate solutions to common integration issues.
Known Issues
Salesforce displays the message, “Single Sign-On Error".
Cause: The email attribute sent by Oracle Identity Cloud Service during SSO doesn't match any existing user in Salesforce.
Solution: Ensure that the user that you assign to the Salesforce app has an account in both Oracle Identity Cloud Service and Salesforce with the same email address.
Unknown Issues
For unknown issues, contact Oracle Support:
Go to https://support.oracle.com.
Select Cloud Support, and then sign in with your support credentials.
In the Cloud Dashboard, confirm that there are no planned outages in Oracle Identity Cloud Service, and then click Create Service Request.
Select Oracle Identity Cloud Service as the service type.
Complete your service request.