This repository contains .NET samples used in FoxIDs blog posts, demos, and conference talks. Each sample illustrates a specific scenario for integrating .NET applications or APIs with FoxIDs, including OpenID Connect, OAuth 2.0, SAML 2.0, and passwordless authentication.
The examples are intended as lightweight, easy-to-understand reference implementations that you can copy, run, or adapt for your own projects.
Folder: WebAppPasswordLessEmail
This sample demonstrates how to authenticate users in an ASP.NET Core application using FoxIDs with OpenID Connect and a passwordless flow based on one-time codes sent via email.
A detailed walkthrough is available in the Medium article:
Passwordless Authentication in ASP.NET Core with FoxIDs and Email-based OTP.
Key features:
- Email-based OTP login flow
- OpenID Connect integration with FoxIDs
- Minimal Razor Pages app (works similarly in MVC or Blazor)
- Runs locally on https://localhost:7283
Folder: WebAppPasswordLessEmailAI
This sample shows how an AI-generated ASP.NET Core application can be integrated with FoxIDs to support passwordless authentication using one-time codes delivered by email.
It illustrates how AI-assisted code generation can be combined with secure identity workflows.
A detailed explanation of this version is available in the Medium article:
Passwordless Authentication in an AI-Generated ASP.NET Core App with FoxIDs and Email-based OTP.
Key features:
- AI-generated Razor Pages application structure
- Email-based OTP authentication
- OpenID Connect integration with FoxIDs
- Fully functional example running on https://localhost:7283
- Create a free FoxIDs tenant: https://www.foxids.com
- Set up an environment
- Open any sample in Visual Studio or with the .NET CLI
- Follow the README inside each sample folder
Full documentation is available at: https://www.foxids.com/docs