pub struct OpenIdAuthorizationUrlParameters { /* 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 OpenIdAuthorizationUrlParameters
impl OpenIdAuthorizationUrlParameters
pub fn new<U: ToString, I: IntoIterator<Item = U>>( client_id: impl TryInto<Uuid>, redirect_uri: impl IntoUrl, scope: I ) -> IdentityResult<OpenIdAuthorizationUrlParameters>
pub fn builder( client_id: impl TryInto<Uuid> ) -> OpenIdAuthorizationUrlParameterBuilder
pub fn into_credential( self, authorization_code: impl AsRef<str> ) -> OpenIdCredentialBuilder
pub fn url(&self) -> IdentityResult<Url>
pub fn url_with_host( &self, azure_cloud_instance: &AzureCloudInstance ) -> IdentityResult<Url>
sourcepub fn nonce(&self) -> &String
pub fn nonce(&self) -> &String
Get the nonce.
This value may be generated automatically by the client and may be useful for users who want to manually verify that the nonce stored in the client is the same as the nonce returned in the response from the authorization server. Verifying the nonce helps mitigate token replay attacks.
Trait Implementations§
source§impl AuthorizationUrl for OpenIdAuthorizationUrlParameters
impl AuthorizationUrl for OpenIdAuthorizationUrlParameters
fn redirect_uri(&self) -> Option<&Url>
source§impl Clone for OpenIdAuthorizationUrlParameters
impl Clone for OpenIdAuthorizationUrlParameters
source§fn clone(&self) -> OpenIdAuthorizationUrlParameters
fn clone(&self) -> OpenIdAuthorizationUrlParameters
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 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.
Auto Trait Implementations§
impl Freeze for OpenIdAuthorizationUrlParameters
impl RefUnwindSafe for OpenIdAuthorizationUrlParameters
impl Send for OpenIdAuthorizationUrlParameters
impl Sync for OpenIdAuthorizationUrlParameters
impl Unpin for OpenIdAuthorizationUrlParameters
impl UnwindSafe for OpenIdAuthorizationUrlParameters
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