pub struct OidcProvider { /* private fields */ }
Expand description
OpenID Connect security provider.
Implementations§
Source§impl OidcProvider
impl OidcProvider
Sourcepub async fn discover(cfg: OidcConfig) -> Result<Self, ProxyError>
pub async fn discover(cfg: OidcConfig) -> Result<Self, ProxyError>
Discover OIDC configuration from the issuer URI.
Trait Implementations§
Source§impl Debug for OidcProvider
impl Debug for OidcProvider
Source§impl SecurityProvider for OidcProvider
impl SecurityProvider for OidcProvider
Source§fn stage(&self) -> SecurityStage
fn stage(&self) -> SecurityStage
Which phase(s) does this provider participate in?
Source§fn pre<'life0, 'async_trait>(
&'life0 self,
req: ProxyRequest,
) -> Pin<Box<dyn Future<Output = Result<ProxyRequest, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pre<'life0, 'async_trait>(
&'life0 self,
req: ProxyRequest,
) -> Pin<Box<dyn Future<Output = Result<ProxyRequest, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Optionally mutate/validate the inbound request before routing.
Source§fn post<'life0, 'async_trait>(
&'life0 self,
_request: ProxyRequest,
response: ProxyResponse,
) -> Pin<Box<dyn Future<Output = Result<ProxyResponse, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn post<'life0, 'async_trait>(
&'life0 self,
_request: ProxyRequest,
response: ProxyResponse,
) -> Pin<Box<dyn Future<Output = Result<ProxyResponse, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Optionally inspect/validate the response after the upstream call.
Auto Trait Implementations§
impl Freeze for OidcProvider
impl !RefUnwindSafe for OidcProvider
impl Send for OidcProvider
impl Sync for OidcProvider
impl Unpin for OidcProvider
impl !UnwindSafe for OidcProvider
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