© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
2 replies
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)
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Razor pages redirect
C#CC# / help
4y ago
❔ Razor pages view
C#CC# / help
4y ago
MVC vs Razor Pages
C#CC# / help
13mo ago
razor pages vs .cshtml
C#CC# / help
3y ago