Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Hosting server for custom Power-Ups

William Zhang April 14, 2019

Hi, 

I am writing custom Power-Ups for my company. (I am using Trello Enterprise) 

Due to security concern, I can't host my code in public hosting sites like Glitch or Github Pages(public).  So instead I put my code in Github Pages(Enterprise),  and put the Power-Up iframe connector url as the Github Pages(Enterprise) URL. 

But it seems Trello doesn't load from Github Pages(Enterprise) URL. I put the same code in Glitch or Github Pages(public), there is no problem.

I need to log in with SSO to Github Pages(Enterprise), is it the reason for the problem?

And any other solution if I need to keep the code of Power_ups confidential?

Thank you!

2 answers

0 votes
marc -Collabello--Phase Locked-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 15, 2019

@William ZhangHow you describe your Power-Up implies that the Power-Up itself has no server functionality?

If that is so (i.e. the Power-Up is JavaScript based), one possibility is to use an obfuscated long url (similar to how Trello handles attachments) to serve the Power-Up from your own server.

If your Power-Up had server functionality, you could require a some kind of login.

0 votes
Iain Dooley
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 15, 2019

@William Zhang hey, if the page is sitting behind a login, then I'd assume that's the problem. One option would be to create your iframe connector HTML using a Google Apps Script deployed as a web app.

I use Apps Script deployed as a web app to create a "bot user" and register webhooks and respond to POST requests, but you could use the same method to respond to GET requests and load some HTML that would allow Trello to communicate with your app.

You could then use the Trellinator library to manipulate Trello from within Google Apps Script:

https://trello.com/integrations/#trellinator

You will need to modify the doGet() method to serve up your HTML and then figure out how to make it respond correctly to the postMessage used by Trello to communicate with your app, but all the other Trellinator functions should Just Work(TM) so long as you have an API key/token configured in the Configuration tab of your spreadsheet.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events