C
C#3w ago
Jake

Razor Pages Authentication issues

Hello. I am using Razor Pages, and I have been trying for a few days now to set up authentication correctly. I've tried GPT, I've tried looking for guides etc. I have a database with usernames and passwords, and a backend server to authenticate them (I used a guide which told me to generate JWTs but I'll change it if needed), literally all I want is for the client to be access @ authorise pages when logged in and ideally to know the name of the user whos logged in. I've tried using the app's http context but it seems like that isn't the way to go for razor as I understand it. Can someone please either help me debug my app if http context is the way to go or link me to how it should be done otherwise. thanks (please ping me)
2 Replies
Imtiaz
Imtiaz3w ago
I would strongly suggest checking out "Raw Coding" channel. You will learn so much about authentication. Here is the playlist link https://www.youtube.com/watch?v=ExQJljpj1lY&list=PLOeFnOV9YBa4yaz-uIi5T4ZW3QQGHJQXi
Raw Coding
YouTube
ASP.NET Core Authentication (.NET 7 Minimal Apis C#)
ASP.NET Core authentication tutorial with asp.net core c# minimal apis authentication example, working with .net 7, .net 6 and .net 5 Patreon 🤝 https://www.patreon.com/raw_coding Courses 📚 https://learning.raw-coding.dev Shop 🛒 https://shop.raw-coding.dev Discord 💬 https://discord.gg/xgNS26k Twitter 📣 https://twitter.com/...
Jake
JakeOP3w ago
He looks great but i was hoping for something spesifically covering razor
Want results from more Discord servers?
Add your server