Scripts for Embedded Authentication
Catalyst offers you the following scripts that you can incorporate in your web client application to implement Embedded authentication.
For Conventional Login Form Type
copy<script src="https://static.zohocdn.com/catalyst/sdk/js/4.0.0/catalystWebSDK.js"></script> <script src="/__catalyst/sdk/init.js"></script> <script> const config = {}; /* config is optional { css_url : "/css/embeddediframe.css", // Login page customization css file path, if not provided default css will be rendered is_customize_forgot_password : true, // Default value is false. Keep this value as true, if you wish to customize Forgot Password page forgot_password_id : "forgotPasswordDivElementId", // Element id in which forgot password page should be loaded, by default will render in the "loginDivElementId" forgot_password_css_url : "/css/forgotPwd.css" // Forgot password page customization css file path, if not provided default css will be rendered } */ catalyst.auth.signIn("loginDivElementId", config); </script>
For Social Login-only Form Type
copy<script src="https://static.zohocdn.com/catalyst/sdk/js/4.0.0/catalystWebSDK.js"></script> <script src="/__catalyst/sdk/init.js"></script> <script> catalyst.auth.signIn(elementId, {signInProvidersOnly : true}); </script>
Note: These scripts are also available in the console. You can directly copy and enable them while you are setting up embedded authentication and in the Authentication Type section of the console.
Last Updated 2023-05-08 18:05:05 +0530 +0530
Yes
No
Send your feedback to us
Skip
Submit