Authentication
Authentication depends on the caller and, for browser apps, on which app model applies. Choose the delivery model before copying an authentication example: an externally hosted app and a Data App do not share the same browser bootstrap.
To invite people into your workspace, see Invitation links.
Examples use https://app.astrato.io, the default Astrato application and API host. If your
organization supplies another Astrato origin, substitute it where server-side or CLI commands accept
a host. Use another origin only when your organization, Astrato or the user gives it to you; do not
guess one, or take one from a screenshot or another site’s example. Authored Data App code does not
configure that origin.
Sign in or recover access
Section titled “Sign in or recover access”The Sign in page at https://app.astrato.io/auth-login/sign-in offers three routes: a button
for each identity provider your Astrato origin lists, SSO for your organization’s single
sign-on, and Email and Password with Sign in. If your account has two-factor
authentication, an Authentication code field appears after the first attempt; enter the code
and select Sign in again. To set it up, or if an administrator requires it, see
Two-factor authentication.

Before you start: if someone sent you an invitation link, open that link instead to join their workspace; see Invitation links. Otherwise you need an email address whose inbox you can open, in case Astrato asks you to verify it.
To create an account:
-
Select Create an account on the sign-in page. Unbranded sign-in pages do not show this link; go to
/auth-login/sign-upon the same host instead. Keep the sign-in page’s query string, so Astrato can return you to where you started after sign-up. -
On Create your account, enter your Email and select Continue.
-
Enter First name, Last name and a Password. The password needs at least 8 characters and three of: uppercase letters, lowercase letters, numbers and the special characters
!@#$%^&*.
-
Select Create account. Astrato then signs you in, or returns you to Sign in if it cannot.
If sign-in shows Email verification required, open the verification link sent to your address, or select Resend for a new one. A link that has already been used or has expired shows Invalid link; request a new one.
To use single sign-on, select SSO, enter your Workspace or email and select Continue with SSO. If your workspace requires single sign-on, Astrato may send you to that page with the message “Your tenant requires SSO.” To set up a login connection for your workspace, see Set up single sign-on.

If you are signed out each time the browser closes, see Staying signed in. An expired session shows Session expired; select Back to sign in.
If you have forgotten your password, select Forgot password? on the sign-in page. If signup reports that your email is already registered, select Reset your password. The reset form opens with your email filled in. Send the request and follow the instructions in the reset email instead of creating another account.


Password access remains subject to your workspace’s sign-in policy. For browser requirements, see Supported browsers.
Low reCAPTCHA score
Section titled “Low reCAPTCHA score”Sign-in, signup and password reset each send a Google reCAPTCHA check with the form. When Google scores the attempt as likely automated, Astrato refuses it with Low recaptcha score.
-
On the sign-in page, a reCAPTCHA checkbox appears above the Sign in button instead of that message. Complete the check, then select Sign in again. If the check reports Verification failed. Please retry. or Verification could not load. Please retry., select Retry verification below the message to load a fresh check. Selecting Sign in before the check is complete shows Complete verification before signing in.

-
On the signup or reset form, the message appears on the form. Try again after a short while, or from a browser profile you use regularly, since the score depends on how the browser has been used.
If it keeps failing, raise it through the Support portal with the time of the attempt and the full text of the message, including the Correlation ID shown below it, if there is one.
Which mechanism applies
Section titled “Which mechanism applies”| Caller or environment | Mechanism |
|---|---|
| Astrato CLI on a developer computer | OAuth device authorization; renewable login stored in the OS credential store |
| Data App during local development | @astrato-io/app-runtime through the CLI-owned origin and local App session |
| Externally hosted app’s trusted backend or proxy | PAT bearer header |
| Externally hosted app during local development | Local trusted proxy that adds a PAT server-side |
| Externally hosted app delivered to other users | Its own backend/session design; never a PAT shipped in browser code |
| Server-side script or curl | PAT bearer header |
| MCP client | MCP OAuth or PAT; see MCP setup |
| Astrato Excel Add-in | OAuth device authorization; see Connect to Astrato |
CLI OAuth and MCP OAuth are separate grants for separate clients and scopes. Logging into one does not authenticate the other.
OAuth bearer requests do not use a browser-session CSRF token: the caller explicitly supplies its authorization. Browser sessions still need CSRF protection, including the local Data App session managed by the runtime. Neither mechanism bypasses your data permissions or the OAuth scopes granted to the client.
Your authenticated identity retains its group memberships and user filter parameters when managing personal access tokens. These values are not truncated to fit authorization headers.
Accept a workspace membership transfer
Section titled “Accept a workspace membership transfer”If you already belong to another workspace, pending invitations appear in the new lobby’s Membership transfer invite dialog. Select the destination if you have several invitations, then select Accept, or Reject (Reject All for several invitations) to stay in your current workspace.

Transferring removes access to your current workspace and deletes your workbooks. If you own that workspace, select another active user to receive ownership. If no eligible user is available, accepting deletes your current workspace and all its data; enter your account’s email address to confirm. The address must match exactly, including whitespace. If you paste, drag, or automatically fill it, manually edit it before accepting; only typing and deletion count as manual editing. After acceptance, the page reloads with your new membership.

If workspace ownership is transferred but accepting the invitation fails, Reject and Reject All are unavailable. Retry Accept to finish joining the destination workspace; the completed ownership transfer is not repeated or undone.
Enterprise connections
Section titled “Enterprise connections”For a step-by-step setup, see Set up single sign-on.
Owners and administrators manage connections to other identity and data providers under Administration → Enterprise Connection. It has three tabs, and each lists only connections of its own type:
| Tab | What it holds | Create with |
|---|---|---|
| Login connections | Single sign-on for the workspace. A workspace can have one. | Add connection |
| Access integrations | OAuth to a data warehouse, so each person queries it with their own account and the warehouse’s access rules apply to them. | Add integration |
| Identity federation | A Snowflake trust, so each person reads Snowflake data as their own Snowflake user. See Identity federation. | Add provider |
Provider names identify the service, such as Okta or Snowflake; the tab identifies how you use it. A Google Workspace login connection appears under Login connections, not Access integrations.
The providers each tab offers:
- Login connections: the single sign-on providers in Choose your provider.
- Access integrations: Snowflake, BigQuery and Databricks. Google Workspace is not offered here.
- Identity federation: Snowflake. Once the workspace has a Microsoft Entra ID login connection, Entra ID Token Exchange is offered as well.
A provider that is not released yet can appear in the list but cannot be selected. An empty Login connections or Access integrations tab explains what that kind of connection is for and shows the providers you can add.
Create a connection
Section titled “Create a connection”Before you start: you need the Owner or Admin role, and access to the provider’s admin console to register Astrato there.
- Open the tab for the kind of connection you want, then select Add connection, Add integration or Add provider.
- Choose a provider under Select a Login provider, Select a Data provider or Select a Service provider.
- On the Configuration tab, copy the values to register with the provider, such as callback URLs and scopes. Then select Continue to Setup.
- Fill in the Setup form and select Create.
What Setup asks for depends on the provider:
- Login connections: see Set up the connection. Only at creation can you choose Enable roles synchronization and Enable groups synchronization; the connection’s Setup tab does not offer them later.
- Access integrations: a name, the Snowflake account URL or Databricks account URL (for BigQuery, the Google Workspace domain), then Client ID and Client secret. The provider side is set up in Set up Sign in with Snowflake and Set up a Databricks access integration.
- Identity federation: see Add a federation provider.
A new login connection or access integration opens in its properties with the status Not enabled. If creation fails, the dialog shows the error and keeps your entries. Add connection is unavailable once the workspace has a login connection.
Verify, edit or delete a connection
Section titled “Verify, edit or delete a connection”The Status column shows Enabled once a connection is verified and Not enabled until then. A login connection cannot be used to sign in until it is verified, and an access integration should be verified before anyone uses it to read data. Status is Unknown when the provider does not report a verification result.
Select a connection, or its Edit button, to open its properties on the Setup tab. Configuration beside it shows the values to register with the provider.
- Verify: an unverified connection has a Verification section. Save any changes first: Verify connection is unavailable while there are unsaved changes. Astrato opens a provider window and shows Complete sign-in in the provider window. Sign in there. When verification succeeds, the status changes to Enabled. For the messages a failed verification shows, see Verify the connection.
- Edit: change the name and setup fields under General, then select Save. Client secrets are never displayed. To change one, select Replace secret and type the new secret; leaving it blank keeps the existing one.
- Delete: under Danger zone, select Delete connection and confirm. Deleting a login connection means the workspace is no longer protected by it, and SCIM provisioning through it stops. Deleting an access integration removes access for anything reading data through it. Deletion cannot be undone. To revoke only your own token, see Revoke data access tokens.
A verified login connection also shows a Login URL to copy and test; see Test a normal sign-in.
If the connection list cannot be read, the tab shows Enterprise connections unavailable with the reason instead of an empty list. If provider names cannot be read, the page shows Provider names unavailable with Retry providers, and the add buttons stay unavailable until they load. Invalid provider metadata and responses in an unexpected format are also reported as failed reads.
Review OAuth connections
Section titled “Review OAuth connections”User Settings presents personal access tokens, OAuth connections and data access in consistent table sections. When your tenant allows PAT creation and your role has permission, use New token in the personal access tokens toolbar to create a token.
In the new UI, open your account menu and select User Settings → OAuth connections. The section is shown only when the page finds at least one connection as it loads. Revoking the last one leaves the section in place until you reload.

You can review apps with active OAuth access in your current tenant, including renewable connections whose short-lived access token has expired. Each entry shows the client name and ID, audiences, granted scopes and Last used. Activity is estimated from the most recent token issuance, including refreshes, and shown as “Within the last hour”, a number of hours or days ago, or “Over a month ago”. It does not prove that the app made a subsequent request. Not recorded means no issuance timestamp is available.
Credentials are never displayed. If a client name is no longer available, its client ID identifies the connection.
Choose Revoke on the app’s row, review the app named in the confirmation under the table, then choose Revoke there. This revokes all existing access and refresh tokens for that app under your account in the current tenant. The app must authorize again to reconnect. Access in other tenants, personal access tokens, browser sessions and data-provider credentials are unaffected.

After successful revocation, the entry disappears. If the request fails, the entry and confirmation remain so you can retry. If the list cannot be read after connections have been shown, the section shows an error with Retry; if the first read fails, the section is not shown. Expired and revoked connections are not shown as history.
Data Apps, the CLI and scripts
Section titled “Data Apps, the CLI and scripts”How the Astrato CLI signs in, how a Data App gets its session, the browser same-origin rule, and the credentials for publishing are in Authentication for Data Apps and the CLI.
Personal Access Tokens
Section titled “Personal Access Tokens”A PAT is a bearer token associated with an Astrato account. Requests made with it use the account’s permissions in the tenant. A PAT is appropriate for trusted server-side code, scripts, MCP clients that do not use OAuth, and an externally hosted app’s private development proxy.
- Create: open user settings in Astrato, enter a name of 2–100 characters and select an expiry of 1, 7, 30, 60, or 90 days. Names must be valid Unicode and cannot contain NUL characters. PATs do not renew automatically.
- Enable PAT creation: under Manage personal access tokens in System settings, administrators control whether new PATs can be created and which roles may create them. When creation is unavailable, New token and its form are hidden. You can still open the PAT section to review and revoke existing tokens; if you have none, the PAT menu item and section are hidden.
- Revoke: delete your PAT from user settings, or use the administrator’s tenant-wide revocation control to revoke all PATs in the workspace. Revocation is checked when identity is next resolved; an already cached identity can remain usable until its cache entry expires or is invalidated.
Before you start: an administrator must allow your role to create tokens, under Manage personal access tokens in System settings. If they have not, New token is hidden.
To create a token:
-
In the lobby, select your profile picture or initials at the top right (elsewhere, Account on the app rail) to open the account menu, then select Personal Access Tokens. User Settings opens at its Personal Access Tokens section.
-
Select New token.
-
Enter a Name that says what will use the token, choose how long it lasts in Expires in (30 days unless you change it), and select Create.

-
Copy the token with the copy button and store it securely. It is shown only this once. Select Done.

To revoke one, open the same section, select Revoke on the token’s row, and confirm with Revoke.
Set ASTRATO_TOKEN without placing its value in shell history. In Bash or zsh, read it without
terminal echo and then export it:
printf 'Astrato PAT: 'IFS= read -r -s ASTRATO_TOKENprintf '\n'export ASTRATO_TOKENThen use it as a bearer header only from trusted code:
curl --config - <<EOFurl = "https://app.astrato.io/api/..."header = "Authorization: Bearer ${ASTRATO_TOKEN}"silentshow-errorEOFThe shell expands the variable into curl’s standard input rather than its process arguments. Unset it when you no longer need it.
For independent local browser development, keep the PAT in the development server and have a same-origin proxy add the header. The externally hosted app quickstart shows the Vite configuration. Keep that proxy bound to localhost: anyone who can reach it can make requests with the configured PAT.
A PAT is not multi-user browser authentication. It acts with its owner’s authority and must never
be embedded in JavaScript, HTML, a static build, astrato.json, or a page delivered to other users.
An externally hosted production app must own a trusted backend/session boundary appropriate to its
users. Astrato does not provide that boundary for externally hosted apps.