New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kazana-account

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kazana-account

Kazana core module for all things accounts and authentication

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-79.17%
Maintainers
1
Weekly downloads
 
Created
Source

kazana-account

Kazana core module for all things accounts and authentication

NPM version Build Status Coverage Status

Install

git clone git@github.com:eHealthAfrica/kazana-account.git
cd kazana-account
npm install

## Usage

The service uses CouchDB's authentication system behind the curtain, so every user needs a document in the _users database.

Special requirements:

  1. roles: must to contain at least on of the kazana-* roles, see below
  2. roles: must contain the user id, in the form: "kazana-id:<userId here>"
  3. createdAt: ISO timestamp for the time the user account has been created
  4. fullname: must contain the name of the user

An example _users doc for reference (without the password properties):

{
   "_id": "org.couchdb.user:gregor@martynus.net",
   "_rev": "3-16dd17eaf12eb656ea2d1882ee7018ad",
   "name": "gregor@martynus.net",
   "roles": [
       "kazana-id:abcdef",
       "kazana-admin"
   ],
   "type": "user",
   "createdAt": "2015-04-15T00:00:00.000Z",
   "fullname": "Gregor Martynus"
}

User Access Levels (roles)

Access Levelroledescription
Data Providerkazana-data-providerUser can import new data reports
Reviewerkazana-data-reviewerUser can see validation errors and can amend existing data reports
Analystkazana-analystUser has access to integrated data
Adminkazana-adminUser can configure systems, manage accounts, etc

Routes

GET /api/session
POST /api/session
DELETE /api/session

Test

Dependency Status devDependency Status

npm test

Credit

Brought to you by eHealth Africa — good tech for hard places.

License

Apache-2.0

Keywords

FAQs

Package last updated on 21 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc