Enum graph_oauth::Authority
source · 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.
Implementations§
Trait Implementations§
source§impl From<&AadAuthorityAudience> for Authority
impl From<&AadAuthorityAudience> for Authority
source§fn from(value: &AadAuthorityAudience) -> Self
fn from(value: &AadAuthorityAudience) -> Self
source§impl From<AadAuthorityAudience> for Authority
impl From<AadAuthorityAudience> for Authority
source§fn from(value: AadAuthorityAudience) -> Self
fn from(value: AadAuthorityAudience) -> Self
source§impl Ord for Authority
impl Ord for Authority
source§impl PartialEq for Authority
impl PartialEq for Authority
source§impl PartialOrd for Authority
impl PartialOrd for Authority
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Authority
impl StructuralPartialEq for Authority
Auto Trait Implementations§
impl Freeze for Authority
impl RefUnwindSafe for Authority
impl Send for Authority
impl Sync for Authority
impl Unpin for Authority
impl UnwindSafe for Authority
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.