-
Notifications
You must be signed in to change notification settings - Fork 132
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-1694143: Authentication Token Caching is not working with v1.13 #921
Comments
Update: Ignore it, I was using wrong credentials. I confirm what @supermacro said, every new connection starts a new flow. If I apply #918, things work correctly |
thank for reporting this ! so tested the feature when it was released with v1.12.0 and it worked - it still works today with v1.12.0 but something between v1.12.0 (initial release of the feature) and v1.13.1 (latest) broke because i can confirm, it doesn't work anymore with v1.13.1 as a workaround you can consider using v1.12.0 while the issue is fixed. also thank you for the PR suggestion ! |
I think this might've broken it: eddce19 - it removed passing in the connectionConfig even though connectAsync updates the connectionConfig in place |
confirmed - this broke it indeed. working on a fix. workaround is to use v1.12.0 (or @supermacro 's patch) |
issues is fixed now with #919 , thank you for your contribution @supermacro and detailed analysis ! |
released with Snowflake Node.js driver version 1.14.0 in September 2024 release cycle |
1.13.1
MacOSX 14.17 (Sonoma) on M3 macbook pro
node v20.17.0
pnpm 9.11.0
npm list
)?5.Server version:* E.g. 1.90.1
8.36.2
#820 Implemented sso token caching. However token caching does not work in version 1.13.1 of this lib (and possibly other versions). Every new connection fails to use the id token that is written to disk.
Issues found:
clientStoreTemporaryCredential
needs to be set to true in the connection config, yet it's not a field defined inindex.d.ts
.snowflake-sdk
To reproduce the issue, run the code snippet below TWICE.
The expected behaviour when you run the above code snippet twice is:
However, the current behaviour is that a new browser tab is opened to initiate the external SSO flow and the cached token is not used. See screenshot for proof that a token is cached to disk at
$HOME
COPLANE.JRB00548
The text was updated successfully, but these errors were encountered: