Hi,
Our application currently uses Azure Active Directory for authentication. It’s going be a web application later on where you should be able to sign in using a “Continue with Microsoft” button. Now as Atlassian offers that option on their website as well, I was wondering if I could use Azure AD to authenticate with the Jira REST API. I haven’t found much on the internet or in their documentation covering this topic - maybe I overlooked something. What I’m basically trying to avoid is that the user has to login or gets prompted multiple times before the application can be accessed.
In Azure, the administrator connected the Atlassian Cloud Service, so that the registered app has the appropriate api permission.
When acquiring a token from Azure, the application requests the resource or scope “https://id.atlassian.com/login/user_impersonation” which works fine.
However, if I’m now trying to call the Jira Rest API with the generated token the response is:
{
"message": "Client must be authenticated to access this resource.",
"status-code": 401
}
Obviously, something is wrong with the token. I already tried different scopes but I couldn’t come up with a solution. Is this even possible or does Atlassian simply not support authentication over 3rd party identity providers?
Thanks for any help in advance!