pub fn create_passthrough_auth_provider(
cfg: &AuthConfig,
incoming_token: Option<String>,
) -> Result<Arc<dyn HttpAuthProvider>, HttpConnectorError>Expand description
Build an auth provider, capturing an incoming_token for the
AuthConfig::OAuthPassthrough per-request path (H1).
For passthrough configs the captured token is stored and forwarded by
OAuthPassthroughAuth::apply (preferring a per-request inbound_token when
one is also passed to apply). For all other configs this delegates to
create_auth_provider.
§Errors
Propagates any error from create_auth_provider for non-passthrough configs.