Single Sign-On into Salesforce with Joomla as OAuth Server
Overview
If you want to login to your Salesforce site using your Joomla username and password, you can simply do it
using our
Joomla OAuth Server plugin. Once you configure the Salesforce with Joomla OAuth Server plugin, you can
login to your
Salesforce application using Joomla credentials. It also allows you to send custom user attributes to your
Salesforce site as per your requirements.
To know more about other features we provide in Joomla OAuth Server plugin, you can click here.
Configuration Steps
Step 1: Install Joomla OAuth Server Plugin
- Login into your Joomla site’s Administrator console.
- From left toggle menu, click on System, then under Install section click on Extensions.
- Now click on Or Browse for file button to locate and install the plugin file downloaded earlier.
- Installation of plugin is successful. Now click on Start Using miniOrange OAuth Server plugin.
- Under the Configure OAuth tab, click on the ADD button.
Step 2: Configure Salesforce
- Login to your SalesForce account.
- Switch to the SalesForce Classic mode from profile menu, and then go to the Setup page.
- In the Quick Find box, enter Auth, and then select Auth Providers.
- Click on New button and Select Provider type as OpenID Connect from dropdown.
- Enter the provider Name, Consumer Key, Consumer Secret, Scope and Endpoints which you have copied from miniOrange OAuth Server plugin.
- Click on Save button to save your configuration.
- Now, You can see the Test-Only Initialization URL. It redirects you to your OpenID provider and asks you to sign in. You’re then asked to authorize your app. After you authorize, you’re redirected to Salesforce.
- Go to the developer account of Salesforce and Configure the Salesforce as an OAuth client using the below details.
Client ID:
You can get the Client ID from Configure OAuth Tab in Joomla OAuth Server
|
Client Secret:
You can get the Client Secret from Configure OAuth Tab in Joomla OAuth
Server
|
Scope:
email profile
|
Authorize Endpoint:
https://< your-Joomla-domain >/index.php
|
Access Token Endpoint:
https://< your-Joomla-domain >/index.php
|
Get User Info Endpoint:
https://< your-Joomla-domain>
/plugins/system/miniorangeoauth/miniorangeoauthserver.php
|
Step 3: Configure Joomla as OAuth Server
- Now go to the Configure OAuth tab, and enter the Client Name and Redirect URL in the respective fields.
- Then click on the Save Client button.
- Under the List of OAuth Client's table, copy the Client ID and Secret of your Client. Go to your OAuth client and paste the Client ID and Secret in the respective fileds.
- Congratulations, you have successfully configured Joomla as your OAuth Server.