- OS: Windows 10
Reffering to this article Zoom OAuth 2.0 Proof Key for Code Exchange (PKCE) Flow - #10 by smurray
I Try to make PKCE OAuth for Windows SDK, I Can make the Usual OAuth Code Challenge, but i cant find my way to create the Zoom OAuth Code Challenge
according to this, (this is the Usual OAuth Challenge Code)
my Code Are like this
std::string SHA256HashString(std::string aString) {
std::string digest;
CryptoPP::SHA256 hash;
CryptoPP::StringSource foo9(aString, true,
new CryptoPP::HashFilter(hash,
new CryptoPP::StringSink(digest)));
return digest;
}
std::string Base64convert(std::string aString) {
std::string result;
CryptoPP::StringSource foo8(aString, true,
new CryptoPP::Base64Encoder(
new CryptoPP::StringSink(result)));
return result;
}
and this is how i called it
std::string code_verifier = "OoRepCjjX8P4perVeWHK-5TKSfyZLPuCjirkjY3hh7I";
std::string Hash1 = SHA256HashString(code_verifier);
std::string Oauth_challenge = Base64convert(Hash1);
but for the Zoom OAuth, according to this
std::string pack256(std::string aString) {
std::string digest;
CryptoPP::SHA256 hash;
CryptoPP::StringSource foo1(aString, true,
new CryptoPP::HashFilter(hash,
new CryptoPP::HexEncoder(
new CryptoPP::StringSink(digest))));
return digest;
}
std::string Base64convert(std::string aString) {
std::string result;
CryptoPP::StringSource foo8(aString, true,
new CryptoPP::Base64Encoder(
new CryptoPP::StringSink(result)));
return result;
}
and this is how i called it
std::string code_verifier = "OoRepCjjX8P4perVeWHK-5TKSfyZLPuCjirkjY3hh7I";
std::string Hash2 = pack256(code_verifier);
std::string Zoom_challenge = Base64convert(Hash2);
at which step did i wrong? please ignore the static string on the code verifier, because i want to make sure the Zoom Challenge Value is Correct.
Can Someone help me on this case? because after November 5th, all of my client cant use the Zoom SDK app anymore, because, the newer version after 5.9 don’t have Login Function.
I already try to contact the developer since last month for the guide and DEMO App for C++, The Dev said they will provide me before October, But i still got nothing today.
Thankyou so much
Regards, Takei