See https://github.com/cambridgeuniversity/UcamWebauth-protocol.
