How to Create an JIRA App to be compatible with OAuth2 #879
Unanswered
christianarty
asked this question in
General
Replies: 1 comment
-
|
Note, just edited this post today to include more scopes for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For the
jira-clito use the Cloud OAuth solution, you must create a JIRA App, with the appropriate scopes and matching callback url for it to work properly.Steps
Creating a JIRA OAuth 2.0 App
OAuth 2.0 IntegrationappEnabling OAuth 2.0 for your app
Authorization, should land on this page below:Addfor theOAuth 2.0 (3LO)Authorization type, it should then prompt you for a callback url:The default callback url for this in the
jira-cliishttp://localhost:9876/callback. You should use this but if you want the server to run at a different url, feel free to change it but make sure the change is reflected when you runjira initSave ChangesAdding the proper scopes to your app
Permissionstab on the side panel, should end up here:The minimum required scopes to enable are these:
All of these exist on the
JIRA APIscope.Addfor theJIRA APIscope and then configure to add the scopes.Edit Scopesand add the scopes detailed above and saveNote
Everything except for
read:jira-user,read:jira-work,write:jira-workscopes are granular scopes, so you need to go to another tab to enable it.Your JIRA App should be ready. The only thing to note down is the
Client IDandClient Secret. These values are unique to your app.Get your Client ID and Secret
Settingstab on the left paneljira-cliasks for these values when you runjira initBeta Was this translation helpful? Give feedback.
All reactions