New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser engine integration? #101
Comments
Hello 👋 Thanks for reaching out, brower integration has been the ultimate goal of mCaptcha since WASM/JS can only be so fast :) There are three ways three ways to go about this:
I'm open to other ideas as well. Talk soon o/ |
I think it'd be simplest for you to offer me a C ABI (the simpler the better), I'm well practiced at language-binding those! How about the markup? What new HTML tags should render to an mCaptcha? |
Great! I will configure pow_sha256 to compile to C ABI and get back to you. ETA: 2 weeks (school is keeping me busy at the moment 😅).
I'm sorry, I don't know how to implement mCaptcha without JavaScript. Are you saying that we can get the same behavior with a new markup tag? If yes, that tag should <Mcaptcha src="https://mcaptcha.example.org" sitekey="somesitekey" /> And should do the following:
curl 'https://demo.mcaptcha.org/api/v1/pow/config' \
-X POST \
-H 'Content-Type: application/json' \
--data-raw '{"key":"pHy0AktWyOKuxZDzFfoaewncWecCHo23"}'
curl 'https://demo.mcaptcha.org/api/v1/pow/verify' \
-X POST \
-H 'Content-Type: application/json' \
--data-raw '{"key":"pHy0AktWyOKuxZDzFfoaewncWecCHo23","string":"OmcyEfHiXJWfgGFX49PRcdrC3jSqayUd","nonce":58110,"result":"340279823978375858028160475878480141189","time":25,"worker_type":"wasm"}' Response: {"token":"AW5h4UgJBaqcbXKWGmi4DBFmxVT0gyYn"}
<input id="mcaptcha__token" name="mcaptcha__token" required="" hidden="" value="AW5h4UgJBaqcbXKWGmi4DBFmxVT0gyYn"> A simple demo is available at https://showcase.mcaptcha.org, which should demonstrate the whole process. |
Sounds perfect! |
So that Either way this looks like it'd probably be a trivial language binding to write... |
I seemed to have overlooked this thread, apologies!
But neither of these libraries parse JSON. |
Hi, I'm working on an NLnet-funded browser engine "Haphaestus" & I'd be keen to figure out with you how we can mCaptcha working in my browser engine.
The catch is that for several reasons I will not & cannot support JavaScript, so mCaptcha will need to be integrated directly into my webform engine "Bureaucromancy" as a new type. Thoughts?
The text was updated successfully, but these errors were encountered: