cmd/principal,services/identity: Propagate cancellation and errors
from identity server to principal tool.

This change does the following:
(1) Clicking the cancel button at the addcaveats page sends a cancel
    error to the identity server.
(2) All errors encountered after a toolRedirectURL is decoded are
    propagated to that url.
(3) If the principal tool recieves a identity server error, it will
    not attempt to seek a blessings.

This ensure that cancelling a auth flow doesn't leave the principal
tool hanging, and clearly tells the user that they were successful
in their cancellation.

address vanadium/issues#492

Change-Id: Ia142161bcd85bf5d84971e64d7d645ff98d49bfb
4 files changed
tree: bd9006a90be238ae1fbd288d02d8d8cee03d0f2e
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTORS
  11. envvar.go
  12. envvar_test.go
  13. LICENSE
  14. PATENTS
  15. README.md
  16. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.