Struct graph_oauth::OpenIdCredential
source · pub struct OpenIdCredential { /* private fields */ }
Expand description
OpenID Connect (OIDC) extends the OAuth 2.0 authorization protocol for use as an additional authentication protocol. You can use OIDC to enable single sign-on (SSO) between your OAuth-enabled applications by using a security token called an ID token. https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-protocols-oidc
Implementations§
source§impl OpenIdCredential
impl OpenIdCredential
pub fn new<T: AsRef<str>, U: IntoUrl>( client_id: T, client_secret: T, authorization_code: T, redirect_uri: U ) -> IdentityResult<OpenIdCredential>
pub fn with_refresh_token<T: AsRef<str>>(&mut self, refresh_token: T)
pub fn builder(client_id: impl TryInto<Uuid>) -> OpenIdCredentialBuilder
pub fn pkce(&self) -> Option<&ProofKeyCodeExchange>
Trait Implementations§
source§impl Clone for OpenIdCredential
impl Clone for OpenIdCredential
source§fn clone(&self) -> OpenIdCredential
fn clone(&self) -> OpenIdCredential
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 OpenIdCredential
impl Debug for OpenIdCredential
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 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.
source§impl TokenCache for OpenIdCredential
impl TokenCache for OpenIdCredential
type Token = Token
fn get_token_silent(&mut self) -> Result<Self::Token, AuthExecutionError>
fn get_token_silent_async<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Self::Token, AuthExecutionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn with_force_token_refresh(&mut self, force_token_refresh: ForceTokenRefresh)
source§impl TokenCredentialExecutor for OpenIdCredential
impl TokenCredentialExecutor for OpenIdCredential
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 uri(&mut self) -> IdentityResult<Url>
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>
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: Send + 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for OpenIdCredential
impl !RefUnwindSafe for OpenIdCredential
impl Send for OpenIdCredential
impl Sync for OpenIdCredential
impl Unpin for OpenIdCredential
impl !UnwindSafe for OpenIdCredential
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