You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 43253d8
Browse filesBrowse the repository at this point in the historyBrowse files
/// Initializes the <see cref="HttpClient"/> with the default configuration and middlewares including a authentication middleware using the <see cref="IAuthenticationProvider"/> if provided.
25
+
/// Initializes the <see cref="HttpClient"/> with the default configuration and middleware, without authorization middleware.
26
26
/// </summary>
27
27
/// <param name="finalHandler">The final <see cref="HttpMessageHandler"/> in the http pipeline. Can be configured for proxies, auto-decompression and auto-redirects </param>
28
28
/// <param name="optionsForHandlers">A array of <see cref="IRequestOption"/> objects passed to the default handlers.</param>
@@ -50,16 +50,17 @@ public static HttpClient Create(IList<DelegatingHandler> handlers, HttpMessageHa
The default middleware runs in this outbound order: URL replacement, query parameter name decoding, User-Agent, redirect, retry, headers inspection, and body inspection. The default transport handles response decompression. Each redirect hop has its own retry budget, and inspection runs for each attempt immediately before the transport.
16
+
17
+
For arbitrary HTTP requests, the `KiotaClientFactory.Create` overload that accepts a bearer token authentication provider adds authorization after User-Agent and before redirect. Generated clients authenticate in the request adapter and do not need that overload. The default redirect policy strips authorization when the origin changes, and a claims challenge from a different origin does not trigger authentication.
18
+
15
19
## Debugging
16
20
17
21
If you are using Visual Studio Code as your IDE, the **launch.json** file already contains the configuration to build and test the library. Otherwise, you can open the **Microsoft.Kiota.Http.HttpClientLibrary.sln** with Visual Studio.
0 commit comments