Skip to main content

Module clients.connection_config

Functions

discover_platform_connection

def discover_platform_connection(environment_url: Optional[str], config_path: Optional[str], platform_token: Optional[str], token_provider: Optional[h2o_authn.provider.TokenProvider], ssl_context: Optional[ssl.SSLContext]) ‑> ConnectionConfig

Creates ConnectionConfig object by discovering platform connection configuration using h2o_discovery.

:param environment_url: Override for the URL of the environment passed to the discovery service. :param config_path: Override path to the h2o cli config file passed to the discovery service. :param platform_token: Platform token. If not provided, the token will be discovered. :param token_provider: Token provider. If not provided, the provider will be constructed from the discovered config. :param ssl_context: SSL context to use for the discovery client.

get_connection

def get_connection(server_url: str, refresh_token: str, issuer_url: str, client_id: str, client_secret: Optional[str], verify_ssl: bool, ssl_ca_cert: Optional[str]) ‑> ConnectionConfig

Creates ConnectionConfig object. Initializes and tests token provider.

Classes

ConnectionConfig

class ConnectionConfig(server_url: str, token_provider: h2o_authn.provider.TokenProvider)

Object holding connection configuration for the Notebook API server.

Instance variables

var server_url : str

Alias for field number 0

var token_provider : h2o_authn.provider.TokenProvider

Alias for field number 1

Ancestors

  • builtins.tuple

Feedback