Class AcquireTokenByIntegratedWindowsAuthParameterBuilder
Builder for AcquireTokenByIntegratedWindowsAuth
public sealed class AcquireTokenByIntegratedWindowsAuthParameterBuilder : AbstractPublicClientAcquireTokenParameterBuilder<AcquireTokenByIntegratedWindowsAuthParameterBuilder>
- Inheritance
-
AbstractPublicClientAcquireTokenParameterBuilder<AcquireTokenByIntegratedWindowsAuthParameterBuilder>AcquireTokenByIntegratedWindowsAuthParameterBuilder
- Inherited Members
- Extension Methods
Methods
WithFederationMetadata(string)
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 AcquireTokenByIntegratedWindowsAuthParameterBuilder WithFederationMetadata(string federationMetadata)
Parameters
federationMetadatastringFederation metadata in the form of XML.
Returns
- AcquireTokenByIntegratedWindowsAuthParameterBuilder
The builder to chain the .With methods
WithUsername(string)
Specifies the username.
public AcquireTokenByIntegratedWindowsAuthParameterBuilder WithUsername(string username)
Parameters
usernamestringIdentifier of the user account for which to acquire a token with Integrated Windows Authentication. Generally in UserPrincipalName (UPN) format, e.g.
john.doe@contoso.com
Returns
- AcquireTokenByIntegratedWindowsAuthParameterBuilder
The builder to chain the .With methods.
Remarks
Specifying the username explicitly is normally not needed, but some Windows administrators set policies preventing applications from looking up the signed-in user and in that case the username needs to be passed.