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?
@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:
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.
@William ZhangHow you describe your Power-Up implies that the Power-Up itself has no server functionality?
If your Power-Up had server functionality, you could require a some kind of login.
Hello Community! My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trello...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events