pub struct OAuthServerConfig {
pub issuer: String,
pub access_token_lifetime: Duration,
pub refresh_token_lifetime: Duration,
pub authorization_code_lifetime: Duration,
pub allow_public_clients: bool,
pub min_code_verifier_length: usize,
pub max_code_verifier_length: usize,
pub token_entropy_bytes: usize,
}Expand description
Configuration for the OAuth authorization server.
Fields§
§issuer: StringIssuer identifier (URL) for this authorization server.
access_token_lifetime: DurationAccess token lifetime.
refresh_token_lifetime: DurationRefresh token lifetime.
Authorization code lifetime (should be short, e.g., 10 minutes).
allow_public_clients: boolWhether to allow public clients (clients without a secret).
min_code_verifier_length: usizeMinimum PKCE code verifier length (default: 43, min: 43, max: 128).
max_code_verifier_length: usizeMaximum PKCE code verifier length.
token_entropy_bytes: usizeToken entropy bytes (default: 32 = 256 bits).
Trait Implementations§
Source§impl Clone for OAuthServerConfig
impl Clone for OAuthServerConfig
Source§fn clone(&self) -> OAuthServerConfig
fn clone(&self) -> OAuthServerConfig
Returns a duplicate 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 OAuthServerConfig
impl Debug for OAuthServerConfig
Source§impl Default for OAuthServerConfig
impl Default for OAuthServerConfig
Source§fn default() -> OAuthServerConfig
fn default() -> OAuthServerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OAuthServerConfig
impl RefUnwindSafe for OAuthServerConfig
impl Send for OAuthServerConfig
impl Sync for OAuthServerConfig
impl Unpin for OAuthServerConfig
impl UnwindSafe for OAuthServerConfig
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).