I’m working on a project that involves building a website with a WordPress frontend for marketing purposes. The website allows users to sign up and subscribe to a SaaS software application. Once logged in, users should be able to access the SaaS application seamlessly.
I’m aiming to replicate a specific user experience similar to Asana. In Asana, if you are logged in and you type asana.com in the browser, you are automatically redirected to app.asana.com as long as you are still logged in.
To achieve this seamless redirection from the WordPress frontend to the SaaS application, I would like to understand what information needs to be exchanged between WordPress and the SaaS application.
Specifically, I’m looking for insights on:
1. How to handle authentication and session management between WordPress and the SaaS application.
2. What data needs to be passed between the two systems to identify the logged-in user.
3. How to securely store and transmit the necessary tokens or session information.
4. The best practices for implementing the redirection mechanism from WordPress to the SaaS application.
If anyone has experience with integrating WordPress with a SaaS application and implementing a similar login redirection flow, I would greatly appreciate your guidance and any code examples or resources you can share.
[ad_2]
OAuth is a pretty standard way of doing this, along with SAML and OpenID.