CustomOAuthProvider class
Custom OAuth/OIDC provider object returned from the admin API.
Constructors
-
CustomOAuthProvider({required String id, required CustomProviderType providerType, required String identifier, required String name, required String clientId, List<
String> ? acceptableClientIds, List<String> ? scopes, List<String> ? customClaimsAllowlist, bool? pkceEnabled, Map<String, dynamic> ? attributeMapping, Map<String, String> ? authorizationParams, bool? enabled, bool? emailOptional, String? issuer, String? discoveryUrl, bool? skipNonceCheck, String? authorizationUrl, String? tokenUrl, String? userinfoUrl, String? jwksUri, OIDCDiscoveryDocument? discoveryDocument, required DateTime createdAt, required DateTime updatedAt}) -
const
-
CustomOAuthProvider.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
acceptableClientIds
→ List<
String> ? -
Additional client IDs accepted during token validation
final
-
attributeMapping
→ Map<
String, dynamic> ? -
Mapping of provider attributes to Supabase user attributes
final
-
Additional parameters sent with the authorization request
final
-
OAuth2 authorization URL
final
- clientId → String
-
OAuth client ID
final
- createdAt → DateTime
-
Timestamp when the provider was created
final
-
customClaimsAllowlist
→ List<
String> ? -
Allowlist of raw identity provider claim keys to copy verbatim into the
user's
custom_claimsfield, e.g.['groups', 'org_id', 'mail'].final - discoveryDocument → OIDCDiscoveryDocument?
-
OIDC discovery document (OIDC providers only)
final
- discoveryUrl → String?
-
OIDC discovery URL
final
- emailOptional → bool?
-
Whether email is optional for this provider
final
- enabled → bool?
-
Whether the provider is enabled
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier (UUID)
final
- identifier → String
-
Provider identifier (e.g.
custom:mycompany)final - issuer → String?
-
OIDC issuer URL
final
- jwksUri → String?
-
JWKS URI for token verification
final
- name → String
-
Human-readable name
final
- pkceEnabled → bool?
-
Whether PKCE is enabled
final
- providerType → CustomProviderType
-
Provider type
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scopes
→ List<
String> ? -
OAuth scopes requested during authorization
final
- skipNonceCheck → bool?
-
Whether to skip nonce check (OIDC)
final
- tokenUrl → String?
-
OAuth2 token URL
final
- updatedAt → DateTime
-
Timestamp when the provider was last updated
final
- userinfoUrl → String?
-
OAuth2 userinfo URL
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited