Is there a good way in trigger.io to handle OAuth?

In my case, I would have a direct url with a custom url scheme like MyApp: // OAuth

So, first I will go to my login url and then I need to register an event handler to change the location to check if it matches my redirected URL.

+7
source share
1 answer

Yes, we have an example of how to handle oauth2

Using forge.tabs.openWithOptions , you can specify the URL to open in the child browser, and the monitoring template to run to close and return the parameters. That way, you can specify redirect_url to match this pattern.

Update: if you want to use Facebook for authentication, we have now integrated our own Facebook SDK so that you can authenticate using the forge.facebook module: http://docs.trigger.io/en/v1.4/modules/facebook. html # modules-facebook

+4
source

All Articles