Struct graph_oauth::OpenIdCredentialBuilder
source · pub struct OpenIdCredentialBuilder { /* private fields */ }
Implementations§
source§impl OpenIdCredentialBuilder
impl OpenIdCredentialBuilder
pub fn with_client_id(&mut self, client_id: impl TryInto<Uuid>) -> &mut Self
sourcepub fn with_tenant(&mut self, tenant_id: impl AsRef<str>) -> &mut Self
pub fn with_tenant(&mut self, tenant_id: impl AsRef<str>) -> &mut Self
Convenience method. Same as calling [with_authority(Authority::TenantId(“tenant_id”))]
pub fn with_azure_cloud_instance( &mut self, azure_cloud_instance: AzureCloudInstance ) -> &mut Self
sourcepub fn with_extra_query_param(
&mut self,
query_param: (String, String)
) -> &mut Self
pub fn with_extra_query_param( &mut self, query_param: (String, String) ) -> &mut Self
Extends the query parameters of both the default query params and user defined params. Does not overwrite default params.
sourcepub fn with_extra_query_parameters(
&mut self,
query_parameters: HashMap<String, String>
) -> &mut Self
pub fn with_extra_query_parameters( &mut self, query_parameters: HashMap<String, String> ) -> &mut Self
Extends the query parameters of both the default query params and user defined params. Does not overwrite default params.
sourcepub fn with_extra_header_param<K: Into<HeaderName>, V: Into<HeaderValue>>(
&mut self,
header_name: K,
header_value: V
) -> &mut Self
pub fn with_extra_header_param<K: Into<HeaderName>, V: Into<HeaderValue>>( &mut self, header_name: K, header_value: V ) -> &mut Self
Extends the header parameters of both the default header params and user defined params. Does not overwrite default params.
sourcepub fn with_extra_header_parameters(
&mut self,
header_parameters: HeaderMap
) -> &mut Self
pub fn with_extra_header_parameters( &mut self, header_parameters: HeaderMap ) -> &mut Self
Extends the header parameters of both the default header params and user defined params. Does not overwrite default params.
pub fn with_scope<T: ToString, I: IntoIterator<Item = T>>( &mut self, scope: I ) -> &mut Self
source§impl OpenIdCredentialBuilder
impl OpenIdCredentialBuilder
pub fn build(&self) -> ConfidentialClientApplication<OpenIdCredential>
source§impl OpenIdCredentialBuilder
impl OpenIdCredentialBuilder
pub fn with_refresh_token<T: AsRef<str>>( &mut self, refresh_token: T ) -> &mut Self
pub fn with_redirect_uri(&mut self, redirect_uri: Url) -> &mut Self
pub fn with_client_secret<T: AsRef<str>>( &mut self, client_secret: T ) -> &mut Self
pub fn with_pkce(&mut self, pkce: ProofKeyCodeExchange) -> &mut Self
pub fn with_pkce_oneshot(&mut self) -> IdentityResult<&mut Self>
pub fn credential(&self) -> &OpenIdCredential
Trait Implementations§
source§impl Clone for OpenIdCredentialBuilder
impl Clone for OpenIdCredentialBuilder
source§fn clone(&self) -> OpenIdCredentialBuilder
fn clone(&self) -> OpenIdCredentialBuilder
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 Debug for OpenIdCredentialBuilder
impl Debug for OpenIdCredentialBuilder
source§impl From<(AppConfig, AuthorizationResponse)> for OpenIdCredentialBuilder
impl From<(AppConfig, AuthorizationResponse)> for OpenIdCredentialBuilder
source§fn from(value: (AppConfig, AuthorizationResponse)) -> Self
fn from(value: (AppConfig, AuthorizationResponse)) -> Self
Converts to this type from the input type.
source§impl From<OpenIdAuthorizationUrlParameters> for OpenIdCredentialBuilder
impl From<OpenIdAuthorizationUrlParameters> for OpenIdCredentialBuilder
source§fn from(value: OpenIdAuthorizationUrlParameters) -> Self
fn from(value: OpenIdAuthorizationUrlParameters) -> Self
Converts to this type from the input type.
source§impl From<OpenIdCredential> for OpenIdCredentialBuilder
impl From<OpenIdCredential> for OpenIdCredentialBuilder
source§fn from(credential: OpenIdCredential) -> Self
fn from(credential: OpenIdCredential) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenIdCredentialBuilder
impl !RefUnwindSafe for OpenIdCredentialBuilder
impl Send for OpenIdCredentialBuilder
impl Sync for OpenIdCredentialBuilder
impl Unpin for OpenIdCredentialBuilder
impl !UnwindSafe for OpenIdCredentialBuilder
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