syao
syao
CC#
Created by syao on 2/12/2023 in #help
❔ 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
4 replies