Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor WebApp with APIController and OIDC Authentication

$
0
0

does anyone have an example of a Blazor WebApp in combination with WebAPI APIController?

I would like to make my application accessible via Api. My own frontend should then also use the API.

The frontend is InteractiveAuto. So it is executed on the server first. Here I am always missing the cookie in HttpClient. If I add the cookie to the request, everything works as desired, but I don't know if this is the right solution.

  1. Added ApiControllers
  2. MapControllers
  3. Add OIDC Authentication
  4. Added Scoped HttpClient
  5. HttpClient has no AuthCookie => Here is the problem

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>