Does anyone have a working template? I tried to pin down such a configuration myself, but couldn't.
I keep getting an http 401 "unauthorized" error when sending a HTTP request from the client to a secure endpoint on the server.
marc_s
760k186 gold badges1.4k silver badges1.5k bronze badges
asked Apr 1, 2025 at 19:28
Mahatma Gandhi
1131 silver badge11 bronze badges
-
I still couldn't understand your requirement clearly, do you mean you want to use Identity server to protect your blazor web app or protect an API and let the blazor web app access that api?Brando Zhang– Brando Zhang2025年04月02日 03:02:08 +00:00Commented Apr 2, 2025 at 3:02
-
In web app template we have two projects. Server, and Wsam. On Server, I want reach secure endpoint but from Wsam i can't. I can reach any unsecure endpoint, so its working, but if endpoint is secured, i can;tMahatma Gandhi– Mahatma Gandhi2025年04月02日 10:14:04 +00:00Commented Apr 2, 2025 at 10:14
-
Could you please share how your blazor get the token and use that token to send requst to the server/Brando Zhang– Brando Zhang2025年04月03日 07:59:15 +00:00Commented Apr 3, 2025 at 7:59