pub struct OAuthServerConfiguration {
pub rsa_public_key: String,
pub rsa_private_key: String,
pub oauth_token_hmac_key: String,
pub dpop_nonce_key: Arc<SecretBox<String>>,
}Fields§
§rsa_public_key: String§rsa_private_key: String§oauth_token_hmac_key: StringSecret key for HMAC-SHA-256 hashing of OAuth tokens (access tokens, refresh tokens, auth codes).
dpop_nonce_key: Arc<SecretBox<String>>Secret key for signing DPoP nonces (HMAC).
Implementations§
Source§impl OAuthServerConfiguration
impl OAuthServerConfiguration
Sourcepub fn try_from_env() -> Result<Self>
pub fn try_from_env() -> Result<Self>
Attempts to create an OAuthServerConfiguration.
Return Ok(Some(OAuthConfiguration)) if all configurations are set.
Return Err if any is not set.
Trait Implementations§
Source§impl Clone for OAuthServerConfiguration
impl Clone for OAuthServerConfiguration
Source§fn clone(&self) -> OAuthServerConfiguration
fn clone(&self) -> OAuthServerConfiguration
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 PartialEq for OAuthServerConfiguration
impl PartialEq for OAuthServerConfiguration
Auto Trait Implementations§
impl Freeze for OAuthServerConfiguration
impl RefUnwindSafe for OAuthServerConfiguration
impl Send for OAuthServerConfiguration
impl Sync for OAuthServerConfiguration
impl Unpin for OAuthServerConfiguration
impl UnwindSafe for OAuthServerConfiguration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more