felipemartim / waterlock-google-auth

Google authentication for Waterlock

Home Page:http://waterlock.ninja/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Waterlock Google Auth

Build Status NPM version Dependency Status

waterlock-google-auth is a module for waterlock providing a google authentication method for users.

Usage

npm install waterlock-google-auth

set the following option in your waterlock.json config file

"authMethod":[
   {
      name: 'waterlock-google-auth',
      clientId: 'CLIENT_ID', 
      clientSecret: 'CLIENT_SECRET'
    }
]

Direct your user to /auth/login will initiate the oauth request. The callback uri is /auth/oauth2 if successfuly authenticated a user record will be created if a user is not found one will be created using the waterlines findOrCreate method

About

Google authentication for Waterlock

http://waterlock.ninja/

License:MIT License


Languages

Language:JavaScript 93.0%Language:Makefile 7.0%