pub trait ResolveAuthSchemeOptions:
Send
+ Sync
+ Debug {
// Provided methods
fn resolve_auth_scheme_options(
&self,
_params: &AuthSchemeOptionResolverParams,
) -> Result<Cow<'_, [AuthSchemeId]>, BoxError> { ... }
fn resolve_auth_scheme_options_v2<'a>(
&'a self,
params: &'a AuthSchemeOptionResolverParams,
_cfg: &'a ConfigBag,
_runtime_components: &'a RuntimeComponents,
) -> AuthSchemeOptionsFuture<'a> ⓘ { ... }
}
Expand description
Resolver for auth scheme options.
The orchestrator needs to select an auth scheme to sign requests with, and potentially from several different available auth schemes. Smithy models have a number of ways to specify which operations can use which auth schemes under which conditions, as documented in the Smithy spec.
The orchestrator uses the auth scheme option resolver runtime component to resolve
an ordered list of options that are available to choose from for a given request.
This resolver can be a simple static list, such as with the
StaticAuthSchemeOptionResolver
,
or it can be a complex code generated resolver that incorporates parameters from both
the model and the resolved endpoint.
Provided Methods§
Sourcefn resolve_auth_scheme_options(
&self,
_params: &AuthSchemeOptionResolverParams,
) -> Result<Cow<'_, [AuthSchemeId]>, BoxError>
👎Deprecated since 1.8.0: This method is deprecated, use resolve_auth_scheme_options_v2
instead.
fn resolve_auth_scheme_options( &self, _params: &AuthSchemeOptionResolverParams, ) -> Result<Cow<'_, [AuthSchemeId]>, BoxError>
resolve_auth_scheme_options_v2
instead.Returns a list of available auth scheme options to choose from.
Sourcefn resolve_auth_scheme_options_v2<'a>(
&'a self,
params: &'a AuthSchemeOptionResolverParams,
_cfg: &'a ConfigBag,
_runtime_components: &'a RuntimeComponents,
) -> AuthSchemeOptionsFuture<'a> ⓘ
fn resolve_auth_scheme_options_v2<'a>( &'a self, params: &'a AuthSchemeOptionResolverParams, _cfg: &'a ConfigBag, _runtime_components: &'a RuntimeComponents, ) -> AuthSchemeOptionsFuture<'a> ⓘ
Returns a list of available auth scheme options to choose from.