pub enum Authority {
AzureActiveDirectory,
AzureDirectoryFederatedServices,
Common,
Organizations,
Consumers,
TenantId(String),
}
Expand description
Specifies which Microsoft accounts can be used for sign-in with a given application. See https://aka.ms/msal-net-application-configuration
Variants§
AzureActiveDirectory
Users with both a personal Microsoft account and a work or school account from Azure AD can sign in to the application. /// Maps to https://AzureCloudInstance/common/
Authority::AzureActiveDirectory is the same as Authority::Common. Authority::Common is a convenience enum variant that may be more familiar with it from the Microsoft Identity Platform documentation.
AzureDirectoryFederatedServices
Common
Users with both a personal Microsoft account and a work or school account from Azure AD can sign in to the application. Maps to https://[instance]/common/
Authority::Common is the same as Authority::AzureActiveDirectory.
Authority::Common is a convenience enum variant that may be more familiar with it from the Microsoft Identity Platform documentation.
Organizations
Only users with work or school accounts from Azure AD can sign in to the application.
Consumers
Only users with a personal Microsoft account can sign in to the application.
TenantId(String)
The value can be the domain name of the Azure AD tenant or the tenant ID in GUID format. You can also use the consumer tenant GUID, 9188040d-6c67-4c5b-b112-36a304b66dad, in place of consumers.
Only users from a specific Azure AD tenant (directory members with a work or school account or directory guests with a personal Microsoft account) can sign in to the application.