Skip to content

SNOW-2875436: Okta Auth #2691

@Syed-Ahamed-S

Description

@Syed-Ahamed-S

Python version

3.11.1

Operating system and processor architecture

Windows (x64)

Installed packages

snowflake-connector-python

What did you do?

Tried to connect snowflake through python connector.

What did you expect to see?

Hi,

When I try to use OKTA Authenticator in snowflake connector python, I have seen a bug in code.

In OKTA auth class file there is a function is_prefix_equal() which can be used to compare 2 url's port, scheme and host. There I can see in port2 variable its extracting url1's port again instead of url2.

Here I'm attaching an image for reference.

Image

Can you set logging to DEBUG and collect the logs?

import logging
import os

for logger_name in ('snowflake.connector',):
    logger = logging.getLogger(logger_name)
    logger.setLevel(logging.DEBUG)
    ch = logging.StreamHandler()
    ch.setLevel(logging.DEBUG)
    ch.setFormatter(logging.Formatter('%(asctime)s - %(threadName)s %(filename)s:%(lineno)d - %(funcName)s() - %(levelname)s - %(message)s'))
    logger.addHandler(ch)

Metadata

Metadata

Labels

bugstatus-triage_doneInitial triage done, will be further handled by the driver team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions