pub struct PublicClientApplication<Credential> { /* private fields */ }
Expand description
Clients incapable of maintaining the confidentiality of their credentials (e.g., clients executing on the device used by the resource owner, such as an installed native application or a web browser-based application), and incapable of secure client authentication via any other means.
See Client Types in the specification.
Implementations§
Source§impl PublicClientApplication<()>
impl PublicClientApplication<()>
pub fn builder(client_id: impl AsRef<str>) -> PublicClientApplicationBuilder
Trait Implementations§
Source§impl<Credential: Clone + Debug + Send + Sync + TokenCache> ClientApplication for PublicClientApplication<Credential>
impl<Credential: Clone + Debug + Send + Sync + TokenCache> ClientApplication for PublicClientApplication<Credential>
fn get_token_silent(&mut self) -> AuthExecutionResult<String>
fn get_token_silent_async<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = AuthExecutionResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn with_force_token_refresh(&mut self, force_token_refresh: ForceTokenRefresh)
Source§impl<Credential: Clone> Clone for PublicClientApplication<Credential>
impl<Credential: Clone> Clone for PublicClientApplication<Credential>
Source§fn clone(&self) -> PublicClientApplication<Credential>
fn clone(&self) -> PublicClientApplication<Credential>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Credential: Debug> Debug for PublicClientApplication<Credential>
impl<Credential: Debug> Debug for PublicClientApplication<Credential>
Source§impl From<AuthorizationCodeSpaCredential> for PublicClientApplication<AuthorizationCodeSpaCredential>
impl From<AuthorizationCodeSpaCredential> for PublicClientApplication<AuthorizationCodeSpaCredential>
Source§fn from(value: AuthorizationCodeSpaCredential) -> Self
fn from(value: AuthorizationCodeSpaCredential) -> Self
Converts to this type from the input type.
Source§impl From<DeviceCodeCredential> for PublicClientApplication<DeviceCodeCredential>
impl From<DeviceCodeCredential> for PublicClientApplication<DeviceCodeCredential>
Source§fn from(value: DeviceCodeCredential) -> Self
fn from(value: DeviceCodeCredential) -> Self
Converts to this type from the input type.
Source§impl From<ResourceOwnerPasswordCredential> for PublicClientApplication<ResourceOwnerPasswordCredential>
impl From<ResourceOwnerPasswordCredential> for PublicClientApplication<ResourceOwnerPasswordCredential>
Source§fn from(value: ResourceOwnerPasswordCredential) -> Self
fn from(value: ResourceOwnerPasswordCredential) -> Self
Converts to this type from the input type.
Source§impl<Credential: Clone + Debug + Send + Sync + TokenCredentialExecutor> TokenCredentialExecutor for PublicClientApplication<Credential>
impl<Credential: Clone + Debug + Send + Sync + TokenCredentialExecutor> TokenCredentialExecutor for PublicClientApplication<Credential>
fn uri(&mut self) -> IdentityResult<Url>
fn form_urlencode(&mut self) -> IdentityResult<HashMap<String, String>>
fn client_id(&self) -> &Uuid
fn azure_cloud_instance(&self) -> AzureCloudInstance
fn app_config(&self) -> &AppConfig
fn execute(&mut self) -> AuthExecutionResult<Response>
fn execute_async<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = AuthExecutionResult<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn request_parts(&mut self) -> IdentityResult<AuthorizationRequestParts>
fn build_request(&mut self) -> AuthExecutionResult<RequestBuilder>
fn build_request_async(&mut self) -> AuthExecutionResult<RequestBuilder>
fn basic_auth(&self) -> Option<(String, String)>
fn extra_header_parameters(&self) -> &HeaderMap
fn issuer(&self) -> Result<Url, ParseError>
fn extra_query_parameters(&self) -> &HashMap<String, String>
Auto Trait Implementations§
impl<Credential> Freeze for PublicClientApplication<Credential>where
Credential: Freeze,
impl<Credential> RefUnwindSafe for PublicClientApplication<Credential>where
Credential: RefUnwindSafe,
impl<Credential> Send for PublicClientApplication<Credential>where
Credential: Send,
impl<Credential> Sync for PublicClientApplication<Credential>where
Credential: Sync,
impl<Credential> Unpin for PublicClientApplication<Credential>where
Credential: Unpin,
impl<Credential> UnwindSafe for PublicClientApplication<Credential>where
Credential: UnwindSafe,
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