Skip to main content

StsRouterExt

Trait StsRouterExt 

Source
pub trait StsRouterExt {
    // Required method
    fn with_sts<C: CredentialRegistry + 'static>(
        self,
        path: &str,
        config: C,
        cache: JwksCache,
        key: Option<TokenKey>,
    ) -> Self;
}
Expand description

Extension trait for registering STS routes on a Router.

Required Methods§

Source

fn with_sts<C: CredentialRegistry + 'static>( self, path: &str, config: C, cache: JwksCache, key: Option<TokenKey>, ) -> Self

Register the STS handler on the given path.

STS requests are identified by query parameters (Action=AssumeRoleWithWebIdentity), not by path, so any path can be used (e.g. "/" or "/.sts").

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl StsRouterExt for Router

Source§

fn with_sts<C: CredentialRegistry + 'static>( self, path: &str, config: C, cache: JwksCache, key: Option<TokenKey>, ) -> Self

Implementors§