pub struct OidcClient {
pub http: Arc<ReqwestHttpClient>,
pub discovery_cache: Arc<MokaCacheImpl<String, OidcProviderMetadata>>,
pub jwks_cache: Arc<MokaCacheImpl<String, Jwks>>,
}Available on non-WebAssembly and crate feature
http-reqwest and crate feature moka only.Expand description
Default OIDC client with built-in HTTP and cache implementations
This provides a convenient way to use the SDK without worrying about the generic parameters.
Fields§
§http: Arc<ReqwestHttpClient>HTTP client
discovery_cache: Arc<MokaCacheImpl<String, OidcProviderMetadata>>Discovery metadata cache
jwks_cache: Arc<MokaCacheImpl<String, Jwks>>JWKS cache
Implementations§
Source§impl OidcClient
impl OidcClient
Sourcepub fn http(&self) -> &dyn HttpClient
pub fn http(&self) -> &dyn HttpClient
Get a reference to the HTTP client
Sourcepub fn discovery_cache(&self) -> &dyn Cache<String, OidcProviderMetadata>
pub fn discovery_cache(&self) -> &dyn Cache<String, OidcProviderMetadata>
Get a reference to the discovery cache
Sourcepub fn jwks_cache(&self) -> &dyn Cache<String, Jwks>
pub fn jwks_cache(&self) -> &dyn Cache<String, Jwks>
Get a reference to the JWKS cache
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OidcClient
impl !RefUnwindSafe for OidcClient
impl Send for OidcClient
impl Sync for OidcClient
impl Unpin for OidcClient
impl !UnwindSafe for OidcClient
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