Skip to main content

Redirect the user from the board using the API to get an OAuth access token

  • March 28, 2023
  • 3 replies
  • 588 views

I have created a Custom Action which calls my Listener to update the board when the user clicks a button on the board.

In my Listener I use the OAuth workflow based on [Authorization for integration recipes](OAuth Flow Example)
to request an access token for the user and store it in a database when the user adds the app to the board.

Is there a way to redirect the user from the board to the https://MY_COMPANY.monday.com/oauth2/authorize page by calling the Monday API from my Listener to get a new access token when the user initiates the custom action, and for some reason the user does not have an access token in the database?

3 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • March 29, 2023

Hello there @pinterl and welcome to the community!

I hope you like it here 💪

There is no way of redirecting a user to a URL when a recipe is fired.

What you could do is maybe send a notification to the user including the URL (disclaimer: The URL would not be clickable and they would have to type it).


  • Author
  • New Participant
  • March 29, 2023

Thank you, Matias, I will try the notification suggestion.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • March 30, 2023

Sounds good @pinterl,

Let us know if you need any help!

Cheers,
Matias