Giter Site home page Giter Site logo

Comments (4)

golf1052 avatar golf1052 commented on June 24, 2024

Sending CAPTCHA tokens to Signal works, the current problem I'm blocked by is that the URI generated by the Signal CAPTCHA page on https://signalcaptchas.org/registration/generate.html isn't a valid URI. This means when embedding the CAPTCHA webpage into the app I cannot handle any Navigation event correctly because the Windows APIs expect a valid URI. This also goes for URI protocol handling.

I've made a post on the Signal community forum. Hopefully Signal will consider making a change to their page. In the mean time I'll continue looking for a work around.

from signal-windows.

golf1052 avatar golf1052 commented on June 24, 2024

I've figured out an annoying but working workaround. Though the C# Uri constructor fails to parse the signalcaptcha Uri, both a C++ or a Javascript UWP app can parse it fine (or at least don't throw an exception). With this knowledge here is the workaround.

  1. Create a Javascript UWP app and register signalcaptcha as a protocol. The Javascript app is here. Then run the app to ensure the app is registered on the system to handle the signalcaptcha protocol.
  2. Open a WebView in Signal-Windows and let the user solve the CAPTCHA. Once they do that the page will redirect to the signalcaptcha Uri which will then cause the system to prompt the user to open the Javascript CAPTCHA app.
  3. When the Javascript app gets launched by the protocol, extract the token from the Uri and pass the token back to Signal-Windows. There are many ways to share data between UWP apps but I've opted to use LaunchUriAsync.
  4. Since Signal-Windows is already open, when handling the protocol launch update the CAPTCHA token on the RegistrationPage.

The one major annoyance is that the user needs to install another app to get CAPTCHAs to work but I haven't found an in-app way of getting the signalcaptcha redirect to work yet.

from signal-windows.

golf1052 avatar golf1052 commented on June 24, 2024

Support for this has been added in 2933a1e

from signal-windows.

golf1052 avatar golf1052 commented on June 24, 2024

Signal Windows 0.3.0 is in the store.

from signal-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.