Skip to content

Commit

Permalink
Enable Trace OAuth provider for Dev (#841)
Browse files Browse the repository at this point in the history
* Enable Trace OAuth provider for Dev

* n update

* Update test cases

* Remove duplicates

* Add trace test provider

* Update test

* Change provider name

* Revert provider name
  • Loading branch information
VLegakis authored Sep 30, 2024
1 parent 8b35343 commit c050ffc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fastcrypto-zkp/src/bn254/unit_tests/zk_login_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ async fn test_get_jwks() {
OIDCProvider::Onefc,
OIDCProvider::FanTV,
OIDCProvider::Arden,
OIDCProvider::AwsTenant(("eu-west-3".to_string(), "eu-west-3_gGVCx53Es".to_string())), //Trace
] {
let res = fetch_jwks(&p, &client).await;
assert!(res.is_ok());
Expand Down Expand Up @@ -484,6 +485,7 @@ fn test_get_provider_to_from_iss_to_from_str() {
OIDCProvider::Threedos,
OIDCProvider::Onefc,
OIDCProvider::FanTV,
OIDCProvider::AwsTenant(("eu-west-3".to_string(), "eu-west-3_gGVCx53Es".to_string())), //Trace
] {
// to/from iss
assert_eq!(p, OIDCProvider::from_iss(&p.get_config().iss).unwrap());
Expand Down
8 changes: 7 additions & 1 deletion fastcrypto-zkp/src/bn254/zklogin_test_vectors.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,11 @@
"kid": "rsa-2048-1725567906",
"n": "91zWDFsVOv6IZ_DIjy3fJZRKdLSLxBsW63bs_mpqHJ3JV2KfgVsuiOd69yFixukDnWfh1z-ty57vagwWa8MfSAxy_K2sNEcgbhzK7h8FCS4zXOjOdZ4oT368HEf4witvQ1aX7IgUFS_LgXs56X0cUPWEsH94NyhAlvMghuEbZKujInxYhiSCMJwWZS7K8-jk5xQR7fz3MMxvj_2PdXQ_wW3Hv2_SCdQbBKiGV_YyM_h4FSdloNnsSUEXE8CGg_csNO19FnbsQhKwc3OmPXsSIvGg3j9p2MRFc4trE6s-lv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vm4UmFgIq6DVHQhENrqUtrvXwlu2hOPQ0txVCjoQdK-tKt2S5WUsYDINdDYNUtZikTAD8Zfa25I09U7Ir5NFznbQwCWNyWXUH1rA",
"kid": "JbFCSYl4Xp4UYEJHo7R0iwl/Xf3F5+z72stu8iH+QxY=",
"n": "o09QloKDInGEWvXK0aZr67RnfU9l0kmTOldGF8t36ExfBWNvRsTiTfn4VdetcJlIDrmxQSSP-2toXqQ7m1t4_idKNjkb7s1FsAtWy60mAfmyeMcGhegmxxxMtWJsk2hbY_oRuTPQEUDnTfnIMUL-oDmc_HmRNzYPrbCJolIWC2r2gkJ-q6jwGEujkaeoQq3wM_NTkeBO_rrCUngIUykbbczkMF8vELGewPgwqTjd9ZTTf08kUPF9IUtT-VyF0U-I1xrQrmU9opQ209I-Dk-ehxIHWN85nlLBxu0Krb9adSx_HDEOd00wNSQgPBkvCUPpVmC10UO7hHxzGSi7czrlsw",
"provider": "AWS Tenant - Trace - eu-west-3_gGVCx53Es"
}
]
]

0 comments on commit c050ffc

Please sign in to comment.