- Make sure all the apps have been deployed to Azure and integrated with Azure APIM. Detailed deployment instructions can be found at this document.
- You have an account on Atlassian Jira.
- If you don't have one, create it. Then, get the API token from your account settings.
- Your Atlassian instance name has been stored as GitHub secret, in the name of
ATLASSIAN_INSTANCE_NAME
.
-
Make sure
BASIC-AUTH
on API Management disables the following options:subscription required
-
Make sure
BASIC-AUTH
on API Management selects the following options:- User authorization:
None
- User authorization:
-
Export OpenAPI v2 (JSON) from
BASIC-AUTH
on API Management with the filename ofapim-swagger-basicauth.json
. -
Update the OpenAPI document by replacing both "securityDefinitions" and "security" attributes to allow basic auth:
{ "swagger": "2.0", ... // Replace both "securityDefinitions" and "security" attributes: "securityDefinitions": { "apiKeyHeader": { "type": "apiKey", "name": "Ocp-Apim-Subscription-Key", "in": "header" }, "apiKeyQuery": { "type": "apiKey", "name": "subscription-key", "in": "query" } }, "security": [ { "apiKeyHeader": [] }, { "apiKeyQuery": [] } ], // with these ones: "securityDefinitions": { "basic_auth": { "type": "basic" } }, "security": [ { "basic_auth": [] } ], ... }
-
Create a new custom connector on either Power Apps or Power Platform by importing the OpenAPI file.
- Connector name:
Basic Key Auth
- Connector name:
-
Make sure the authentication type.
- Authentication type:
Basic authentication
- Parameter label:
username
andpassword
- Authentication type:
-
Remove all operations except
Profile
. -
Create the connector.
-
Create a new connection by entering your Jira username and password. Your username will be your email address and password will be the API token.
-
Test the connector directly on the connector, a Power Apps app or a Power Automate workflow.