IdP is a built-in identity provider service for managing user authentication on the Tailor Platform.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.
Overview
The Built-in IdP provides:- User registration and authentication
- OAuth client management
- Integration with Auth service
Configuration
Configure the Built-in IdP usingdefineIdp():
Definition Rules:
- Multiple IdPs allowed: You can define multiple IdP instances in your config file
- Configuration location: Define in
tailor.config.tsand add to theidparray - Uniqueness: IdP names must be unique across all IdP instances
Options
authorization
User management permissions. Controls who can manage users in the IdP.Values:
"insecure"- No authentication required (use only for development)"loggedIn"- Requires authenticated user- CEL expression - Custom authorization logic
clients
OAuth client names that can use this IdP:Array of OAuth client names that are allowed to use this IdP
Using idp.provider()
Theidp.provider() method creates a type-safe reference to the IdP for use in Auth configuration. The client name is validated at compile time against the clients defined in the IdP.
example/tailor.config.ts
Name for the provider reference
Must be one of the clients defined in the IdP’s
clients arrayclients array of the IdP configuration.
Password Policy
Configure password requirements for user authentication:example/tailor.config.ts
Whether to use non-email identifiers for usernames
Whether users can reset their own passwords
Require at least one uppercase letter in passwords
Require at least one lowercase letter in passwords
Require at least one special character in passwords
Require at least one number in passwords
Minimum password length
Maximum password length