Page options
Build a partner app with Biocompile OAuth
Last updated
On this page
A Biocompile partner app is another company’s software, such as a LIMS or an ELN, that acts for the people who connect it. It signs people in with OAuth 2.1 and gets tokens that act as each person, never with more rights than they have and only with the scopes they approve.
The organization that builds the app registers it, and people in any organization can then connect it. Each connection is one person’s consent, for one organization.
Register an app
Organization owners and admins register apps:
- Open Organization → OAuth apps and choose Register app.
- Enter the Name people see when they connect the app.
- Enter up to 10 Redirect URIs, one per line. Each must use
httpsand is matched exactly. - Optionally enter a Homepage URL, shown to people when they connect.
- Tick the scopes the app may ever ask for. People can approve fewer, never more.
- Save the app. Result: the page shows “App registered” with the Client ID and Client secret.
The client secret starts with bcc_ and is shown once. Give it to the app’s developers
through a secure channel.
Connect people to the app
The app uses the authorization code flow with PKCE, which is required for every client:
- Send the person’s browser to
GET https://app.biocompile.com/api/v1/oauth/authorizewithresponse_type=code, yourclient_id, a registeredredirect_uri, thescope, astateand acode_challengewithcode_challenge_method=S256. - The person signs in, chooses an organization and approves. Result: the browser returns to
your redirect URI with
code,stateandiss. - Exchange the code at
POST https://app.biocompile.com/api/v1/oauth/tokenwithgrant_type=authorization_code, thecode, theredirect_uriand thecode_verifier. Authenticate with HTTP Basic, or send the client ID and secret as form fields. - Store the refresh token. Result: you hold an access token for 10 minutes and a refresh token.
Refresh tokens rotate on every use. Presenting a used refresh token again revokes the whole
connection, because it means someone else holds a copy. The endpoints are listed at
/.well-known/oauth-authorization-server.
Rotate, disable or delete an app
Each change on Organization → OAuth apps takes effect at once:
| Action | Effect |
|---|---|
| Rotate secret | The old secret stops working immediately. Connections stay, but the app cannot get tokens until it uses the new secret. |
| Disable | Every connection is revoked and the app cannot start new ones. Enabling it again does not restore the old connections. |
| Narrowing scopes | Revokes every connection that holds a scope the app may no longer ask for. |
| Delete | Disables the app, revokes every connection and removes it. |
Every registration, change, rotation and deletion is recorded in the organization’s audit log. The secret never is.
Verification
A new app is unverified. The consent screen warns people that Biocompile has not checked who is behind it. To have an app verified, contact Biocompile support with its client ID. Staff check the company behind it, and a verified app shows as Verified.
Changing the app’s name, homepage or redirect URIs makes it unverified again until staff check it again. Changing its scopes or disabling it keeps the verification.
Billing for partner apps
API calls from a partner app are not billed. The work its calls start, such as assistant turns, analyses and paid tools, is charged to the person’s organization exactly as in the app, under the same spending limits and approvals.
Common questions
Who can connect a Biocompile partner app?
Any person in any organization. Each connection is that person’s own consent, limited to the organization and scopes they approve.
What happens to connections when I rotate the client secret?
They stay. The app cannot refresh tokens or exchange codes until it uses the new secret, so deploy the new secret right after rotating.
How does a partner app get verified?
Contact Biocompile support with the app’s client ID. Verification is done by Biocompile staff and is not self-service.
Related
Was this page helpful?
Something wrong or missing?