pub enum Tenant {
Common,
Organizations,
Consumers,
Issuer(String),
}
Expand description
Control who can sign into the application.
It must match the target audience configuration of registered application.
See: https://learn.microsoft.com/en-us/graph/auth-v2-user?tabs=http#parameters
Variants§
Common
For both Microsoft accounts and work or school accounts.
§Notes
This is only allowed for application with type AzureADandPersonalMicrosoftAccount
(Accounts in any organizational directory (Any Microsoft Entra directory - Multitenant) and
personal Microsoft accounts (e.g. Skype, Xbox)). If the corresponding application by
Client ID does not have this type, authentications will fail unconditionally.
See: https://learn.microsoft.com/en-us/entra/identity-platform/supported-accounts-validation
Organizations
For work or school accounts only.
Consumers
For Microsoft accounts only.
Issuer(String)
Tenant identifiers such as the tenant ID or domain name.
See: https://learn.microsoft.com/en-us/entra/identity-platform/v2-protocols#endpoints
Trait Implementations§
impl Eq for Tenant
impl StructuralPartialEq for Tenant
Auto Trait Implementations§
impl Freeze for Tenant
impl RefUnwindSafe for Tenant
impl Send for Tenant
impl Sync for Tenant
impl Unpin for Tenant
impl UnwindSafe for Tenant
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.