Closed PoeWunLee closed 2 years ago
Hi @PoeWunLee
By the looks of it, when you want to use the useKeyPairAuth = true
option, you also need to supply the configuration with the privateKeyPath.
So your credentials
configuration should look like this:
credentials:
useKeyPairAuth: true
privateKeyPath: "path to the key file"
account: "account"
username: "user"
role: "role"
warehouse: "warehouse"
Description
Snowflake integration authentication using username and password works fine, but not when switched to key-pair authentication. The error message describes that the username and password combination is not correct, which may have indicated that despite setting the useKeyPairAuth: true and specifying the p8 key file, the key-pair auth method is not used in the node.js driver internally.
Steps to Reproduce
Expected Behavior
Expected payload results returned. Expect to be the same payload result as when using username and password auth method.![image](https://user-images.githubusercontent.com/64348704/172278889-b927d530-5dbd-424f-9bfd-9a4744404de9.png)
The following is what was returned instead when switched to key-pair auth![image](https://user-images.githubusercontent.com/64348704/172279681-154c9489-fb4a-48f6-836c-2a8c9f9e572e.png)
Your Environment
Windows Virtual Machine on Azure
Additional context