The Snowflake Cortex LLM REST API requires programmatic authentication rather than interactive login mechanisms. Snowflake's REST API authentication documentation specifies that requests can be authenticated using key-pair authentication, where a JSON Web Token (JWT) is generated from a private key and validated against the public key registered on the Snowflake user, or using OAuth 2.0, where Snowflake acts as the authorization and resource server so that end users can authenticate through their own browser session without exposing credentials to the calling application. SAML 2.0, Single Sign-On, and Multi-Factor Authentication are used for federated or interactive user login to a Snowflake account (e.g., through a web browser or client driver) but are not directly used to authenticate calls to the Cortex REST API.
Community Discussion