Function auth_lib::bootstrap_client

source ·
pub async fn bootstrap_client<T, D>(
    destination: D
) -> Result<Box<dyn AuthClient>, Box<dyn Error>>where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>,
Expand description

Builds the client with the given configuration. If no configuration is given, it will use the default configuration. It automatically connects to the given destination and retrieves the parameters from the server.