Register the OAuth client
An OAuth client lets each user connect their own Lovable account to StackOne. Register one Web server client for StackOne in the workspace that will own it.
Sign in to Lovable
Sign in to your Lovable account as an owner or admin of the workspace.
- Select the workspace that will own the client.
- Go to Workspace settings → API keys & OAuth, then under OAuth clients click New OAuth client.
Choose the application type
Select Web server as the application type.
- A Web server client signs in with a client secret together with PKCE, which is how StackOne connects.
- The application type cannot be changed after the client is registered.
Name the client
Enter a Client name such as StackOne Integration.
Add the redirect URI
Under Redirect URIs, enter the Callback URL from your Connector Profile.
- Lovable only accepts https redirect URIs, apart from localhost addresses during development.
- A client can have up to 10 redirect URIs.
Select the project and workspace scopes
Select each scope listed.
- These are sensitive scopes, so they need a Business or Enterprise workspace.
- A scope never gives a user more access than they already have in Lovable.
Select the sign-in and refresh scopes
Also select profile, email and offline.
- StackOne requests these scopes every time a user connects.
offlinelets Lovable issue a refresh token, so the connection keeps working after the access token expires. It must be on the client as well as in the request.
Register the client
Click Register client.
Copy the client credentials
The client details show the client ID and the client secret.
Copy the client ID and secret
Copy the Client ID and Client secret from the client details into the Client ID and Client Secret fields of your Connector Profile.
- The client secret is shown only once. Store it before you leave the page.
Generate a new secret if you lose it
If you lose the secret, open the client and click Generate new secret under Client secret, then confirm.
- The old secret stops working within a few seconds, so paste the new one into your Connector Profile straight away.
- A Web server client has one active secret at a time.
Request verification
Clients with sensitive scopes show users an unverified app warning until Lovable verifies them. Request verification to remove the warning.
Request approval
Open the client’s details and click Request approval next to Verification.
- An approved client shows Verified by Lovable.
- A denied request shows Approval denied. Click Edit client to change the client, then request approval again.
- If Lovable does not decide within five days, the request expires and you can submit it again.
- Later edits that add sensitive scopes to a verified client go to review. The current settings stay active until Lovable approves them, and the edits show under Pending changes.
Creating the StackOne Connector Profile
To create the Connector Profile in StackOne for Lovable:Open the connector
Choose actions and events
- Click Add Profile.
- If the connector offers more than one authentication method, set the Auth Method filter to OAuth 2.0.
- Select the actions, and any events, to enable for this Connector Profile.
- Click Continue.
Set up authentication
- Select Authentication Type as OAuth 2.0.
- Fill out the fields using details retrieved from your provider:
- Client ID
- Client Secret
- Scopes (Optional)
- Click Create Profile.