ivy-interactive/ivy-framework/ivy-create-auth-connection
Claude Code and agent skill by ivy-interactive/ivy-framework
- community
Checking that the SKILL.md file is still in the repository.
Add an authentication provider to an Ivy project. Supports Basic Auth (JWT), Auth0, Supabase, Clerk, GitHub OAuth, Authelia, and Microsoft Entra ID. Use when the user wants to add login, authentication, or identity to their project.
Install
npx vskill@latest install ivy-interactive/ivy-framework/ivy-create-auth-connectionSKILL.md
ivy-create-auth-connection
Add an authentication provider to an existing Ivy project. This skill guides you through selecting a provider, collecting the required credentials, and configuring the project.
Pre-flight: Read Learnings
If the file .ivy/learnings/ivy-create-auth-connection.md exists in the project directory, read it first and apply any lessons learned from previous runs of this skill.
Reference Files
Read before implementing:
- references/AGENTS.md -- Ivy framework API reference (widgets, hooks, layouts, inputs, colors)
Step 1: Validate the Project
- Verify this is a valid Ivy project. Check for a
.csprojfile andProgram.csin the working directory. If this is not an Ivy project, tell the user and stop.
Step 2: Choose an Auth Provider
- If the user has not already specified a provider, ask them to choose one from the supported list:
| Provider | Description | Required Secrets | |
|---|---|---|---|
| Basic | Simple username/password auth with JWT tokens. Good for internal tools or prototyping. | Users, HashSecret, JwtSecret, JwtIssuer, JwtAudience | |
| Auth0 | Enterprise-grade identity platform with social logins, MFA, and SSO. | Domain, ClientId, ClientSecret, Audience, Namespace | |
| Supabase | Open-source Firebase alternative with built-in auth. Supports email/password, social logins, and SSO via WorkOS. | Url, ApiKey, LegacyJwtSecret | |
| Clerk | Modern authentication with prebuilt UI components and session management. | PublishableKey, SecretKey | |
| GitHub | GitHub OAuth for developer-facing applications. | ClientId, ClientSecret, RedirectUri | |
| Authelia | Self-hosted single sign-on and 2FA server. | Url | |
| Microsoft Entra | Azure Active Directory / Microsoft Entra ID for enterprise SSO. | TenantId, ClientId, ClientSecret |
Step 3: Collect Provider-Specific Credentials
- Based on the chosen provider, collect the required credentials from the user. Each provider requires different configuration values:
Basic Auth (JWT)
- Ask the user for initial user credentials (username:password pairs, comma-separated)
- Ask for a JWT issuer name (default: the project name)
- Ask for a JWT audience name (default: the project name)
- A hash secret and JWT secret are auto-generated
Auth0
- Ask for the Auth0 Domain (e.g.
your-tenant.auth0.com) - Ask for the Client ID from the Auth0 application
- Ask for the Client Secret from the Auth0 application
- Ask for the API Audience (e.g.
https://your-api.example.com) - Optionally, Auth0 supports additional options like role-based access control and custom claims
Supabase
- Ask for the Supabase project URL (e.g.
https://your-project.supabase.co) - Ask for the Supabase anon/public API key
- Optionally, ask for the legacy JWT secret (for direct JWT verification)
- Supabase supports additional options like WorkOS SSO integration
Clerk
- Ask for the Clerk Publishable Key (starts with
pk_) - Ask for the Clerk Secret Key (starts with
sk_) - Clerk supports additional options like organization-based access
GitHub OAuth
- Ask for the GitHub OAuth App Client ID
- Ask for the GitHub OAuth App Client Secret
- Ask for the Redirect URI (e.g.
https://localhost:5001/callback)
Authelia
- Ask for the Authelia instance URL (e.g.
https://auth.example.com)
Microsoft Entra ID
- Ask for the Tenant ID
- Ask for the Application (Client) ID
- Ask for the Client Secret
Step 4: Generate the Auth Configuration
- The auth provider setup involves:
- Adding the required NuGet package for the provider
- Storing secrets in dotnet user secrets (with the provider-specific prefix)
- Updating
Program.cswithserver.UseAuth<[ProviderClassName]>()
- Initialize user secrets for the project:
- Set each required secret using
dotnet user-secrets set. For example:
- Consult the specific auth provider documentation (via
https://docs.ivy.app/sitemap.xmlor documentation markdown endpoints) if you need details about the NuGet package name, the provider class name, or theProgram.csregistration pattern for the chosen provider.
Step 5: Verify
- Run
dotnet buildto verify everything compiles. Fix any errors.
- If the project is in a git repository, create a commit with a descriptive message, for example: "Added [ProviderDisplayName] authentication."
- Tell the user the auth provider is ready and summarize what was configured:
- Auth provider package added
- Secrets stored with the provider prefix
- Program.cs updated with the auth registration
Recovery
If the setup fails:
- Diagnose the root cause (invalid credentials, auth provider not configured, network issues):
- For invalid credentials: verify API keys, tokens, or OAuth client credentials are correct
- For provider config issues: check that the auth provider is registered in the app's configuration
- For network issues: verify the auth provider endpoint is accessible
- After fixing the underlying issue, either retry using the
/ivy-create-auth-connectionskill from scratch, or manually create the auth provider class and register it inProgram.cs.
- Consult the provider documentation endpoints for provider-specific guidance.
Post-run: Evaluate and Improve
After completing the task:
- Evaluate: Did the build succeed? Were there compilation errors, unexpected behavior, or manual corrections needed during this run?
- Update learnings: If anything required correction or was surprising, append a concise entry to
.ivy/learnings/ivy-create-auth-connection.md(create the file and.ivy/learnings/directory if they don't exist). Each entry should note: the date, what went wrong, why, and what to do differently next time. - Skip if clean: If everything succeeded without issues, do not update the learnings file.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/claude-plugin/skills/ivy-create-auth-connection/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ivy-interactive/ivy-framework/ivy-create-auth-connection)