FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
09-19-2024 02:15 PM
Hi guys, am developing a snap which is basically a webapp serving some files and getting protected using the jwt... at some point my menu.sidebar looks like this:
"menus": {
"sidebar": [
{
"id": "my-id",
"title": "Title1",
"icon": "my-icon",
"link": "/my-id?token=${bearertoken}",
"permissions": [...]
}
]...
and so far this is working fine since my link is getting created dynamically replacing the 'bearertoken' place-holder with the 'jwt' but then I decided to add also an "overview" using the same approach but in this case then the link is getting invalid since the replacement is not working, this is how my json looks like:
"overview": [
{
"id": "my-id-overview",
"title": "Title overview",
"icon": "my-icon",
"link": "/my-id/token=${bearertoken}",
"permissions": [...]
},...
this is resulting in an URL like: https://<foo>/<bar>?token=${bearertoken}
am I using the feature incorrectly? or there is another way to do it?
Thanks in advance
Best regards
José
09-19-2024 03:22 PM - edited 09-19-2024 03:24 PM
Hi @Jipr311 ,
Might this just be a typo? It looks like you ommitted the query string seperator.
Try this instead and let me know!
"overview": [
{
"id": "my-id-overview",
"title": "Title overview",
"icon": "my-icon",
"link": "/my-id?token=${bearertoken}",
"permissions": [...]
},...
Example for reference: sdk-py-webserver
09-20-2024 08:43 AM
Hi Sgilk,
sorry it was a typo from me trying to obfuscate the json...
I actually tried with following json (including the query ?)
"overview": [ { "id": "my-id-overview", "title": "Title overview", "icon": "my-icon", "link": "/my-id?token=${bearertoken}", "permissions": [...] },...
with no results
09-26-2024 02:59 PM
Hi José,
which version of ctrlX OS are you using?
Best regards,
Nick
4 weeks ago
Hi Nick,
this is the info I can provide
Best Regards,
José