Skip to content

This is a sample repository of a ASP.NET Core app that offers passkey authentication.

Notifications You must be signed in to change notification settings

corbado/example-passkeys-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Passkey-First Authentication with ASP.NET Core and Corbado

This is a sample implementation of a ASP.NET Core application that offers passkey authentication. For simple passkey-first authentication, the Corbado web component is used.

Please see the full blog post to understand the detailed steps needed to integrate passkeys with ASP.NET Core apps.

File structure

├── corbado-demo
|   ├── api
|   |   ...
|   |   └── Pages
|   |       ├── Index.cshtml      # The page which shows info about your profile when logged in
|   |       └── Login.cshtml      # The login page
|   |   
|   └── Properties
|       └── launchSettings.json   # Contains environment variables

Prerequisites

Please follow the steps in Getting started to create and configure a project in the Corbado developer panel.

Open the launchSettings.json file and enter your projectID in all configurations.

Usage

Open the solution in Visual Studio and run the project (Hit the "play" button or go to "Debug -> Start Debugging")