![]() We'll stick to the standard (?) EntityFramework + Identity Server but thanks god, JWT is rather "mobile" so you can always create any other solution.įirst, the NuGet packages. This is rather easy and is mostly well documented anyway, but we'll go through the major parts just in case. Pick the " Asp.Net hosted" because you (like me) wants to know the whole pipeline is made between client-server authentication. Pick "No authentication" because you (like me) probably wants to know how the whole authentication pipeline is working. NET, Blazor or JWT, not like a HR manager gonna try to build an SPA. Launch up Visual Studio / Rider because you, searching for a rather specific solution has 99.9999% chance to already know what is C#.That's pretty cheap way to make your boring blog post longer. They literally assume someone to not know what is C# when they specifically searches for "Blazor JWT". EnvironmentĪ lot of tutorials starts from creating a new universe where you are god, remaking the human race, reinventing the silicon semiconductor, the computer, then install VS and like/subscribe their channel bla. This is not a noob level tutorial, so I'm not going to over-detail every single part and I expect the reader to have a basic knowledge in ASP.NET. Yea, but "How the F do I create my OWN login page?"Īlright, let's get serious. Some tutorials stops at "AYE loser, use the built-in login page, git gud". Even the MSDN is pretty cheaply documented on how the unholy hell does the built-in solution works. Using the built-in pages and controllers in ASP.NET is not just a pain in the ass but also rather rigid, and helps little to zero when you try to crate a fancier login/register panel. We are going to stick to the absolute bare minimum I could figure out how to make JWT a thing in Blazor Wasm without picking already pre-made templates as they helps nothing with learning. After wasting countless hours of digging through the ASP.NET source code and understanding how the AuthorizeView works, and how JWT works, I decided to write a rage fueled bullshit-less tutorial how to use JWT without remaking alot of things already made in ASP.NET. many of them is full of gargantuan bullshitting, many expecting you to reinvent (well, copy-paste their reinvention) of the wheel for no good reason. When one tries to look up some tutorial on how to do JWT in Blazor WASM, there are a lot of tutorials too. ![]() JWT is among (if not the) most popular SPA authentication solution. ![]() When one plans to build a Blazor WASM application and comes accross the authentication part, there are tons of solutions to go. This tutorial was written from a rage-impulse. Read detailed descriptions of the rules here.
0 Comments
Leave a Reply. |