veyron/services/identity: Refactor the identity server.
In order to make the identity server more configurable/modular and cleaner
and simpler to test, this change does the following:
- Creates the notion of a OAuthProvider interface which GoogleOAuth implements.
- Removes as much "google" specific code from the server.
- The IdentityServer is created from a factory which requires a OAuthProvider,
auditor, blessingLogReader, and revocationManager. This will make the system
easier to mock.
Change-Id: I2139477c7325e04ee988064e76e4c86b20bf8166
12 files changed