Auth flows options
Cobalt’s auth flows provides a seamless environment for your users to grant authorization to their third party application data.
When creating application integrations, accessing customer’s data is a required step. Using Cobalt’s auth flows this process becomes both quick and heavily customizable.
Pre-requisites
Below are a few pre-requisites that you need to do before choosing an Auth Flow:
1. Create Linked Account
In order to enable your customer to connect to third party app, you first need to create a Linked account for them using a unique identifier.
Know more about Linked Accounts and how you can create one in the guide here.
We recommend you create a linked account at the same time as your customer signs up within your app.
2. Generate Session Token
Generate a Session Token for your Linked Account.
The session token gets expired in 24 hours. Please make sure you generate a new token in every new session or within 24 hours.
Auth flow integration options
Cobalt provides 3 different ways for Auth flow of integrations
Hosted Flow
Hosted flow
Redirects user to Cobalt Connect hosted on `https://connect.gocobalt.io`.
Hosted flow
Redirects user to Cobalt Connect hosted on `https://connect.gocobalt.io`.
Hosted flow is a no-code solution, so you don’t need to build your own UI to handle the integration authentication. It handles the following features:
- List all enabled applications
- Handle the Auth flow
- Manage integration configuration for your end user.
Cobalt Modals (Embedded Flow)
Cobalt Modals (Embedded Flow)
Utilize the React SDK and embed it seamlessly within your React application.
Cobalt Modals (Embedded Flow)
Utilize the React SDK and embed it seamlessly within your React application.
Cobalt Embedded flow is a frontend SDK that allows you to embed Cobalt auth flow into your React application.
It’s a simple process involving steps like Generate Session Token
> Install and Initialise Frontend SDK
and Render the Component
.
Learn more about Cobalt’s Modal flow and how to implement it here.
For example implementation, you can check out the App.js file in the example directory.
Build your own Frontend (Seamless Flow)
Build your own Frontend (Seamless Flow)
Utilize our REST APIs and NodeJs SDK methods to implement and customize the authentication experience.
Build your own Frontend (Seamless Flow)
Utilize our REST APIs and NodeJs SDK methods to implement and customize the authentication experience.
Cobalt provides APIs and SDK functions that allow you to build your own frontend experience for your customers to connect with the third party applications.
Learn in depth about how to build your own frontend here.
Authorization journey
Cobalt lets you take the authorization for customer’s data in 3 simple steps:
- Open the auth flow portal for the customer using any of the above mentioned integration options.
- Customer provides consent or API Credentials for the respective app.
- Customer configures the data required for the connection, such as selecting specific integration settings.