From 14a8e8520e5f97f19f028c3112a83244ef0e521b Mon Sep 17 00:00:00 2001 From: Joy Wang <108701016+joyqvq@users.noreply.github.com> Date: Fri, 12 Jul 2024 09:23:47 -0400 Subject: [PATCH] chore: add a new cognito tenant --- crates/sui-config/src/node.rs | 1 + .../snapshot_tests__network_config_snapshot_matches.snap | 8 +++++++- crates/sui/src/keytool.rs | 9 +++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/crates/sui-config/src/node.rs b/crates/sui-config/src/node.rs index 5cdca44aba62e..062a7b9acc069 100644 --- a/crates/sui-config/src/node.rs +++ b/crates/sui-config/src/node.rs @@ -234,6 +234,7 @@ pub fn default_zklogin_oauth_providers() -> BTreeMap> { "KarrierOne".to_string(), "Credenza3".to_string(), "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A".to_string(), + "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8".to_string(), ]); let providers = BTreeSet::from([ "Google".to_string(), diff --git a/crates/sui-swarm-config/tests/snapshots/snapshot_tests__network_config_snapshot_matches.snap b/crates/sui-swarm-config/tests/snapshots/snapshot_tests__network_config_snapshot_matches.snap index a0341fccb49c4..972df1a52de4e 100644 --- a/crates/sui-swarm-config/tests/snapshots/snapshot_tests__network_config_snapshot_matches.snap +++ b/crates/sui-swarm-config/tests/snapshots/snapshot_tests__network_config_snapshot_matches.snap @@ -1,6 +1,5 @@ --- source: crates/sui-swarm-config/tests/snapshot_tests.rs -assertion_line: 151 expression: network_config --- validator_configs: @@ -109,6 +108,7 @@ validator_configs: Unknown: - Apple - "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A" + - "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8" - Credenza3 - Facebook - Google @@ -245,6 +245,7 @@ validator_configs: Unknown: - Apple - "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A" + - "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8" - Credenza3 - Facebook - Google @@ -381,6 +382,7 @@ validator_configs: Unknown: - Apple - "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A" + - "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8" - Credenza3 - Facebook - Google @@ -517,6 +519,7 @@ validator_configs: Unknown: - Apple - "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A" + - "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8" - Credenza3 - Facebook - Google @@ -653,6 +656,7 @@ validator_configs: Unknown: - Apple - "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A" + - "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8" - Credenza3 - Facebook - Google @@ -789,6 +793,7 @@ validator_configs: Unknown: - Apple - "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A" + - "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8" - Credenza3 - Facebook - Google @@ -925,6 +930,7 @@ validator_configs: Unknown: - Apple - "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A" + - "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8" - Credenza3 - Facebook - Google diff --git a/crates/sui/src/keytool.rs b/crates/sui/src/keytool.rs index 70f2cf42ac8b1..a2a02b531574e 100644 --- a/crates/sui/src/keytool.rs +++ b/crates/sui/src/keytool.rs @@ -1106,6 +1106,14 @@ impl KeyToolCommand { "https://example.com/callback", &jwt_randomness, )?; + let url_13 = get_oidc_url( + OIDCProvider::AwsTenant(("us-east-1".to_string(), "ambrus".to_string())), + &eph_pk_bytes, + max_epoch, + "t1eouauaitlirg57nove8kvj8", + "https://api.ambrus.studio/callback", + &jwt_randomness, + )?; println!("Visit URL (Google): {url}"); println!("Visit URL (Twitch): {url_2}"); println!("Visit URL (Facebook): {url_3}"); @@ -1119,6 +1127,7 @@ impl KeyToolCommand { println!("Visit URL (Microsoft): {url_10}"); println!("Visit URL (KarrierOne): {url_11}"); println!("Visit URL (Credenza3): {url_12}"); + println!("Visit URL (AWS - Ambrus): {url_13}"); println!("Finish login and paste the entire URL here (e.g. https://sui.io/#id_token=...):");