SNOW-1799839: Authenticated Snowflake Rest API requests via JWT generation in SDK. #956
Open
Description
What is the current behavior?
The current sdk can use JWT to secure connections to Snowflake, but provides no way to reuse this authentication for utilizing rest-api services provided by Snowflake even though the authentication is the same for rest-api's.
I haven't found a way to utilize the SDK to authenticate rest-api requests and have resorted to generating my own tokens the same way the SDK generates tokens.
What is the desired behavior?
Expose Authentication functions for generating JWT for use in querying Snowflake rest-api services. Another option would be to expose an authenticated "fetch" function that handles generating the token and placing it in the headers.
How would this improve snowflake-connector-nodejs
?
Extends The SDK and allows the use of additional services provided by Snowflake.