---
title: "Episode 016 - Authentication with Identity and Razor Pages - ASP.NET Core: From 0 to overkill"
url: https://daily.dev/posts/episode-016---authentication-with-identity-and-razor-pages---asp-net-core-from-0-to-overkill-xouqox8lf
source_url: https://blog.codingmilitia.com/2019/02/24/aspnet-016-from-zero-to-overkill-authentication-with-identity-and-razor-pages
type: article
source: "Coding Militia (João Antunes)"
published: 2026-05-31T07:45:40.256Z
updated: 2026-05-31T09:28:04.919Z
tags: ["authentication", ".net", "c#", "aspnetcore"]
reading_time: 18
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Episode 016 - Authentication with Identity and Razor Pages - ASP.NET Core: From 0 to overkill

**[Coding Militia \(João Antunes\)](https://daily.dev/sources/codingmilitia)** · 18 min read · 0 upvotes · 0 comments

## Summary

A step-by-step walkthrough of building a standalone authentication service using ASP.NET Core Identity and Razor Pages. Covers four approaches to setting up Identity (pre-configured template, scaffolding, manual setup, and rolling your own), then walks through manual implementation including DbContext setup with IdentityDbContext, Startup configuration, and building registration, login, logout, and account management pages. Key Identity classes like UserManager and SignInManager are explained in context, along with Razor Pages-specific patterns like BindProperty, page handlers, TempData, and folder-level authorization conventions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.codingmilitia.com/2019/02/24/aspnet-016-from-zero-to-overkill-authentication-with-identity-and-razor-pages>

---

Tags: [#authentication](https://daily.dev/tags/authentication), [#.net](https://daily.dev/tags/.net), [#c#](https://daily.dev/tags/c#), [#aspnetcore](https://daily.dev/tags/aspnetcore)

[View this post on daily.dev](https://daily.dev/posts/episode-016---authentication-with-identity-and-razor-pages---asp-net-core-from-0-to-overkill-xouqox8lf)
