Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion snowflake-api/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ impl Session {

#[cfg(feature = "cert-auth")]
fn cert_request_body(&self) -> Result<CertLoginRequest, AuthError> {
let full_identifier = format!("{}.{}", &self.account_identifier, &self.username);
// we want to strip region information from the account identifier
// See: https://docs.snowflake.com/en/developer-guide/snowflake-rest-api/authentication#label-sfrest-api-jwt-token
let account = self.account_identifier.split_once(".").unwrap().0;
let full_identifier = format!("{}.{}", &account, &self.username);
let private_key_pem = self
.private_key_pem
.as_ref()
Expand Down