Replies: 4 comments 5 replies
-
The dashboard app is basically an iframe, so you can have any web app that makes post requests to another server. For example, I have a NextJS (+ NextAuth) app deployed in Vercel with basic user/pass auth and cross-domain cookie policies. From the UI I just call the API routes and from those routes, I interact with the other service (Woocommerce). I personally use NextJS with NextAuth, but you can use any web app as long as it has some layer of authentication or firewall restrictions that make it only accessible to your senders. |
Beta Was this translation helpful? Give feedback.
-
Really appreciate that :)
|
Beta Was this translation helpful? Give feedback.
-
https://github.com/antoniomdk/chatwoot-app-example This is an example. It protects all pages with a basic user/pass and stores the session in the cookie. If you are deploying in the same domain as chatwoot, then you can use sameSite="lax" in the cookie config. This is just one way of protecting your chatwoot app. But you can explore other options if you don't want to use next or next-auth. One alternative is to use an Nginx reverse proxy with HTTP basic auth.. All of the alternatives I'm mentioning do not provide good security measures, but it is better than just exposing your web app to the world. If you use Okta, Keycloak, or any other type of OAuth authentication in your company, you can use oauth2-proxy. |
Beta Was this translation helpful? Give feedback.
-
Super super appreciate it Antonio!
This is a great start for us to test this with!
… 2 mars 2023 kl. 15:29 skrev Antonio Molner Domenech ***@***.***>:
https://github.com/antoniomdk/chatwoot-app-example <https://github.com/antoniomdk/chatwoot-app-example>
This is an example. It protects all pages with a basic user/pass and stores the session in the cookie. If you are deploying in the same domain as chatwoot, then you can use sameSite="lax" in the cookie config. This is just one way of protecting your chatwoot app. But you can explore other options if you don't want to use next or next-auth.
One alternative is to use an Nginx reverse proxy with HTTP basic auth. <https://siddharthac6.medium.com/nginx-implementing-basic-authentication-ecc1100c3a3c>. All of the alternatives I'm mentioning do not provide good security measures, but it is better than just exposing your web app to the world.
If you use Okta, Keycloak, or any other type of OAuth authentication in your company, you can use oauth2-proxy. <https://oauth2-proxy.github.io/oauth2-proxy/>
—
Reply to this email directly, view it on GitHub <#6543 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACEQ7DKYL6EGRYIDZOVSWF3W2CVGDANCNFSM6AAAAAAVHZSXLE>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
Right now dashboard apps shows that it can retrieve/GET information about orders etc.
But our sender wants to 'cancel' order: is it possible for us through chatwoot to make a POST-call to our system to cancel an order, for example?
Beta Was this translation helpful? Give feedback.
All reactions