Hi Experts,
I am trying to create a blueprint page in Confluence Cloud. There is no information about the clientKey, clientInfo in “req” sent by Create Dialog. Also no ‘lic’ information in the query, this is stopping us to get the licensing information of the customer. Code is from standard blueprint example for confluence cloud. I haven’t seen any threads regarding this so creating one.
Please help if I am missing anything here.
{
"key": "blueprint-key-confluence-cloud",
"name": "Blueprint for Atlassian Cloud",
"description": "Creates a Blueprint",
"vendor": {
"name": "Company Name",
"url": "Company URL"
},
"baseUrl": "{{localBaseUrl}}",
"links": {
"self": "{{localBaseUrl}}/atlassian-connect.json",
"homepage": "{{localBaseUrl}}/atlassian-connect.json"
},
"authentication": {
"type": "jwt"
},
"lifecycle": {
"installed": "/installed"
},
"scopes": [
"READ",
"WRITE"
],
"modules": {
"blueprints": [
{
"template": {
"url": "/blueprint.xml"
},
"createResult": "edit",
"key": "desktop-blueprint",
"name": {
"value": "Desktop blueprint"
}
}
]
}
}
module.exports = function (app, addon) {
// Root route. This route will serve the `atlassian-connect.json` unless the
// documentation url inside `atlassian-connect.json` is set
app.get('/', function (req, res) {
res.format({
// If the request content-type is text-html, it will decide which to serve up
'text/html': function () {
res.redirect('/atlassian-connect.json');
},
// This logic is here to make sure that the `atlassian-connect.json` is always
// served up when requested by the host
'application/json': function () {
res.redirect('/atlassian-connect.json');
}
});
});
// Serve blueprint template
app.get('/blueprint.xml', function (req, res) {
console.log(req);
res.set('Content-Type', 'text/xml');
res.send(fs.readFileSync('./blueprint.xml'));
});
};
following is req log I see.
body: {},
secret: undefined,
cookies: [Object: null prototype] {},
signedCookies: [Object: null prototype] {},
context: {
http: null,
title: 'Blueprint for Atlassian Cloud',
addonKey: 'blueprint-key-confluence-cloud',
clientKey: '',
token: '',
license: undefined,
localBaseUrl: 'https://762880605966.ngrok.io/',
hostBaseUrl: '',
hostUrl: '',
hostStylesheetUrl: '/atlassian-connect/all-debug.css',
hostScriptUrl: 'https://connect-cdn.atl-paas.net/all.js'
},
Thanks in advance!
Best regards,
Pavan G