Monday, April 30, 2018

How to consume a Web API from a MVC/Razor Page web app?

I can understand that I will be able to use HttpClient to interact with the API and transact data but what I don't understand is how JWT authentication will work as, if I am not wrong, server side MVC/Razor Pages cannot access local storage of client.

And please don't tell me to use Angular/React/Vue or other client only stuffs. I need to know this because of a reason, if I had the choice of switching to a SPA app, I would've.

How to consume a Web API from a MVC/Razor Page web app? Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team