From ebb1d976144aa96f514d8dfe2193f35316b1754a Mon Sep 17 00:00:00 2001 From: "Alex(Zhaoyu) Sun" Date: Fri, 30 Aug 2024 11:32:03 -0700 Subject: [PATCH 1/2] add snowflake external oauth sample --- samples/components/oauth/snowflake.azure.xml | 85 ++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 samples/components/oauth/snowflake.azure.xml diff --git a/samples/components/oauth/snowflake.azure.xml b/samples/components/oauth/snowflake.azure.xml new file mode 100644 index 00000000..50667827 --- /dev/null +++ b/samples/components/oauth/snowflake.azure.xml @@ -0,0 +1,85 @@ + + + snowflake + + + custom_snowflake_azure + + Azure + $clientID + $clientSecret + http://localhost:55556/Callback + http://localhost:55557/Callback + http://localhost:55558/Callback + http://localhost:55559/Callback + + https://login.microsoftonline.com/${tenant}/oauth2/v2.0/authorize + https://login.microsoftonline.com/${tenant}/oauth2/v2.0/token + openid + email + + profile + offline_access + + $session_role_scope + + + OAUTH_CAP_REQUIRES_PROMPT_SELECT_ACCOUNT + true + + + OAUTH_CAP_REQUIRE_PKCE + true + + + OAUTH_CAP_PKCE_REQUIRES_CODE_CHALLENGE_METHOD + true + + + OAUTH_CAP_SUPPORTS_STATE + true + + + OAUTH_CAP_CLIENT_SECRET_IN_URL_QUERY_PARAM + true + + + OAUTH_CAP_SUPPORTS_GET_USERINFO_FROM_ID_TOKEN + true + + + + OAUTH_CAP_FIXED_PORT_IN_CALLBACK_URL + false + + + + + ACCESSTOKEN + access_token + + + REFRESHTOKEN + refresh_token + + + access-token-issue-time + issued_at + + + access-token-expires-in + expires_in + + + id-token + id_token + + + + + username + preferred_username + + + + From 857270d8ecb54606a65a0c30ed24a98434c683ea Mon Sep 17 00:00:00 2001 From: "Alex(Zhaoyu) Sun" Date: Fri, 30 Aug 2024 12:26:33 -0700 Subject: [PATCH 2/2] address comment --- samples/components/oauth/snowflake.azure.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/components/oauth/snowflake.azure.xml b/samples/components/oauth/snowflake.azure.xml index 50667827..860fc423 100644 --- a/samples/components/oauth/snowflake.azure.xml +++ b/samples/components/oauth/snowflake.azure.xml @@ -1,5 +1,6 @@ + snowflake