Microsoft.Identity.Client.AcquireTokenByUsernamePasswordParameterBuilder
public sealed class AcquireTokenByUsernamePasswordParameterBuilder : AbstractPublicClientAcquireTokenParameterBuilder<AcquireTokenByUsernamePasswordParameterBuilder>
Parameter builder for the AcquireTokenByUsernamePassword
operation. See https://aka.ms/msal-net-up
public AcquireTokenByUsernamePasswordParameterBuilder WithFederationMetadata(string federationMetadata)
Enables MSAL to read the federation metadata for a WS-Trust exchange from the provided input instead of acquiring it from an endpoint.
This is only applicable for managed ADFS accounts. See https://aka.ms/MsalFederationMetadata.
public AcquireTokenByUsernamePasswordParameterBuilder WithProofOfPossession(string nonce, HttpMethod httpMethod, Uri requestUri)
Modifies the token acquisition request so that the acquired token is a Proof-of-Possession token (PoP), rather than a Bearer token.
PoP tokens are similar to Bearer tokens, but are bound to the HTTP request and to a cryptographic key, which MSAL can manage on Windows.
Note that only the host and path parts of the request URI will be bound.
See https://aka.ms/msal-net-pop