Hello Developers,
I’m developing a Monday app with a custom object view.
This is the kind of app that can be selected in the left navigation, and the entire view is served by the app in an iframe.
I’m implementing the OAuth flow to obtain the access token which the app uses on the backend to call the Monday API.
The OAuth flow works in all desktop browsers except Safari.
Let me show you the redirect/page flows in a working case and in Safari’s case.
All desktop browsers except Safari
Customer chooses the app in the left navigation
https://custom-object-app.com/?sessionToken=SESSION_TOKEN redirects to /oauth/authorize
(HTTP 302)
Our app starts the OAuth flow
Redirects to
https://auth.monday.com/oauth/authorize?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&state=STATE
(HTTP 302)
Monday receives the OAuth request, and redirects to the Scope confirmation page
Redirects to
https://our-subdomain.monday.com/oauth2/authorize?oauth_payload_token=OAUTH_PAYLOAD_TOKEN
(HTTP 302)
Now let me show what happens in desktop Safari.
Desktop Safari OAuth flow
Custom chooses the app in the left navigation.
Same as above in 1)
Our app starts the OAuth flow
Same as above in 2)
Monday receives the OAuth request, and redirects to a Login page
Redirects to
https://auth.monday.com/login?force_existing_account=true&oauth_payload_token=OAUTH_PAYLOAD_TOKEN
Please notice the different Monday URL and the “force_existing_account” query parameter Monday appends to the URL of the last request.
How can the Safari flow be fixed?
Could you please help?
Thanks, cheers:
Csaba