Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tailor-platform/sdk/llms.txt
Use this file to discover all available pages before exploring further.
Function Signature
Parameters
IdP service name
IdP configuration object
Authorization policy for IdP operations:
"insecure": No authorization required (development only)"loggedIn": Require authenticated user{ cel: string }: Custom CEL expression for authorization
Array of client names allowed to use this IdP
Default language for IdP UI and messages
User authentication policy configuration
Allow non-email identifiers for usernames
Allow users to reset their own passwords
Require at least one uppercase letter in passwords
Require at least one lowercase letter in passwords
Require at least one non-alphanumeric character in passwords
Require at least one numeric digit in passwords
Minimum password length (6-30, inclusive)
Maximum password length (6-4096, inclusive)
Restrict registration to specific email domains. Cannot be used with
useNonEmailIdentifierEnable Google OAuth authentication. Requires
allowedEmailDomains to be setDisable password authentication (OAuth only). Requires
allowGoogleOauth to be enabledEnable publishing user lifecycle events (created, updated, deleted)
Configure which GraphQL operations are enabled for IdP users:
"query": Alias for read-only mode (disables all mutations)- Object with boolean flags for each operation:
create: Enable_createUsermutationupdate: Enable_updateUsermutationdelete: Enable_deleteUsermutationread: Enable_usersand_userqueriessendPasswordResetEmail: Enable_sendPasswordResetEmailmutation
Returns
Defined IdP service with the following properties:All other fields from the input config are preserved.
IdP service name
Method to create an identity provider configuration:Returns an object with:
name: Provider namekind:"BuiltInIdP"namespace: IdP service nameclientName: Client name
Example
Basic Configuration
With Google OAuth
Read-Only GraphQL Operations
Using Provider Method
Notes
- The
clientsarray is type-checked when using the.provider()method - Password constraints are validated:
passwordMinLengthmust be ≤passwordMaxLengthpasswordMinLengthmust be between 6 and 30passwordMaxLengthmust be between 6 and 4096
allowedEmailDomainscannot be used withuseNonEmailIdentifierallowGoogleOauthrequiresallowedEmailDomainsto be setdisablePasswordAuthrequiresallowGoogleOauthto be enableddisablePasswordAuthcannot be used withallowSelfPasswordReset- The
.provider()method is used to link the IdP to an auth service