Redis-backed OAuth library in the Volos system.
Want to see pretty graphs? Log in now!
npm install volos-oauth-redis
|16||downloads in the last week|
|41||downloads in the last month|
|Last Published By|
|Version||0.9.0 last updated 25 days ago|
|Keywords||oauth, redis, node.js|
|Dependencies||redis, node-uuid, volos-oauth-common, volos-management-redis, underscore|
This is an OAuth 2.0 implementation for the Volos family of modules that uses Redis as its source of data. That is, information about valid application IDs and secrets, and the access tokens themselves, are stored in Redis.
This module actually exports the same programming interface as "volos-oauth-common" -- see that module for detailed documentation.
This module depends on having installed the Redis data store or having network access to such. All data is stored in database 0 and uses a 'volos:' prefix for all keys. By default, it assumes Redis is local and running using the default ports. Alternate configuration may be passed in - see options below.
The module exports one function, called "create". It takes an argument called "options" with the following parameters:
- host: The host name or IP address of the Redis server.
- port: The port number the Redis server is configured to use for client requests.
- options: A hash of Redis options (see this for list).
The result of this call will be an "OAuth" object, which may be used according to the interface defined by the "volos-oauth-common" module.