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 their parameters (Action=AssumeRoleWithWebIdentity) — in the query string or, as AWS SDKs send them, in a form-encoded POST body surfaced via RequestInfo::form_body — not by path, so any path can be used (e.g. "/" or "/.sts"). Runtimes must populate form_body for form-encoded POSTs or SDK clients will fall through unhandled.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§