OAuth Authentication
Published Date: 28-08-2024
Read Time:
Configure Remote Site Settings
-
Navigate to the ‘Setup’ page from your Salesforce instance. In the ‘Quick Find’ box, search for ‘Remote Site Settings’ and click on it from the search results.
Create a Remote Site for the Jira Instance
-
In this step, you will create a Remote Site for your Jira instance to establish a secure connection between Salesforce and Jira.
-
Remote Site Name: Enter a descriptive name for the Jira Remote Site.
-
Remote Site URL: This URL is crucial for enabling communication between Salesforce and Jira.
Create a Remote Site for the Salesforce Instance
-
In this step, you will create another remote site for your Salesforce instance to facilitate secure communication, authentication, and seamless integration within the Salesforce environment.
-
Remote Site Name: Provide a meaningful name for the Salesforce Remote Site.
-
Remote Site URL: Enter the URL of your Salesforce instance.
Create Application Links on the Jira Side
-
Log into your Jira system as a user with 'Jira Administrator' permissions.
-
Click on the Gear (settings) icon.
-
Under the Settings drop-down menu, click ‘System’.
-
Fill in the details like ‘Application Name’ and select ‘Generic Application’ as the ‘Application Type’. Click ‘Continue’.
-
Next is setting up the Incoming Authentication. Click ‘Edit’ (as highlighted in the screenshot below).
-
Insert the public key in the ‘Public Key’ field.
Note:
Please check this reference Document for Public/Private keys.
(Please save the Private key also as it will be required later in Step 20)
-
Add your ‘Consumer Callback URL’. The URL should be in the following format. SalesforceOrgURL+’/apex/Grz_Sf__AuthPage?status=’+SalesforceOrgID+’&instanceUrl=’+Jira instance Url
E.g.
https://grazitti3e-dev-ed.my.salesforce.com/apex/Grz_Sf__AuthPage?Status=00D5g000004FBtEEAW&instanceURL=https://sinergify.atlassian.net
-
Go to the Authentication tab of the Admin Settings (Sinergify app) and select the ‘OAuth’ tab and fill in the details below.
-
Jira Name: Provide your Jira instance Name.
-
Jira URL: Provide your Jira instance URL.
-
Call back URL: Enter the Call back URL in the SalesforceOrgURL+’/apex/Grz_Sf__AuthPage?status=’+SalesforceOrgID+’&instanceUrl=’+Jira instance Url format.
-
Consumer Key: Enter the Consumer key used in the Application link.
-
Private Key: Enter the Private key generated in step 17 above.
-
Activate Content Header Parameter: Enable the toggle button to authenticate with Google SSO, facilitating single sign-on using Google credentials.
- A consumer key must be one word only, as Jira does not support more than one word in a consumer key. See the reference Document.
- Refresh Token: A refresh token helps you re-validate your connection. It is particularly useful when the token expires or is revoked on the Jira side. This can also be used to authenticate the Salesforce side with a different Jira Integration user if needed.
Key Consideration Points.
-
A Pop-up will appear on your screen. Log in using your Jira credentials.
Note. Ensure that pop-ups are not blocked.
-
After logging in, a new window will appear asking for the ‘Read’ and ‘Write’ permissions. Click ‘Allow’ to share access token else click ‘Deny’.
-
If allowed, the access token will be shared and saved automatically in Salesforce and the admin page will reload automatically.
Feedback


