Skip to content

Commit

Permalink
Add Trace as OAuth provider for dev (#19606)
Browse files Browse the repository at this point in the history
Add Trace as OAuth provider for dev

```
2024-09-30T20:02:38.090458Z  INFO node{name=k#99f25ef6..}: sui_core::authority::authority_per_epoch_store: received jwk vote from k#99f25ef6.. for jwk (JwkId { iss: "https://cognito-idp.eu-west-3.amazonaws.com/eu-west-3_gGVCx53Es", kid: "FIqQqeRU1EQP75fBeds+wL2yczwvbDy1NF6T/f5Oe5o=" }, JWK { kty: "RSA", e: "AQAB", n: "va55QtSTFhvqx0IL8UAPNZf6x5NO9jK88Wyct-i67grbDJZyXLSxz5oSttoIHkaJZQWgl_qsgyxDpHeSMznliS0K7rXFwaw81PwDIB_ek8uKhXmaQ6ryPAaO-8kvR46o-EYyVk9wWPDHTtN6NEbiUxGoDqOoiVCrVJLsFdoia7-MMVJnR2VokbEgGGbJkZu2MipikQvk_b7BGF__5mKvCJc6hCEJcxIUFvETKA9AOhjgxLvE9U8Ke6XRfmDLKovDAsDaZsWP6VPN0HoBi5mak9CgUqmxwnvNJFLhpjawD9E23O_l4aBcie56eFcC_knUa2VOHymBoJ0On3p03yxs7Q", alg: "RS256" })
```

---------

Co-authored-by: Joy Wang <[email protected]>
  • Loading branch information
VLegakis and joyqvq authored Sep 30, 2024
1 parent 96b5a14 commit 5505e62
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,10 @@ move-abstract-interpreter = { path = "external-crates/move/crates/move-abstract-
move-abstract-stack = { path = "external-crates/move/crates/move-abstract-stack" }
move-analyzer = { path = "external-crates/move/crates/move-analyzer" }

fastcrypto = { git = "https://github.com/MystenLabs/fastcrypto", rev = "bf155b75ef11c577d9ffef93a2a4f62b427a3a6a" }
fastcrypto-tbls = { git = "https://github.com/MystenLabs/fastcrypto", rev = "bf155b75ef11c577d9ffef93a2a4f62b427a3a6a" }
fastcrypto-zkp = { git = "https://github.com/MystenLabs/fastcrypto", rev = "bf155b75ef11c577d9ffef93a2a4f62b427a3a6a", package = "fastcrypto-zkp" }
fastcrypto-vdf = { git = "https://github.com/MystenLabs/fastcrypto", rev = "bf155b75ef11c577d9ffef93a2a4f62b427a3a6a", features = [
fastcrypto = { git = "https://github.com/MystenLabs/fastcrypto", rev = "c050ffc78b93739328af5d59b05f90e0e26b1b7e" }
fastcrypto-tbls = { git = "https://github.com/MystenLabs/fastcrypto", rev = "c050ffc78b93739328af5d59b05f90e0e26b1b7e" }
fastcrypto-zkp = { git = "https://github.com/MystenLabs/fastcrypto", rev = "c050ffc78b93739328af5d59b05f90e0e26b1b7e", package = "fastcrypto-zkp" }
fastcrypto-vdf = { git = "https://github.com/MystenLabs/fastcrypto", rev = "c050ffc78b93739328af5d59b05f90e0e26b1b7e", features = [
"experimental",
] }
passkey-types = { version = "0.2.0" }
Expand Down
1 change: 1 addition & 0 deletions crates/sui-config/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ pub fn default_zklogin_oauth_providers() -> BTreeMap<Chain, BTreeSet<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
"Arden".to_string(), // Arden partner
"AwsTenant-region:eu-west-3-tenant_id:eu-west-3_gGVCx53Es".to_string(), // Trace, external partner
]);

// providers that are available for mainnet and testnet.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ validator_configs:
Unknown:
- Apple
- Arden
- "AwsTenant-region:eu-west-3-tenant_id:eu-west-3_gGVCx53Es"
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A"
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
Expand Down Expand Up @@ -286,6 +287,7 @@ validator_configs:
Unknown:
- Apple
- Arden
- "AwsTenant-region:eu-west-3-tenant_id:eu-west-3_gGVCx53Es"
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A"
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
Expand Down Expand Up @@ -449,6 +451,7 @@ validator_configs:
Unknown:
- Apple
- Arden
- "AwsTenant-region:eu-west-3-tenant_id:eu-west-3_gGVCx53Es"
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A"
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
Expand Down Expand Up @@ -612,6 +615,7 @@ validator_configs:
Unknown:
- Apple
- Arden
- "AwsTenant-region:eu-west-3-tenant_id:eu-west-3_gGVCx53Es"
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A"
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
Expand Down Expand Up @@ -775,6 +779,7 @@ validator_configs:
Unknown:
- Apple
- Arden
- "AwsTenant-region:eu-west-3-tenant_id:eu-west-3_gGVCx53Es"
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A"
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
Expand Down Expand Up @@ -938,6 +943,7 @@ validator_configs:
Unknown:
- Apple
- Arden
- "AwsTenant-region:eu-west-3-tenant_id:eu-west-3_gGVCx53Es"
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A"
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
Expand Down Expand Up @@ -1101,6 +1107,7 @@ validator_configs:
Unknown:
- Apple
- Arden
- "AwsTenant-region:eu-west-3-tenant_id:eu-west-3_gGVCx53Es"
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_LPSLCkC3A"
- "AwsTenant-region:us-east-1-tenant_id:us-east-1_qPsZxYqd8"
- Credenza3
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 @@ -1122,6 +1122,14 @@ impl KeyToolCommand {
"https://www.sui.io",
&jwt_randomness,
)?;
let url_15 = get_oidc_url(
OIDCProvider::AwsTenant(("eu-west-3".to_string(), "trace".to_string())),
&eph_pk_bytes,
max_epoch,
"trace-dev",
"https://trace.fan",
&jwt_randomness,
)?;
// This is only for CLI testing. If frontend apps will be built, no need to add anything here.
println!("Visit URL (Google): {url}");
println!("Visit URL (Twitch): {url_2}");
Expand All @@ -1138,6 +1146,7 @@ impl KeyToolCommand {
println!("Visit URL (Credenza3): {url_12}");
println!("Visit URL (AWS - Ambrus): {url_13}");
println!("Visit URL (Arden): {url_14}");
println!("Visit URL (AWS - Trace): {url_15}");

println!("Finish login and paste the entire URL here (e.g. https://sui.io/#id_token=...):");

Expand Down

0 comments on commit 5505e62

Please sign in to comment.