Skip to content

Commit

Permalink
fix fantv iss string (#834)
Browse files Browse the repository at this point in the history
* fix fantv iss string

* add test
  • Loading branch information
joyqvq authored Sep 13, 2024
1 parent 54c060e commit bc45da8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fastcrypto-zkp/src/bn254/zk_login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl OIDCProvider {
"https://login.onepassport.onefc.com/de3ee5c1-5644-4113-922d-e8336569a462/b2c_1a_prod_signupsignin_onesuizklogin/discovery/v2.0/keys",
),
OIDCProvider::FanTV => ProviderConfig::new(
"https://accounts.fantv.world/",
"https://accounts.fantv.world",
"https://fantv-apis.fantiger.com/v1/web3/jwks.json",
),
}
Expand Down
6 changes: 6 additions & 0 deletions fastcrypto-zkp/src/bn254/zklogin_test_vectors.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,11 @@
"kid": "X-yzFPFMdWtJQ1oJXiGRVnn061ezrvZz596xN3mCfyQ",
"n": "t4ZoVgvyj7jKNq-ydYvgYVn5avBR9H4BQrKy2FWlR49siiMFWhxYXtPs7o4J6hhUgo00nk9pf-7rg7XnTiI7MFp2DluhWZK41YFfyGhDpbG9EImqvmy1N8poj5fid1lAjH2CfjtDyywgV84ViQ1hA5-noOrLhjb-zMZp_yKMSEeY_Ewx70jwhXevvrANKblNUFVJPQ7EI6_La-uALNBeQfu5OgPiMPiswhoQz0bhproUc7GiRxBw-9n72z3JU3HMy9mByrDnNfaZ13_Kmp9zgZYxynv5XXWJFGVHv3GZ_cDYg6OqahmrwMhT3GYTZ8JjMzZj4gH8MCCGPxde9SotKQ",
"provider": "Onefc"
},
{
"jwt": "eyJ0eXAiOiJqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik81cnl4Ri16TUNMbVM2aFFoY1RDM3BBQWhRNFlZUEVIb2lRdDFxeF84Nm8ifQ.eyJpc3MiOiJodHRwczovL2FjY291bnRzLmZhbnR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"Fantv"
}
]

0 comments on commit bc45da8

Please sign in to comment.