View source: R/authenticate_user.R
authenticate_user | R Documentation |
This is an app used by the Rook server launched by dataServer
Params are passed as a url-encoded field named 'json' in the http POST request.
The return value is a JSON-formatted string
authenticate_user(env)
env |
Rook request environment |
a JSON list with these items:
token character scalar token used in subsequent API calls
expiry numeric timestamp at which token
expires
userID integer user ID of user at motus
projects list of projects user has access to; indexed by integer projectID, values are project names
receivers FIXME: will be list of receivers user has access to
if the user is authorized. Otherwise, return a JSON list with a single item called "error".
This is simply a convenience wrapper around
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.