pub struct ConfidentialClientApplication<Credential> { /* private fields */ }
Expand description
Clients capable of maintaining the confidentiality of their credentials (e.g., client implemented on a secure server with restricted access to the client credentials), or capable of secure client authentication using other means.
See Client Types in the specification.
§Build a confidential client for the authorization code grant.
Use with_authorization_code to set the authorization code received from the authorization step, see Request an authorization code You can use the AuthCodeAuthorizationUrlParameterBuilder to build the url that the user will be directed to authorize at.
Implementations§
source§impl ConfidentialClientApplication<()>
impl ConfidentialClientApplication<()>
pub fn builder( client_id: impl TryInto<Uuid> ) -> ConfidentialClientApplicationBuilder
source§impl<Credential: Clone + Debug + Send + Sync + TokenCredentialExecutor> ConfidentialClientApplication<Credential>
impl<Credential: Clone + Debug + Send + Sync + TokenCredentialExecutor> ConfidentialClientApplication<Credential>
pub fn into_inner(self) -> Credential
Trait Implementations§
source§impl<Credential: Clone + Debug + Send + Sync + TokenCache + TokenCredentialExecutor> ClientApplication for ConfidentialClientApplication<Credential>
impl<Credential: Clone + Debug + Send + Sync + TokenCache + TokenCredentialExecutor> ClientApplication for ConfidentialClientApplication<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 ConfidentialClientApplication<Credential>
impl<Credential: Clone> Clone for ConfidentialClientApplication<Credential>
source§fn clone(&self) -> ConfidentialClientApplication<Credential>
fn clone(&self) -> ConfidentialClientApplication<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 ConfidentialClientApplication<Credential>
impl<Credential: Debug> Debug for ConfidentialClientApplication<Credential>
source§impl From<AuthorizationCodeAssertionCredential> for ConfidentialClientApplication<AuthorizationCodeAssertionCredential>
impl From<AuthorizationCodeAssertionCredential> for ConfidentialClientApplication<AuthorizationCodeAssertionCredential>
source§fn from(value: AuthorizationCodeAssertionCredential) -> Self
fn from(value: AuthorizationCodeAssertionCredential) -> Self
Converts to this type from the input type.
source§impl From<AuthorizationCodeCertificateCredential> for ConfidentialClientApplication<AuthorizationCodeCertificateCredential>
impl From<AuthorizationCodeCertificateCredential> for ConfidentialClientApplication<AuthorizationCodeCertificateCredential>
source§fn from(value: AuthorizationCodeCertificateCredential) -> Self
fn from(value: AuthorizationCodeCertificateCredential) -> Self
Converts to this type from the input type.
source§impl From<AuthorizationCodeCredential> for ConfidentialClientApplication<AuthorizationCodeCredential>
impl From<AuthorizationCodeCredential> for ConfidentialClientApplication<AuthorizationCodeCredential>
source§fn from(value: AuthorizationCodeCredential) -> Self
fn from(value: AuthorizationCodeCredential) -> Self
Converts to this type from the input type.
source§impl From<ClientAssertionCredential> for ConfidentialClientApplication<ClientAssertionCredential>
impl From<ClientAssertionCredential> for ConfidentialClientApplication<ClientAssertionCredential>
source§fn from(value: ClientAssertionCredential) -> Self
fn from(value: ClientAssertionCredential) -> Self
Converts to this type from the input type.
source§impl From<ClientCertificateCredential> for ConfidentialClientApplication<ClientCertificateCredential>
impl From<ClientCertificateCredential> for ConfidentialClientApplication<ClientCertificateCredential>
source§fn from(value: ClientCertificateCredential) -> Self
fn from(value: ClientCertificateCredential) -> Self
Converts to this type from the input type.
source§impl From<ClientSecretCredential> for ConfidentialClientApplication<ClientSecretCredential>
impl From<ClientSecretCredential> for ConfidentialClientApplication<ClientSecretCredential>
source§fn from(value: ClientSecretCredential) -> Self
fn from(value: ClientSecretCredential) -> Self
Converts to this type from the input type.
source§impl From<OpenIdCredential> for ConfidentialClientApplication<OpenIdCredential>
impl From<OpenIdCredential> for ConfidentialClientApplication<OpenIdCredential>
source§fn from(value: OpenIdCredential) -> Self
fn from(value: OpenIdCredential) -> Self
Converts to this type from the input type.
source§impl<Credential: Clone + Debug + Send + Sync + TokenCredentialExecutor> TokenCredentialExecutor for ConfidentialClientApplication<Credential>
impl<Credential: Clone + Debug + Send + Sync + TokenCredentialExecutor> TokenCredentialExecutor for ConfidentialClientApplication<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 basic_auth(&self) -> Option<(String, String)>
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 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 ConfidentialClientApplication<Credential>where
Credential: Freeze,
impl<Credential> RefUnwindSafe for ConfidentialClientApplication<Credential>where
Credential: RefUnwindSafe,
impl<Credential> Send for ConfidentialClientApplication<Credential>where
Credential: Send,
impl<Credential> Sync for ConfidentialClientApplication<Credential>where
Credential: Sync,
impl<Credential> Unpin for ConfidentialClientApplication<Credential>where
Credential: Unpin,
impl<Credential> UnwindSafe for ConfidentialClientApplication<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