pub struct OAuthPendingAuthorizationState {
pub state: String,
pub code_verifier: String,
pub redirect_uri: String,
pub resource: String,
pub issuer: String,
pub token_endpoint: String,
pub registration: OAuthClientRegistration,
pub token_endpoint_auth_method: OAuthTokenEndpointAuthMethod,
pub scopes: Vec<String>,
pub iss_required: bool,
}Expand description
Persistable PKCE and CSRF state for an in-progress authorization.
This contains a PKCE verifier and possibly a client secret. Store it with the same protections as OAuth credentials.
Fields§
§state: StringCSRF state key.
code_verifier: StringPKCE verifier.
redirect_uri: StringExact redirect URI.
resource: StringCanonical resource identifier.
issuer: StringExact authorization-server issuer.
token_endpoint: StringToken endpoint selected from validated metadata.
registration: OAuthClientRegistrationResolved client registration.
token_endpoint_auth_method: OAuthTokenEndpointAuthMethodToken endpoint authentication method.
scopes: Vec<String>Requested scopes.
iss_required: boolWhether an authorization-response iss parameter is required.
Trait Implementations§
Source§impl Clone for OAuthPendingAuthorizationState
impl Clone for OAuthPendingAuthorizationState
Source§fn clone(&self) -> OAuthPendingAuthorizationState
fn clone(&self) -> OAuthPendingAuthorizationState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for OAuthPendingAuthorizationState
impl<'de> Deserialize<'de> for OAuthPendingAuthorizationState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OAuthPendingAuthorizationState
impl StructuralPartialEq for OAuthPendingAuthorizationState
Auto Trait Implementations§
impl Freeze for OAuthPendingAuthorizationState
impl RefUnwindSafe for OAuthPendingAuthorizationState
impl Send for OAuthPendingAuthorizationState
impl Sync for OAuthPendingAuthorizationState
impl Unpin for OAuthPendingAuthorizationState
impl UnsafeUnpin for OAuthPendingAuthorizationState
impl UnwindSafe for OAuthPendingAuthorizationState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.