• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-flutter / 28850807157 / 6
86%
main: 86%

Build:
DEFAULT BRANCH: main
Ran 07 Jul 2026 08:03AM UTC
Files 11
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Jul 2026 07:57AM UTC coverage: 78.997%. Remained the same
28850807157.6

push

github

web-flow
feat(gotrue): add custom OAuth providers admin API with custom_claims_allowlist (#1519)

## What

Implements the custom OAuth/OIDC providers admin API in gotrue, exposed
as `client.auth.admin.customProviders`, mirroring the
`admin.customProviders` API in supabase-js (`/admin/custom-providers`).
This is distinct from the existing OAuth 2.1 server *clients* API
(`admin.oauth`).

Resolves
[SDK-1173](https://linear.app/supabase/issue/SDK-1173/parityauth-add-custom-claims-allowlist-to-custom-providers-admin-api).

The parity issue asked to add `custom_claims_allowlist` to the custom
providers admin types, but that API did not exist in the Flutter SDK at
all, so this adds the full surface including the field.

## Changes

- New `GoTrueAdminCustomProvidersApi` with `listProviders({type})`,
`createProvider`, `getProvider`, `updateProvider`, `deleteProvider`.
- Wired into `GoTrueAdminApi` as `admin.customProviders`.
- New types: `CustomProviderType`, `OIDCDiscoveryDocument`,
`CustomOAuthProvider`, `CreateCustomProviderParams`,
`UpdateCustomProviderParams`.
- All three provider types carry `customClaimsAllowlist` (serialized as
`custom_claims_allowlist`), an opt-in allowlist of raw identity provider
claim keys copied verbatim into the user's `custom_claims`. Optional,
absent by default.

## Usage

```dart
await supabase.auth.admin.customProviders.createProvider(
  CreateCustomProviderParams(
    providerType: CustomProviderType.oidc,
    identifier: 'custom:mycompany',
    name: 'My Company',
    clientId: '...',
    clientSecret: '...',
    customClaimsAllowlist: ['groups', 'org_id', 'mail'],
  ),
);
```

## Tests

- Unit tests for serialization/deserialization of
`custom_claims_allowlist` (present, absent, empty) across the
create/update/read types.
- Integration tests covering create/list/list-by-type/get/update/delete
against a live gotrue server.

Integration tests use OAuth2 providers (OIDC creation triggers a
server-side discovery-document fetch, which w... (continued)

252 of 319 relevant lines covered (79.0%)

4.9 hits per line

Source Files on job supabase_flutter - 28850807157.6
  • Tree
  • List 11
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 28850807157
  • 122e5cf2 on github
  • Prev Job for on main (#28848739529.6)
  • Next Job for on main (#28852642300.)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc