keyapi
October 18, 2019 ยท View on GitHub
This repository is part of the Joyent Triton project. See the contribution guidelines and general documentation at the main Triton project page.
KeyAPI is a simple library to create and unpackage opaque encrypted tokens for services that require user authentication
KeyAPI provides a mechanism for Triton to securely pass information in and out of the system using tokens.
Using KeyAPI
POST: /token
As "Content-Type: application/json", POST a json object to the /token endpoint
will return a tokenized json object with the "data" and "hash" fields set
POST: /detoken
As "Content-Type: application/json", POST a token object to /detoken
returns a JSON object, the contents of the token