Skip to main content

SignInLoader

Trait SignInLoader 

Source
pub trait SignInLoader: Send + Sync {
    // Required method
    fn load(
        &self,
        provider: &str,
        config: Option<&ProviderConfig>,
    ) -> Result<Arc<dyn SignInPolicy>, String>;
}
Expand description

Builds a sign-in policy provider from the unex record’s sign_in_policy: the provider’s configuration checked against the provider’s own schema, so a policy that does not build is refused before it is stored or put in force.

Required Methods§

Source

fn load( &self, provider: &str, config: Option<&ProviderConfig>, ) -> Result<Arc<dyn SignInPolicy>, String>

The policy provider provider configured with config, or why it cannot be built.

§Errors

The reason, as text, the provider is missing, its configuration is refused or it fails to build.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§