Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authentication #2

Open
kpejman opened this issue Feb 11, 2021 · 3 comments
Open

authentication #2

kpejman opened this issue Feb 11, 2021 · 3 comments

Comments

@kpejman
Copy link

kpejman commented Feb 11, 2021

hi,

my company uses SSO to connect to SNOW.
when the authentication windows shows up, I tried all the authentication methods but it fails regardless of how I'm trying to authenticate. is there any way to Make this work ?

@aduguid
Copy link
Member

aduguid commented Feb 19, 2021

I use a service account to access Service Now using a "Basic" data source connection type.

image

@kpejman
Copy link
Author

kpejman commented Feb 19, 2021

thanks for the reply. that option is not working for me since it uses SSO to access. my personal account has access and SN uses SSO to login.

@Siddharth-Latthe-07
Copy link

To resolve the issue of connecting to Snowflake using SSO, especially when authentication windows fail, you can try the following steps and approaches:-

  1. Verify SSO Configuration
    Ensure that the SSO configuration in your Snowflake account is set up correctly. This involves making sure that your Identity Provider (IdP) is properly configured and integrated with Snowflake.
  2. Use Browser-Based SSO
    Sometimes, browser-based SSO can help in cases where direct SSO from the application fails.
    example snippet:-
import snowflake.connector

# Replace with your actual credentials and account information
user = 'your_user'
account = 'your_account'
authenticator = 'externalbrowser'  # For browser-based SSO

# Connect to Snowflake
ctx = snowflake.connector.connect(
    user=user,
    account=account,
    authenticator=authenticator
)

# Test the connection
cs = ctx.cursor()
try:
    cs.execute("SELECT CURRENT_VERSION()")
    one_row = cs.fetchone()
    print(one_row[0])
finally:
    cs.close()
ctx.close()

  1. Check Network and Browser Settings and update the Snowflake Connector

Hope the above helps, do let me know, if it works or not
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants