If you're planning to embed the Bettermode site into another website or product using iframe and would like to ensure that the users' login experience is seamless, you need to passÂ
?auth=true query string in the URL of the site.
For example: If your site URL is https://community.abc.com, then the URL after passing the query string is going to be https://community.abc.com?auth=true
❗Note: Before using ?auth=true, please ensure the only available login method is OAuth2 or JWT SSO. If you have email/password or social login methods enabled, the member will see the Tribe login screen instead of being redirected to the SSO flow.
When this query string is set, the user login experience will be as follows:
If the user is not logged in to the SSO, it will redirect the user to the SSO workflow and it'll log the user in.
If the user is already logged in to the SSO, it won't do anything.
This method works seamlessly if the user is already authenticated in your identity management system. If the user is not authenticated using your identity management system, they will see the SSO login screen and it won't be a seamless experience.
Here's a quick overview of this article and the process of setting this up correctly: