Skip to main content

Where to put app settings and how to authenticate on settings page?

  • November 29, 2022
  • 27 replies
  • 1826 views

Show first post

27 replies

  • Participating Frequently
  • December 4, 2023

The account_id, user_id, app_id - everything you’d need to use it for authenticating a requests… here is why.

The token is used for authentication between a front end app and a backend for the app - this is its purpose per the documentation.

Since this thread started out being about app settings apps, if the app has a backend where settings need to be set (entirely conceivable) then anything we send to the backend must include the account_id at a bare minimum just to work. We also need to send the token to authenticate. The token contains the account_id, so its a great way to send the account_id. Even if we sent the account ID in the request body, we’d need to verify the token is for the same account because otherwise someone could from their own account manipulate requests and access other other accounts! Thats why the token contains the account_id, to prevent that!

Lastly we must validate the payload if we use it, because we are required to do so per the marketplace approval process - and that is why we need its structure, types, etc. defined, so we can adhere to the security requirements monday.com has placed on us.


rachelatmonday
Forum|alt.badge.img
  • monday.com Team Member
  • December 12, 2023

Hoping this will help 🤔