pub enum AadAuthorityAudience {
AzureAdMyOrg(String),
AzureAdAndPersonalMicrosoftAccount,
AzureAdMultipleOrgs,
PersonalMicrosoftAccount,
}
Expand description
Specifies which Microsoft accounts can be used for sign-in with a given application. See https://aka.ms/msal-net-application-configuration
AadAuthorityAudience uses the application names selected in the Azure Portal and maps to Authority
Variants§
AzureAdMyOrg(String)
Users with a Microsoft work or school account in my organization’s Azure AD tenant (i.e. single tenant). Maps to https://AzureCloudInstance/[AadAuthorityAudience::AzureAdMyOrg(tenant_id)] or https://[instance]/[tenant_id]
§Using Tenant Id
use graph_oauth::AadAuthorityAudience;
let authority_audience = AadAuthorityAudience::AzureAdMyOrg("tenant_id".into());
AzureAdAndPersonalMicrosoftAccount
Users with a personal Microsoft account, or a work or school account in any organization’s Azure AD tenant Maps to https://AzureCloudInstance/common/ or https://[instance]/[common]/\
AzureAdMultipleOrgs
Users with a Microsoft work or school account in any organization’s Azure AD tenant (i.e. multi-tenant). Maps to https://AzureCloudInstance/organizations/ or https://[instance]/organizations/
PersonalMicrosoftAccount
Users with a personal Microsoft account. Maps to https://AzureCloudInstance/consumers/ or https://[instance]/consumers/
Implementations§
Trait Implementations§
Source§impl AsRef<str> for AadAuthorityAudience
impl AsRef<str> for AadAuthorityAudience
Source§impl Clone for AadAuthorityAudience
impl Clone for AadAuthorityAudience
Source§fn clone(&self) -> AadAuthorityAudience
fn clone(&self) -> AadAuthorityAudience
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more