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

supabase / supabase-flutter / 28850807157
86%

Build:
DEFAULT BRANCH: main
Ran 07 Jul 2026 08:00AM UTC
Jobs 8
Files 83
Run time 1min
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: 86.383% (+0.3%) from 86.053%
28850807157

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)

128 of 129 new or added lines in 3 files covered. (99.22%)

4447 of 5148 relevant lines covered (86.38%)

4.0 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.88
packages/gotrue/lib/src/types/custom_oauth_provider.dart
Jobs
ID Job ID Ran Files Coverage
6 supabase_flutter - 28850807157.6 07 Jul 2026 08:00AM UTC 11
79.0
GitHub Action Run
7 supabase - 28850807157.7 07 Jul 2026 08:00AM UTC 15
80.69
GitHub Action Run
8 gotrue - 28850807157.8 07 Jul 2026 08:03AM UTC 29
85.93
GitHub Action Run
3 postgrest - 28662400806.3 03 Jul 2026 01:08PM UTC 9
84.57
GitHub Action Run
6 functions_client - 28662400806.6 03 Jul 2026 01:06PM UTC 2
98.63
GitHub Action Run
7 realtime_client - 28670038615.7 03 Jul 2026 03:36PM UTC 11
89.06
GitHub Action Run
5 storage_client - 28662400806.5 03 Jul 2026 01:08PM UTC 5
93.26
GitHub Action Run
1 yet_another_json_isolate - 28662400806.1 03 Jul 2026 01:05PM UTC 1
77.78
GitHub Action Run
Source Files on build 28850807157
  • Tree
  • List 83
  • Changed 6
  • Source Changed 6
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28850807157
  • 122e5cf2 on github
  • Prev Build on main (#28848739529)
  • Next Build 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