IMsalWsTrustHttpClientFactory Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates HTTP clients for federation metadata (MEX) and WS-Trust requests.
public interface IMsalWsTrustHttpClientFactory : Microsoft.Identity.Client.IMsalHttpClientFactory
type IMsalWsTrustHttpClientFactory = interface
interface IMsalHttpClientFactory
Public Interface IMsalWsTrustHttpClientFactory
Implements IMsalHttpClientFactory
- Implements
Remarks
Implement this interface on the factory supplied to MSAL to customize MEX and WS-Trust transport. If the supplied factory does not implement this interface, MSAL uses cached platform-default clients for these requests instead. Other requests continue to use the supplied factory. Implementations must be thread-safe and reuse clients, keeping different credential configurations isolated. Configure handlers before their first request; do not modify shared clients or handlers when this method is called. MSAL does not dispose the returned clients. The client's Timeout applies to each HTTP attempt, and MSAL's retry budget restarts for each redirect hop. There is no additional timeout for the entire redirect chain.
Methods
| Name | Description |
|---|---|
| GetHttpClient() |
Method returning an HTTP client that will be used to communicate with Azure AD. This enables advanced scenarios. See https://aka.ms/msal-net-application-configuration. (Inherited from IMsalHttpClientFactory) |
| GetHttpClient(Boolean) |
Returns a client with automatic redirects disabled and the requested server credential policy. MSAL validates and follows redirects itself. |