pub struct OidcSection {
pub issuers: Vec<String>,
pub freshness_secs: Option<u64>,
}Expand description
Which OpenID Connect issuers this server will fetch keys from, and how fresh a token has to be.
Reload: needs a restart. The values are read once, into the router.
Fields§
§issuers: Vec<String>The issuers whose tokens are accepted, as their iss spells them.
Empty admits any issuer reachable over HTTPS at a public address.
Reasonable range: 0 to 64 entries. A deployment names the platforms it runs on; a list longer than that is an allowlist nobody reviews.
freshness_secs: Option<u64>How old a token’s iat may be, in seconds.
Reasonable range: 60 to 3600. Five minutes, the default, is clock skew and a slow network; past an hour a token a run left in a log is still a session.
Trait Implementations§
Source§impl Clone for OidcSection
impl Clone for OidcSection
Source§fn clone(&self) -> OidcSection
fn clone(&self) -> OidcSection
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 Debug for OidcSection
impl Debug for OidcSection
Source§impl Default for OidcSection
impl Default for OidcSection
Source§fn default() -> OidcSection
fn default() -> OidcSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OidcSection
impl<'de> Deserialize<'de> for OidcSection
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
Source§impl PartialEq for OidcSection
impl PartialEq for OidcSection
Source§fn eq(&self, other: &OidcSection) -> bool
fn eq(&self, other: &OidcSection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OidcSection
impl Serialize for OidcSection
impl Eq for OidcSection
impl StructuralPartialEq for OidcSection
Auto Trait Implementations§
impl Freeze for OidcSection
impl RefUnwindSafe for OidcSection
impl Send for OidcSection
impl Sync for OidcSection
impl Unpin for OidcSection
impl UnsafeUnpin for OidcSection
impl UnwindSafe for OidcSection
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