veyron/services/identity: Adding CSRF protection to revocation interface in
identity server.

* Tokens are embedded into JS on page load.
* Server validates that token against the request's cookie.
* Server also checks that token matches one of the caveatIDs that the user can
  revoke based on a map that is stored in memory.

Future:
* Consider a timeout on entries in the DirectoryStore.
* Ensure that tokens are refreshed frequently enough to ensure that this works.

Change-Id: If7ca60ed9cd2695592cf575657fe406dc29bbf7c
7 files changed
tree: 3a46c8f2d8da155d8513e659a1a1621ff3ecb77a
  1. examples/
  2. jni/
  3. lib/
  4. profiles/
  5. runtimes/
  6. security/
  7. services/
  8. tools/