Zoom Windows SDK PKCE, Code Challenge in C++

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

after struggle a bit i found out that, Before converting it to Base 64,
i lowercase all of Hash265 result and then convert it to Base 64.

it will make the same result as the zoom challenge patterns.

and dont forget to use Base64URL rather than the usual Base64 encoder.

I Hope this can help anyone that upgrading Windows SDK using PKCE in C++

Admin or dev, you can mark this problem as solved.

Thankyou so much

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.