Developer Integration Guide
Follow this step-by-step tutorial to integrate your applications with clouburstlab. We support the industry-standard OAuth 2.0 Authorization Code Flow with PKCE, Client Credentials for machine-to-machine integration, and an internal bridge for connected cloud storage.
To start communicating with the identity provider, you need to register your application.
- Sign in to your account.
- Go to Profile Dashboard > Developer Applications.
- Click Register New Application.
- Fill in the details and save your
Client IDandClient Secret.
The identity provider will only redirect users back to URLs that you explicitly authorize. This prevents open-redirect attacks.
- Navigate to your application settings.
- Add your callback URL under Authorized Redirect URIs (e.g.,
https://yourapp.com/api/auth/callback). - For local development, you can use
http://localhost:3000/....
Redirect the user to the /signin authorization endpoint with response_type=code and a cryptographic PKCE code_challenge.
client_id=YOUR_CLIENT_ID
&redirect_uri=YOUR_REDIRECT_URI
&response_type=code
&scope=openid%20profile%20email
&state=RANDOM_STATE_STRING
&code_challenge=PKCE_CHALLENGE
&code_challenge_method=S256
Once the user authenticates, they are redirected back to your app with a code. Exchange it at /api/sso/v1/token for access, refresh, and ID tokens.
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code&
code=YOUR_AUTHORIZATION_CODE&
redirect_uri=YOUR_REDIRECT_URI&
client_id=YOUR_CLIENT_ID&
client_secret=YOUR_CLIENT_SECRET&
code_verifier=YOUR_PKCE_VERIFIER
Now that you have the access_token, use it to fetch the user's profile claims from the /api/sso/v1/userinfo endpoint.
Authorization: Bearer YOUR_ACCESS_TOKEN
When the access token expires, use the refresh_token with grant_type=refresh_token to request a new access token seamlessly.
Content-Type: application/x-www-form-urlencoded
grant_type=refresh_token&
refresh_token=YOUR_REFRESH_TOKEN&
client_id=YOUR_CLIENT_ID&
client_secret=YOUR_CLIENT_SECRET
Internal applications within the *.clouburstlab.com domain can leverage the bridge APIs to seamlessly inspect active user sessions and retrieve decrypted Google Drive, OneDrive, and Dropbox credentials.