services/identity/identityd: Remove unused services and code.

Prior to this patch, identityd provided three ways to get blessings:
(1) Vanadium RPC to the "macaroon" object
    This is used to obtain "user" blessings (<idp>:u:<userid>),
    using the protocol described in
    https://vanadium.github.io/designdocs/identity-service.html#user-blessing-flow
    typically via the 'principal seekblessings' command-line tool
(2) Vanadium RPC to the "google" object This also yields "user"
    blessings from a trusted chrome extension (wspr) or the "Vanadium
    Account" service in Android (a .apk separate from any user-facing
    application). The set of trusted applications were registered via the
    --google-config-chrome and --google-config-android flags.
(3) HTTPS: Exchanging an OAuth Access Token of an arbitrary application
    for a blessing. This results in "app" blessings, of the form:
    <idp>:o:<oauth client id>:<userid>

In both (2) and (3), there is no binding between the access token
and the channel (Vanadium RPC or HTTPS) to identityd. So, (2)
was adding no guarantees over (3).

With the emergence of (3), deletion of the Vanadium chrome extension and
no plans to use a separate .apk of "trusted code" running on Android
phones to manage Vanadium blessings, (2) has been rendered irrelevant.
It was a bunch of code, adding unnecessary complexity.

To re-iterate: There is no advantage to exchanging access tokens (or
IDTokens) for a blessing over Vanadium RPC vs. over HTTPS. Thus,
this patch just removes the former.

Change-Id: Id1c0e1ad06c7ee4231e8af91c041a16c4e6f4faa
13 files changed
tree: 1ecadb6e481f0e081e40e3719da950c27c351aa7
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING.md
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. 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.