C
C#2y ago
syao

❔ 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
2 Replies
Royce
Royce2y ago
I also wanna implement authentication/authorization to my webAPI! didn't start yet
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server