For example, the string 'fred:fred' encodes to 'ZnJlZDpmcmVk' in base64, so you would make the request as follows. Supply an 'Authorization' header with content 'Basic ' followed by the encoded string. Unfortunately I still don't see the issues on my Jira when I do API calls but I hope this helps you get closer to solving your problem. To do this you need to perform the following steps: Build a string of the form username:password. Turning off "Generate Authorization Header" helped for my API calls to not return 401 during my tests. Provider in my Named credential and made sure to keep Scope empty so it would use the default scope in the Auth Provider. My default scopes were: read:jira-work manage:jira-project manage:jira-configuration read:jira-user write:jira-work manage:jira-data-provide offline_accessĪlso I made sure that the callback url in my Jira app was the same callback url in the Auth. I was able to authenticate my OAuth 2.0 with the following configuration.įor the Auth. Once you save you r configuration, you can proceed to configure your mail server to use OAuth 2.0 as the authentication method. Then I get a different error as shown below. You need to provide the redirect URL that your application generated at the service provider’s site. If I generate my client id and secret from the below link JIRA Documentation is not at all helpful. To do this you need to perform the following steps: Build a string of the form username:password Base64 encode the string Supply an 'Authorization' header with content 'Basic ' followed by the encoded string. I have generated client id secret by clicking on OAuth credentials beta and this doesn't seem the right way to generate client id and secret as it is in beta and provides only limited access. I would highly appreciate if someone would help me to generate client id secret from JIRA other then generating the same by clicking on generate OAuth credentials button on Jira as this has limited access and also I would be very grateful if someone also helps me with Authorization Endpoint URL and Token End Point URLĪnd when I save the named credentials I get below error In one of my unsuccessful attempts, I tried to generate OAuth credentials (currently in beta in Jira) and used the same in AUTH provider in salesforce but still, when I save named credentials I get identity provider error and also I am not sure on what exactly I need to pass for Authorization Endpoint URL and Token End Point URL def main (repo, project): jira JIRA (JIRAURL, basicauth JIRAUSERNAME, JIRAPASSWORD) print ('Connection to JIRA successfully established.') print ('Fetching list of matching issues. I am banging my head against the wall from the last couple of weeks to just set up the authentication between JIRA cloud and salesforce, I didn't get any proper documentation to create a connected application in Jira to generate client Id and secret so that I can set up an auth provider in salesforce to use it with the named credentials, if I am not following the right path, please feel free to correct me. Download Free Version Desktop Power for Jira Jira Client is a desktop application for day-to-day work with Jira issues.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |