Skip to content

Commit

Permalink
feat: enable karrier one for testnet/mainnet (#18898)
Browse files Browse the repository at this point in the history
  • Loading branch information
joyqvq authored and suiwombat committed Sep 16, 2024
1 parent eaa8a2d commit 881d226
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
10 changes: 8 additions & 2 deletions crates/sui-config/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ fn default_jwk_fetch_interval_seconds() -> u64 {

pub fn default_zklogin_oauth_providers() -> BTreeMap<Chain, BTreeSet<String>> {
let mut map = BTreeMap::new();

// providers that are available on devnet only.
let experimental_providers = BTreeSet::from([
"Google".to_string(),
"Facebook".to_string(),
Expand All @@ -239,15 +241,19 @@ pub fn default_zklogin_oauth_providers() -> BTreeMap<Chain, BTreeSet<String>> {
"Microsoft".to_string(),
"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(),
"AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A".to_string(), // test tenant in mysten aws
"AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8".to_string(), // ambrus, external partner
]);

// providers that are available for mainnet and testnet.
let providers = BTreeSet::from([
"Google".to_string(),
"Facebook".to_string(),
"Twitch".to_string(),
"Apple".to_string(),
"AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8".to_string(),
"KarrierOne".to_string(),
"Credenza3".to_string(),
]);
map.insert(Chain::Mainnet, providers.clone());
map.insert(Chain::Testnet, providers);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,18 @@ validator_configs:
Mainnet:
- Apple
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
- Facebook
- Google
- KarrierOne
- Twitch
Testnet:
- Apple
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
- Facebook
- Google
- KarrierOne
- Twitch
Unknown:
- Apple
Expand Down Expand Up @@ -241,14 +245,18 @@ validator_configs:
Mainnet:
- Apple
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
- Facebook
- Google
- KarrierOne
- Twitch
Testnet:
- Apple
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
- Facebook
- Google
- KarrierOne
- Twitch
Unknown:
- Apple
Expand Down Expand Up @@ -382,14 +390,18 @@ validator_configs:
Mainnet:
- Apple
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
- Facebook
- Google
- KarrierOne
- Twitch
Testnet:
- Apple
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
- Facebook
- Google
- KarrierOne
- Twitch
Unknown:
- Apple
Expand Down Expand Up @@ -523,14 +535,18 @@ validator_configs:
Mainnet:
- Apple
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
- Facebook
- Google
- KarrierOne
- Twitch
Testnet:
- Apple
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
- Facebook
- Google
- KarrierOne
- Twitch
Unknown:
- Apple
Expand Down Expand Up @@ -664,14 +680,18 @@ validator_configs:
Mainnet:
- Apple
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
- Facebook
- Google
- KarrierOne
- Twitch
Testnet:
- Apple
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
- Facebook
- Google
- KarrierOne
- Twitch
Unknown:
- Apple
Expand Down Expand Up @@ -805,14 +825,18 @@ validator_configs:
Mainnet:
- Apple
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
- Facebook
- Google
- KarrierOne
- Twitch
Testnet:
- Apple
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
- Facebook
- Google
- KarrierOne
- Twitch
Unknown:
- Apple
Expand Down Expand Up @@ -946,14 +970,18 @@ validator_configs:
Mainnet:
- Apple
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
- Facebook
- Google
- KarrierOne
- Twitch
Testnet:
- Apple
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
- Facebook
- Google
- KarrierOne
- Twitch
Unknown:
- Apple
Expand Down Expand Up @@ -997,3 +1025,4 @@ account_keys:
- mfPjCoE6SX0Sl84MnmNS/LS+tfPpkn7I8tziuk2g0WM=
- 5RWlYF22jS9i76zLl8jP2D3D8GC5ht+IP1dWUBGZxi8=
genesis: "[fake genesis]"

0 comments on commit 881d226

Please sign in to comment.