Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add a new cognito tenant #18635

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/sui-config/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ pub fn default_zklogin_oauth_providers() -> BTreeMap<Chain, BTreeSet<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(),
]);
let providers = BTreeSet::from([
"Google".to_string(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/sui-swarm-config/tests/snapshot_tests.rs
assertion_line: 151
expression: network_config
---
validator_configs:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions crates/sui/src/keytool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand All @@ -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=...):");

Expand Down
Loading