pub struct RegistryBuilder { /* private fields */ }Expand description
Builder for Registry enabling multi-tenant configuration.
Implementations§
Source§impl RegistryBuilder
impl RegistryBuilder
Sourcepub fn require_https(self, require_https: bool) -> Self
pub fn require_https(self, require_https: bool) -> Self
Enforce HTTPS for registrations (enabled by default).
Sourcepub fn default_refresh_early(self, value: Duration) -> Self
pub fn default_refresh_early(self, value: Duration) -> Self
Override the default refresh-early offset applied to registrations.
Sourcepub fn default_stale_while_error(self, value: Duration) -> Self
pub fn default_stale_while_error(self, value: Duration) -> Self
Override the default stale-while-error window applied to registrations.
Sourcepub fn add_allowed_domain(self, domain: impl Into<String>) -> Self
pub fn add_allowed_domain(self, domain: impl Into<String>) -> Self
Add an entry to the global domain allowlist.
Sourcepub fn allowed_domains<I, S>(self, domains: I) -> Self
pub fn allowed_domains<I, S>(self, domains: I) -> Self
Replace the global domain allowlist.
Sourcepub fn with_redis_client(self, client: Client) -> Self
pub fn with_redis_client(self, client: Client) -> Self
Configure Redis-backed persistence for snapshots.
Sourcepub fn redis_namespace(self, namespace: impl Into<String>) -> Self
pub fn redis_namespace(self, namespace: impl Into<String>) -> Self
Adjust the Redis key namespace (defaults to jwks-cache).
Trait Implementations§
Source§impl Debug for RegistryBuilder
impl Debug for RegistryBuilder
Source§impl Default for RegistryBuilder
impl Default for RegistryBuilder
Source§fn default() -> RegistryBuilder
fn default() -> RegistryBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RegistryBuilder
impl RefUnwindSafe for RegistryBuilder
impl Send for RegistryBuilder
impl Sync for RegistryBuilder
impl Unpin for RegistryBuilder
impl UnwindSafe for RegistryBuilder
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