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
http.sys: Allow configuring HTTP_AUTH_EX_FLAGs as options (dotnet#51833)
* http.sys: Allow configuring HTTP_AUTH_EX_FLAGs as options
The native HTTP.sys API offers two extended authentication flags:
- `HTTP_AUTH_EX_FLAG_ENABLE_KERBEROS_CREDENTIAL_CACHING` and
- `HTTP_AUTH_EX_FLAG_CAPTURE_CREDENTIAL`
that can be used by users to fine-tune their Windows authentication
setups.
For instance, the `HTTP_AUTH_EX_FLAG_ENABLE_KERBEROS_CREDENTIAL_CACHING`
flag can be used to avoid having to authenticate every request and make
the authentication session-based, thus reducing the overall number of
requests and improving the high-latency scenarios. Enabling it can be
used to achieve the same behavior as with the `authPersistNonNTLM`
option in IIS. (See dotnet#13634)
This commit exposes both flags as options in the authentication manager.
Because setting the extended flags requires a different property type
(`HttpServerExtendedAuthenticationProperty`), we take additional precaution
to only use that property type if we actually have the extended flags to
set, and use the original `HttpServerAuthenticationProperty` otherwise.
* http.sys: Rename: CaptureCredential → CaptureCredentials
* http.sys: Clarify description for `EnableKerberosCredentialCaching`
* http.sys: Further clarify description for `EnableKerberosCredentialCaching`
* http.sys: Further clarify documentation for new options
Based on the discussion in dotnet#51990
* http.sys: Tweak documentation for `CaptureCredentials`
0 commit comments