I am trying to switch from Insight application to the Jira Cloud Assets management. I am facing some issues while trying to access Jira Assets API with a generated access token via API.
The flow would be:
1. Create OAuth2.0 (3LO) credentials to be used by user server application (via REST)
2. Add full access to jira service desk/assets
3. Create the access token to https://api.atlassian.com/oauth/token using client_credentials grant
type
4. Send requests to jira service desk/assets API https://developer.atlassian.com/cloud/assets/rest/api-group-aql/ using bearer token created at 3.
I receive HTLM respose and a status code 401.
Using personal generated access token works with basic authentication, but I would really like to use the OAuth2.0 flow to gain access to these APIs.
Can anyone let me know if is there anyway to access assets API using Oauth2.0 flow?
We are currently implementing OAuth 2.0 for the External Imports Flow. The current use case of External Imports is outlined here Assets external imports workflow. We will also continue to look into implementing OAuth 2.0 for all the REST APIs in the future.
At the moment basic authentication is still the way to go with REST APIs.