Base solution for your next web application
Open Closed

webapi that can access all tenants? #3756


User avatar
0
mdonogma created

I need to be able to access all data in one of the SQL tables via WebAPI.

I do not want to use identity server - the current console app uses identity server to login to webapi.

Need to call WebAPI in .Web.Mvc project directly as we are not deploying the .Hosts project.

Using mvc .net core 4.3 template.

How do i login to .Web.Mvc webapi and make a call to access all data in SQL table?


1 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    hi

    i created a sample code for login to aspnet zero and get token. <a class="postlink" href="https://gist.github.com/ebicoglu/3effb448a0eb9cbec64b56eaae9dd2a4">https://gist.github.com/ebicoglu/3effb4 ... eaae9dd2a4</a>