-
Notifications
You must be signed in to change notification settings - Fork 140
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
SNOW-1272506: AcquireTokenByUsernamePassword failing to get OAuth token for Snowflake #898
Comments
hi and thank you for raising this with us! taking a look |
I'll need to set up some infrastructure for this (IdP + configure OAuth) so might take a while. I really would prefer to make sure the issue actually comes from a software managed by Snowflake, and not anywhere else. |
had a bit of time to set up the infrastructure, test it, and think a bit about it. Oauth token comes from the IDP. Is Snowflake your OAuth IDP ? Like in this configuration: https://docs.snowflake.com/en/user-guide/oauth-snowflake-overview. If so, could you please provide a reproduction code which when run, contacts Snowflake and retrieves the OAuth token? (or, retrieved, with the older If Snowflake is not your IDP and you're using the External OAuth setup, then the next phase need to focus on the Microsoft library vs. the non-Snowflake managed IDP. |
closing this issue due to inactivity; as suggested please continue debugging this with your IDP (except if you use Snowflake OAuth and we're your IDP, in this case please do comment and we can look further) |
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
What version of .NET driver are you using?
Snowflake.Data (2.1.0)
What operating system and processor architecture are you using?
Windows 10
What version of .NET framework are you using?
.net8
What did you do?
Attempted to get an OAuth token for accessing Snowflake after upgrading projects to .net8
What did you expect to see?
After updating application to .net8, package Microsoft.Identity.Client was also updated to 4.59.0. Since then, I'm unable to get an OAuth token calling AcquireTokenByUsernamePassword. This worked prior with version 4.47.0
oAuthResult = await app.AcquireTokenByUsernamePassword(scopes, $"{FunctionalID}@progressive.com", encodedSecret)
.ExecuteAsync(CancellationToken.None);
Throws the following:
System.Net.Http.HttpRequestException: 'The SSL connection could not be established, see inner exception.'
Inner exception: AuthenticationException: Cannot determine the frame size or a corrupted frame was received.
Can you set logging to DEBUG and collect the logs?
https://community.snowflake.com/s/article/How-to-generate-log-file-on-Snowflake-connectors
There is an example in READMD.md file showing you how to enable logging.
What is your Snowflake account identifier, if any? (Optional)
The text was updated successfully, but these errors were encountered: