# External identity providers

Source: https://cubibase.com/docs/auth/external-idp

Also available: [Markdown version](https://cubibase.com/docs/auth/external-idp.md) · [llms.txt](https://cubibase.com/llms.txt) · [full site content](https://cubibase.com/llms-full.txt)

If your users already sign in elsewhere, keep that provider. Configure a JWKS URL, issuer, and audience, and CubiBase verifies its RS256 tokens on every request.

## Configure the provider

| Setting | Purpose |
| --- | --- |
| JWKS URL | Where CubiBase fetches the provider’s public signing keys (HTTPS, cached 5 minutes) |
| Issuer (`iss`) | Must match the token’s issuer claim |
| Audience (`aud`) | Must match the token’s audience claim |
| Allowed algorithms | The token’s `alg` must be allowed for the project |

On every Data API request, CubiBase verifies the RS256 signature against the JWKS, checks issuer, audience, and expiry, and uses the verified `sub` as the user id for the transaction — so user-column policies work with your own ids.

> **important**: CubiBase Auth and an external provider are alternatives: a project’s requests are checked against the provider configuration you set. Google is the built-in social provider; other social buttons and SAML are not part of the current engine.

## Development tokens

While building, a development endpoint can issue an HS256 token for a user id you choose, when that issuer is enabled for the project. Use it to seed data and test policies before your real sign-in is wired up.

> **warning**: Development tokens are for building, not production traffic. Switch the project to your real provider (or CubiBase Auth) before you ship.

## Plan availability

Bring-your-own-IdP (RS256 / JWKS) is available on the Pro and Business plans. The Free plan uses CubiBase Auth.

## Additional resources

- [Authentication overview](https://cubibase.com/docs/auth) The built-in alternative: CubiBase Auth.
- [Row-level security](https://cubibase.com/docs/database/row-level-security) How the verified sub becomes row access.
- [Plans](https://cubibase.com/pricing) Where external IdP support sits.
