Struct inth_oauth2_azure::AzureTenant
source · pub struct AzureTenant { /* private fields */ }
Expand description
Only users with a work or school account from a specific Azure AD tenant can sign in to the application. Either the friendly domain name of the Azure AD tenant or the tenant’s GUID identifier can be used.
Eg 8eaef023-2b34-4da1-9baa-8bc8c9d6a490
or contoso.onmicrosoft.com
let client = oauth::Client::new(
AzureTenant::new("8eaef023-2b34-4da1-9baa-8bc8c9d6a490"),
"client-id".into(),
"client-secret".into(),
"redirect-uri".into()
);
Implementations
sourceimpl AzureTenant
impl AzureTenant
Trait Implementations
sourceimpl Clone for AzureTenant
impl Clone for AzureTenant
sourcefn clone(&self) -> AzureTenant
fn clone(&self) -> AzureTenant
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AzureTenant
impl Debug for AzureTenant
sourceimpl PartialEq<AzureTenant> for AzureTenant
impl PartialEq<AzureTenant> for AzureTenant
sourcefn eq(&self, other: &AzureTenant) -> bool
fn eq(&self, other: &AzureTenant) -> bool
sourceimpl Provider for AzureTenant
impl Provider for AzureTenant
type Token = Bearer<<AzureTenant as Provider>::Lifetime>
type Token = Bearer<<AzureTenant as Provider>::Lifetime>
The type of token issued by the provider.
sourcefn credentials_in_body(&self) -> bool
fn credentials_in_body(&self) -> bool
Provider requires credentials via request body. Read more
impl Eq for AzureTenant
impl StructuralEq for AzureTenant
impl StructuralPartialEq for AzureTenant
Auto Trait Implementations
impl RefUnwindSafe for AzureTenant
impl Send for AzureTenant
impl Sync for AzureTenant
impl Unpin for AzureTenant
impl UnwindSafe for AzureTenant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.