AbstractApplicationBuilder<T>.WithTenantId(String) Method

Definition

Sets the tenant ID of the organization from which the application will let users sign-in. This is classically a GUID or a domain name. See https://aka.ms/msal-net-application-configuration. Although it is also possible to set tenantId to common, organizations, and consumers, it's recommended to use one of the overrides of WithAuthority(AzureCloudInstance, AadAuthorityAudience, Boolean).

public T WithTenantId (string tenantId);
member this.WithTenantId : string -> 'T
Public Function WithTenantId (tenantId As String) As T

Parameters

tenantId
String

tenant ID of the Azure AD tenant or a domain associated with this Azure AD tenant, in order to sign-in a user of a specific organization only

Returns

T

The builder to chain the .With methods

Applies to