Add authentication to Custom Intents in iOS (Shortcuts)

I am currently working on an iOS app that integrates with Shortcuts.

The app itself has authentication built in, and users are required to sign into the app before they can make use of the Actions that our app provides.

During our research to determine best practises using Shortcuts, we discovered that Atlassian's Trello product makes use of an authentication modal accessed via the action. This then loads an OAuth web page that allows users to authenticate with Shortcuts to retrieve data before they've signed into the native app.

My question is: how can we replicate this behaviour? I have scoured Apple Developer forums, StackOverflow and the rest of the web for clues but I'm struggling to find anything.

I have also posted this question to StackOverflow, with a few useful images (I can't seem to embed here): https://stackoverflow.com/questions/65874070/add-authentication-to-custom-intents-in-ios-shortcuts
Answered by Frameworks Engineer in 659331022
Hi,

The Trello actions are actually managed and maintained by the Shortcuts App, as it is a legacy action from the Workflow App. It is not an intent.

I haven't seen your app, but based on patterns I've seen, I would recommend using the .continueInApp intent response code if the user is not currently signed into your app, and allowing the user to sign in there. Once the user is signed into your app, you could have the intent function normally.


Accepted Answer
Hi,

The Trello actions are actually managed and maintained by the Shortcuts App, as it is a legacy action from the Workflow App. It is not an intent.

I haven't seen your app, but based on patterns I've seen, I would recommend using the .continueInApp intent response code if the user is not currently signed into your app, and allowing the user to sign in there. Once the user is signed into your app, you could have the intent function normally.


Add authentication to Custom Intents in iOS (Shortcuts)
 
 
Q