Socket
Socket
Sign inDemoInstall

izi-auth

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

izi-auth

Module for handling passport authentications in izisoft applications


Version published
Maintainers
1
Created
Source

izi-auth

Simple authentication management module for izisoft web application.

Installation

$ npm install git+https://bitbucket.org/izisoft/auth-js

Requirements

Module operates on provided mongoose user model that should realize following schema:

User: {
    _id: ObjectId,
    provider: String,
    email: String,
    password: String,
    id: String,
    token: String
    name: String,
    generateHash: function(password),
    verifyPassword: function(password),
    initialize: function(request || undefined)
}

To initialize strategies module reads given izi-config object which should contain:

Config: {
    logger: Object,
    auth: {
        url: {
            success: String || "/",
            login: String,
            signup: String
        },
        flash: Boolean || true,
        oauth: {
            facebook: {
                id: String,
                secret: String,
                url: String,
                opts: Object
            },
            google: {
                id: String,
                secret: String,
                url: String,
                opts: Object
            },
            twitter: {
                id: String,
                secret: String,
                url: String,
                opts: Object || {}
            }
        }
    }
}

Usage

var auth = require('izi-auth');
auth.init(UserModel, config);
auth.use(app);

Keywords

FAQs

Package last updated on 26 Mar 2017

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