Snowflake-Labs / django-snowflake

MIT License
61 stars 16 forks source link

Unable to use the connector with external browser authentication #46

Closed lnicalo closed 2 years ago

lnicalo commented 2 years ago

I have the following settings:

DATABASES = {
    'default': {
        'ENGINE': 'django_snowflake',
        'ACCOUNT': 'my account',
        'NAME': 'my database',
        'SCHEMA': "my schema",
        'WAREHOUSE': 'my warehouse',
        'USER': "my user name"
        # Include 'OPTIONS' if you need to specify any other
        # snowflake.connector.connect() parameters.
        # https://docs.snowflake.com/en/user-guide/python-connector-api.html#connect
        'OPTIONS': {
            "role": "my role",
            "authenticator": "externalbrowser",
        },
    },
}

Getting the connection fails with the following error:

django.core.exceptions.ImproperlyConfigured: settings.DATABASES is missing 'PASSWORD' for 'django_snowflake'.
timgraham commented 2 years ago

Are you using version 3.2a2 of this package? This was fixed in b983c85ce06b6852e7a08913a6a7483acc160574.