pub struct OidcProviderConfig {
pub issuer: String,
pub id_token_lifetime: Duration,
pub signing_algorithm: SigningAlgorithm,
pub key_id: Option<String>,
pub rsa_private_key_pem: Option<Vec<u8>>,
pub jwks: Option<Value>,
pub supported_claims: Vec<String>,
pub supported_scopes: Vec<String>,
}Expand description
Configuration for the OIDC provider.
Fields§
§issuer: StringIssuer identifier (URL) - must match OAuth server issuer.
id_token_lifetime: DurationID token lifetime.
signing_algorithm: SigningAlgorithmSigning algorithm for ID tokens.
key_id: Option<String>Key ID for token signing.
rsa_private_key_pem: Option<Vec<u8>>RS256 signing key (PEM-encoded private key).
Required when signing_algorithm = RS256.
jwks: Option<Value>JSON Web Key Set (JWKS) served at /.well-known/jwks.json.
Required when signing_algorithm = RS256.
supported_claims: Vec<String>Supported claims.
supported_scopes: Vec<String>Supported scopes beyond openid.
Trait Implementations§
Source§impl Clone for OidcProviderConfig
impl Clone for OidcProviderConfig
Source§fn clone(&self) -> OidcProviderConfig
fn clone(&self) -> OidcProviderConfig
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 OidcProviderConfig
impl Debug for OidcProviderConfig
Auto Trait Implementations§
impl Freeze for OidcProviderConfig
impl RefUnwindSafe for OidcProviderConfig
impl Send for OidcProviderConfig
impl Sync for OidcProviderConfig
impl Unpin for OidcProviderConfig
impl UnwindSafe for OidcProviderConfig
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).