pub struct AuthClient { /* private fields */ }Expand description
Databricks profile and acquisition policy over the shared AuthSession lifecycle.
Implementations§
Source§impl AuthClient
impl AuthClient
Trait Implementations§
Source§impl AuthSession for AuthClient
impl AuthSession for AuthClient
Source§fn auth_client(&self) -> &AuthClient
fn auth_client(&self) -> &AuthClient
Return the shared client that owns this session’s lifecycle.
Source§fn store_name(&self) -> &'static str
fn store_name(&self) -> &'static str
Identify the active credential store.
Source§fn token_with_login<'life0, 'async_trait>(
&'life0 self,
login: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn token_with_login<'life0, 'async_trait>(
&'life0 self,
login: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Resolve binding login policy: true forces login, false forbids it, None allows it.
Source§fn login<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn login<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Explicitly acquire and persist a new credential.
Source§fn token<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn token<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Load or renew a credential without initiating an interactive login.
Source§fn token_or_login<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn token_or_login<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Load or renew a credential, allowing login when none is stored.
Source§fn force_refresh<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn force_refresh<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Renew the stored credential even when it has not reached its refresh window.
Source§fn refresh_rejected_token<'life0, 'life1, 'async_trait>(
&'life0 self,
stale: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn refresh_rejected_token<'life0, 'life1, 'async_trait>(
&'life0 self,
stale: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Reuse another caller’s replacement or renew the rejected credential.
Auto Trait Implementations§
impl !RefUnwindSafe for AuthClient
impl !UnwindSafe for AuthClient
impl Freeze for AuthClient
impl Send for AuthClient
impl Sync for AuthClient
impl Unpin for AuthClient
impl UnsafeUnpin for AuthClient
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
Mutably borrows from an owned value. Read more