How to set 2 urls into callback_url option?

I want make workflow:

1) User clicks install app

2) My app does Oauth Flow

3) I redirect user to manapy_app_url, where user pass registration in my system and add snippet on his site.

4) After configuration, i want redirect user to ' publish' URl, where he willl able to publish site and activate snippet.

__ I don't know how to do it

{ "manifest": "1", "version": "1.1.9", "callback_url": "https://dev.test.com/api/developer.dev/web/integration/weebly/auth", "oauth_final_destination": "manage", "manage_app_url" : "https://dev.test.com/api/developer.dev/web/integration/weebly/manage", "scopes": ["read:site", "write:site"], "locale": { "default": "en-us", "supported": ["en-us"] } }

With this manifest i can do 3 step, but final redirect after settings of my app will be to callback_url":"https://www.weebly.com/app-center/myApp", how can i redirect user to publish url or make auto-publish site adter adding snippet?

The only solution i saw now, is to make hard_code link to "https://www.weebly.com/editor/main.php"

i use "oauth_final_destination": "manage", to show settings of app afrer OAUTH Flow, but if i set such, the JWT token will have callback_url to https://www.weebly.com/app-center/myApp. I need, that JWT token will have callback_url to 'publish'

1,003 Views
Message 1 of 2
Report
1 REPLY 1

Might you be able to use the `redirect_uri` set to the manage URL during the `Redirect Back to Weebly for an Authorization Code` phase and then set `oauth_final_destination` to `publish`? This would present the user with a modal asking them to publish the site once the app is fully installed. For more info, see https://dev.weebly.com/pf_apps_authorize_and_install.html#redirect-back-to-weebly-for-an-authorizati...
898 Views
Message 2 of 2
Report