I followed the documentation links provided in your reply. I created a rest api route for “/installed” hook. After that I tried to install the app, in the handshake call I saw the user_account_id=xxxxxx in the query string. I thoroughly checked the handshake call but didn’t find the security context/shared secret as mentioned in one of the documented page:
“When an administrator installs the app in an Atlassian cloud instance, Connect initiates an “installation handshake”: it invokes the endpoint, passing a security context. You must then store this security context for future use.”
Not sure where I’m doing wrong. Below is my app descriptor content.
{
"name": "My App",
"description": "",
"key": "com.example.myapp2",
"baseUrl": "https://1576-122-160-84-18.ngrok.io",
"vendor": {
"name": "My App",
"url": "https://example.com/"
},
"authentication": {
"type": "jwt"
},
"lifecycle": {
"installed": "/api/v1/lifecycle/installed"
},
"scopes": ["READ", "WRITE", "DELETE", "ACT_AS_USER", "ADMIN"],
"apiVersion": 1,
"modules": {
"generalPages": [
{
"url": "/index?pId=${project.id}&pKey=${project.key}",
"key": "my-app-overview",
"icon": {
"url": "/images/favicon.jpg"
},
"location": "system.top.navigation.bar",
"name": {
"value": "My App"
}
}
],
"jiraIssueContents": [
{
"icon": {
"url": "/images/favicon.jpg"
},
"target": {
"type": "web_panel",
"url": "/Issue?pId=${project.id}&pKey=${project.key}&iKey=${issue.key}"
},
"tooltip": {
"value": "My App"
},
"name": {
"value": "My App"
},
"key": "my-app-jira-issue-panel"
}
]
}
}