Searching for a .NET Core Web + API solution

Hi.

I’m searching for a architecture with a MVC or Razor page that communicates with the backend (.NET Core Web API) based on the sign in credentials that current user logged in with to the web app.
Is it possible for a user to use same credentials that our user has been assigned to through the web browser? The razor page could maybe get the token and use it for the REST Client to communicate to the Web API server?

Razor -> Backend Rest client -> external web api

New to Auth0, so please be kind.

Hi @biasync,

Welcome to the Auth0 Community Forum! Thanks for reaching out with your questions. There is a lot to learn here, but I will try and make things as digestable as possible.

First, take a look at the quickstarts for the .NET Core MVC and the .NET Core API:

This one will demonstrate how to log a user in:

This one will demonstarte how to secure your API with authorization:

You should be able to combine these two concepts to achieve your desired result.

For some further reading, I’ll direct you to our architecture scenarios page, specifically the section on server + api:

Feel free to ask any questions you have along the way!

Good luck,
Dan

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.