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§
Sourcefn with_sts<C: CredentialRegistry + 'static>(
self,
path: &str,
config: C,
cache: JwksCache,
key: Option<TokenKey>,
) -> Self
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.