Kindly want to integrate my application with jira using oauth 1.0. After I get the access token I get redirected to "https://lobalmax.atlassian.net/plugins/servlet/oauth/authorize" I would like to know how I can change this authorization url to "http://localhost:8000/api/v1/workspace/6007ff8f4710594c3466d1b1/jira/callback" for example. I look forward to hearing from you. Thanks in advance!
Hi @Сергей
I understand that you are creating a Connect app, but want to utilize OAuth 1.0 within it. Connect apps are not really expected to use OAuth 1.0. There are several different means to authenticating to the REST API of Jira Cloud, but which one you should use will changed depending on the kind of app or integration you are building. There is a good overview of this in Security overview.
We do have a guide for using OAuth 1.0a over in OAuth for REST APIs. But this guide does mention in the "before you begin" section:
- Building a Connect app? If you are building an app that uses Atlassian Connect, authentication is built into the Atlassian Connect libraries. See Security for Connect apps.
- Building a non-Connect integration? If you are building an integration that doesn't use Connect, we recommend that you use OAuth 2.0 authorization code grants (3LO) for apps over other authentication methods, such as basic authentication and OAuth 1.0a. See Security for other integrations.
The use of OAuth 1.0 is really expected for users that are building other integrations outside the Connect or Forge app frameworks.
OAuth 2.0 does have a clear method for setting the callback URL as explained in OAuth 2.0 (3LO) apps.
I hope this helps,
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.