snikket-im / snikket-android

Snikket Android client
https://snikket.org/app/
GNU General Public License v3.0
97 stars 18 forks source link

Support for scanning https:// invitation QR codes #20

Open mwild1 opened 3 years ago

mwild1 commented 3 years ago

If a scanned QR code is a https:// URL, perform a HEAD request and look for a Link header like the following:

Link: <xmpp:example.com?register;preauth=65HVSJQKz-sV8-Jr> rel="alternate"

Extract the URI and handle it the same as if a URI QR was scanned directly.

mwild1 commented 3 years ago

This will allow us to simplify the invitation page.