From ed318d9cbf3c359aef19da68d060398a9120fa6c Mon Sep 17 00:00:00 2001 From: "Alex(Zhaoyu) Sun" Date: Mon, 16 Sep 2024 13:49:31 -0700 Subject: [PATCH 1/2] add sample for hana external oauth --- samples/components/oauth/saphana.okta.xml | 77 ++++++++++++++++++++ samples/components/oauth/snowflake.azure.xml | 2 +- 2 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 samples/components/oauth/saphana.okta.xml diff --git a/samples/components/oauth/saphana.okta.xml b/samples/components/oauth/saphana.okta.xml new file mode 100644 index 00000000..f3ff000c --- /dev/null +++ b/samples/components/oauth/saphana.okta.xml @@ -0,0 +1,77 @@ + + + saphana + + + custom_saphana_azure + + Okta + $clientID + $clientSecret + http://localhost:56666/Callback + http://localhost:56667/Callback + http://localhost:56668/Callback + https://${yourOktaDomain}/oauth2/{authServerName}/v1/authorize + https://${yourOktaDomain}/oauth2/{authServerName}/v1/token + + openid + email + profile + offline_access + + + + + OAUTH_CAP_FIXED_PORT_IN_CALLBACK_URL + true + + + OAUTH_CAP_PKCE_REQUIRES_CODE_CHALLENGE_METHOD + true + + + OAUTH_CAP_REQUIRE_PKCE + true + + + OAUTH_CAP_SUPPORTS_STATE + true + + + OAUTH_CAP_CLIENT_SECRET_IN_URL_QUERY_PARAM + true + + + OAUTH_CAP_SUPPORTS_GET_USERINFO_FROM_ID_TOKEN + true + + + + + 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 + + + + diff --git a/samples/components/oauth/snowflake.azure.xml b/samples/components/oauth/snowflake.azure.xml index 860fc423..371b49f0 100644 --- a/samples/components/oauth/snowflake.azure.xml +++ b/samples/components/oauth/snowflake.azure.xml @@ -51,7 +51,7 @@ OAUTH_CAP_FIXED_PORT_IN_CALLBACK_URL - false + true From 8775103925e942bfb788543f8cb95670a604a593 Mon Sep 17 00:00:00 2001 From: "Alex(Zhaoyu) Sun" Date: Tue, 17 Sep 2024 01:45:55 -0700 Subject: [PATCH 2/2] change config id --- samples/components/oauth/saphana.okta.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/components/oauth/saphana.okta.xml b/samples/components/oauth/saphana.okta.xml index f3ff000c..3b1362b8 100644 --- a/samples/components/oauth/saphana.okta.xml +++ b/samples/components/oauth/saphana.okta.xml @@ -3,7 +3,7 @@ saphana - custom_saphana_azure + custom_saphana_okta Okta $clientID