Skip to content

ExternalBrowserAuth

relationalai.config.connections.snowflake

Configure Snowflake access using browser-based sign-in.

Use this authenticator when you sign in to Snowflake via an interactive browser flow (for example, when your account uses SSO). When loading from a config dict or file, set authenticator="externalbrowser".

Instantiating this class is optional; you can also pass an equivalent dict to create_config.

  • account

    (str) - Snowflake account identifier.
  • warehouse

    (str) - Snowflake warehouse name.
  • user

    (str) - Snowflake username.

Create a programmatic config using this authenticator class:

>>> from relationalai.config import Config, ExternalBrowserAuth
>>> cfg = Config(connections={
... "sf": ExternalBrowserAuth(
... account="my_account",
... warehouse="my_warehouse",
... user="my_user",
... )
... })

Create a programmatic config using a plain dict (no authenticator import):

>>> from relationalai.config import Config
>>> cfg = Config(connections={
... "sf": {
... "type": "snowflake",
... "authenticator": "externalbrowser",
... "account": "my_account",
... "warehouse": "my_warehouse",
... "user": "my_user",
... }
... })

This authenticator requires an interactive browser session.

ExternalBrowserAuthSnowflakeConnectionBaseBaseConnectionpydantic.BaseModelabc.ABC
RelationalAI Documentation
└──  Build With RelationalAI
    └──  Understand how PyRel works > Configure PyRel
        └──  Configure snowflake auth
            └──  Configure external browser authentication