aws_smithy_runtime_api::client::auth

Trait ResolveAuthSchemeOptions

Source
pub trait ResolveAuthSchemeOptions:
    Send
    + Sync
    + Debug {
    // Required method
    fn resolve_auth_scheme_options(
        &self,
        params: &AuthSchemeOptionResolverParams,
    ) -> Result<Cow<'_, [AuthSchemeId]>, BoxError>;
}
Available on crate feature client only.
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.

Required Methods§

Source

fn resolve_auth_scheme_options( &self, params: &AuthSchemeOptionResolverParams, ) -> Result<Cow<'_, [AuthSchemeId]>, BoxError>

Returns a list of available auth scheme options to choose from.

Implementors§