How to pass a named HttpClient with AuthorizationMessageHandler to HttpProxy in Csla 6 for Blazor Wasm #2973
Unanswered
mtavares628
asked this question in
Questions
Replies: 1 comment 2 replies
-
The The most important part is that it uses a lambda to implement the new Csla.Channels.Http.HttpProxy(applicationContext, client, proxyOptions); You are right - it creates an If you can think of a more elegant solution, perhaps where you could pass an |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the AuthorizationMessageHandler in WebAssembly.Authentication to pass my authentication info from my blazor webassembly app to an AspNetCore Web Api. In Csla 5 I took the following approach:
Here is the code in my Program.cs illustrating what I'm talking about:
And here is the DataportalHttpProxy class:
In Csla 6, the UseCsla method goes away, and it looks like it creates the HttpProxy on the fly within the UseHttpProxy extension method. How I can get my named http client passed into that HttpProxy so that it uses the AuthorizationMessagehandler?
Beta Was this translation helpful? Give feedback.
All reactions