C#C
C#3y ago
valoy

❔ How to deal with authentication/authorization in a Razor Page application through a webapi

How do you deal with authentication/authorization when you have a backend that sends you a jwt to your razor pages app?

The Razor Page application and the WebAPI are in separate projects

Do I need to configure authentication in the razor pages app as well? How can I use the jwt sent to me by the backend to authenticate users within the razor page app?

Do I have to somehow get the ClaimsPrinciple and set them manually in the frontend application?

I'm quite obscure on this topic, I would like to know how this is handled in a real environment Hmm
Was this page helpful?