/usr/lib/Wt/examples/qrlogin/README.md is in witty-examples 3.3.0-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | QRLogin example
---------------
This is an example that illustrates how `Wt::Auth` can be extended
with additional authentication mechanisms. The example is introduced
in [this post]
(http://www.webtoolkit.eu/wt/blog/2012/02/17/qr_code_login_example)
The example adds the ability to login by authenticating on a mobile
phone after scanning a QR code. This means that if on the phone you
have a remember-me cookie stored, you can sign in to a public computer
without needing password authentication.
How to run
----------
See the README in the parent directory.
Additional arguments: `-c wt_config.xml`
The configuration file configures progressive bootstrap, which is
needed to apply viewport indications for mobile browsers, and also
enables websockets, just for fun.
What it illustrates
-------------------
- server push to handle the remote login using `WApplication::triggerUpdate()`
- the use of `WResource` and `Http::Client` to implement inter-session
communication in case not all sessions run within the same process
- using `Wt::Dbo` to map an additional database table
- how to customize and extend `Wt::Auth`
|