I got a bit of a weird one. So our Snowflake account is in AWS, we recently had to integrate Okta SSO in Snowflake and we are using Power BI to visualize the data. I've integrated the SSO and works well on the Snowflake Web UI. However, in Power BI it doesn't work to sign in anymore.
These are the steps I've done so far:
- I've got the certificate string and
ssoUrlfrom the staff in charge of Okta and ran the below scripts
alter account set saml_identity_provider =
'{ "certificate": "<CERT STRING>",
"ssoUrl": "<SSO URL>",
"type" : "OKTA",
"label" : "<LABEL>"
}';
alter account set sso_login_page = true;
- I've added a user to the security group that was added to Okta and created that user in Snowflake. The test user was able to successfully sign in to the Web UI for Snowflake using the SSO Integration
- I've followed the documentation from snowflake and compiled my query as follows:
create or replace security integration powerbi
type = external_oauth
enabled = true
external_oauth_type = azure
external_oauth_issuer = 'https://sts.windows.net/<TENANT_ID>/'
external_oauth_jws_keys_url = 'https://login.windows.net/common/discovery/keys'
external_oauth_audience_list = ('https://analysis.windows.net/powerbi/connector/Snowflake')
external_oauth_token_user_mapping_claim = 'upn'
external_oauth_snowflake_user_mapping_attribute = 'login_name'
external_oauth_any_role_mode = 'ENABLE';
However, I am still getting the above error (We couldn't authenticate with the credentials provided. Please try again.), although it is redirecting me to the Okta page successfully.
I am not using a Network Policy or a Gateway so it should be able to sign in directly.
Can anyone help?
