Skip to content
0:00 / 0:00

#asp.netcore#authentication#minimalapis

ASP.NET Core Authentication (.NET 7 Minimal Apis C#)

Raw Coding

77K subscribers • 5 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Anton, creator of Raw Coding
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

193K views4 years ago2 recommendations

Web developmentSecurityHTTP, REST and GraphQLWeb and application securityC# and .NET

Anton explains how to implement authentication in ASP.NET Core using minimal APIs in .NET 7.

ASP.NET Core authentication tutorial with asp.net core c# minimal apis authentication example, working with .net 7, .net 6 and .net 5 Patreon 🤝 patreon.com/raw_coding Courses 📚 learning.raw-coding.dev Shop 🛒 shop.raw-coding.dev Discord 💬 discord.gg/xgNS26k Twitter 📣 twitter.com/anton_t0shik Twitch 🎥 twitch.tv/raw_coding 👉 Try Rider jetbrains.com/store/redeem/ RD5K9-4TXXW-KMV3G-NYWSF-3ZSTP 📃 Source Code patreon.com/raw_coding ⏭ ASP.NET Core Authorization youtu.be/5NUCPJTbLWY 📀 Authentication and Authorization Playlist youtube.com/playlist?list=PLOeFnOV9YBa4yaz-uIi5T4ZW3QQGHJQXi 🕰 Timestamps introduction re-building authentication built in solution #dotnet #auth #aspnetcore

Why it's here

2 people recommend this

What people say. Recommended as a great tutorial and deep dive into the ASP.NET Core authentication and authorization system.

u/Bbooyain r/dotnet • Recommends

On “Not sure how to make a login system”

Its not simple I liked Anton's videos(rawcoding), this one is part of a playlist dedicated to .net auth. link to this video

u/BigOnLognin r/dotnet • Recommends

On “How do you guys handle HTTP Only Cookies on a Web API?”

This has been built in to ASP.NET since the beginning. If you want a deep dive, checkout Raw Coding's authentication and authorization playlist. If you want a solution, here's 43 lines of code that implement cookie auth, with login, logout, and a protected endpoint using System.Security.Claims; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; var builder = WebApplication.CreateBuilder(args); builder.Services.AddAuthentication() .AddCookie(); builder.Services.AddAuthorization(); var app = builder.Build(); app.UseAuthentication(); app.UseAuthorization(); app.MapGet("/…

u/93Porygonin r/dotnet • Mentions

On “Authentication with dapper”

ok so first i've tried: 1) this but since i am trying to build api, i wanted it without cookies. 2) this one wanted EF. 3) this might be good but tbh i couldnt understand it with code alone, and its full MVC so i kinda assumed there will be cookies too. i've read and watch more, but these were the last things i found

u/93Porygonin r/dotnet • Mentions

On “Authentication with dapper”

ok so today i've tried: 1) this but since i am trying to build api, i wanted it without cookies. 2) this one wanted EF. 3) this might be good but tbh i couldnt understand it with code alone, and its full MVC so i kinda assumed there will be cookies too. i've read and watch more, but these were the last things i found