1.3 Proprietary connector setup
Using Embed to connect your own software to many other SaaS apps you obviously may not want your users to have to manually enter their login details themselves. You can make use of a proprietary connector in Embed in order to automatically create a connector auth for your end users of your own connector so that they don't have to enter their credentials for it in the iframe.
In the Embed configuration, simply select the connector that you want to use as the proprietary connector for this embed. The connector ID will then be displayed in the field below.

"client_authentication": {
"auth_type": "basic_auth",
"connector_id": "d4...",
"name": "Embed - Stripe - User123 - 23523",
"auth_token": "very_secret_token",
"auth_details": "",
"api_endpoint": "",
"refresh_token": "",
"user_input": {},
"password": "",
"username": ""
}
- auth_type - The same that you can see when you're setting up a connector auth in Locoia. E.g. for Stripe this would be
basic_auth
. A complete list of the types can be found here. - name - The name of the connector auth. We recommend use a combination of the end users id or name, the connector name and some reference to embed
- All other parameters depend on the specific connector that you're using. E.g. for Stripe, the
auth_token
needs to be passed
Finally, you need to include this dictionary in your JWT on every page view, so that the most recent credentials are always synced to the corresponding connector auth, and thus, the flows that use them in Locoia.
Last modified 1yr ago