• This repository has been archived on 09/Nov/2017
  • Stars
    star
    243
  • Rank 165,856 (Top 4 %)
  • Language
    JavaScript
  • Created over 11 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sails.js Social Auth example with Passport and MongoDB

Sails.js Social Auth example with Passport and MongoDB Dependency Status

Requirements

  • sails >= 0.10.4
  • node >= 0.10.0
  • MongoDB

Setup

  1. Clone the repository git clone https://github.com/stefanbuck/sails-social-auth-example.git
  2. Navigate into the directory cd sails-social-auth-example
  3. Run npm install to install the dependencies
  4. Set up your MongoDB settings config/connections.js
  5. Start your MongoDB from the command line with sudo mongod
  6. Set up your strategies
  7. Start sails with sails lift
  8. Open http://localhost:1337 in your browser

Available authentication strategies

Google+

  1. Create a new app here
    • Name sails-social-auth-example
    • URL http://localhost:1337
    • Callback URL http://localhost:1337/auth/google/callback
  2. In the config/express.js replace YOUR_CLIENT_ID and YOUR_CLIENT_SECRET with the generated keys

GitHub

  1. Create a new app here
    • Name sails-social-auth-example
    • URL http://localhost:1337
    • Callback URL http://localhost:1337/auth/github/callback
  2. In the config/express.js replace YOUR_CLIENT_ID and YOUR_CLIENT_SECRET with the generated keys

Facebook

  1. Create a new app here
    • Name sails-social-auth-example
    • URL http://localhost:1337
    • Callback URL http://localhost:1337/auth/facebook/callback
  2. In the config/express.js replace YOUR_CLIENT_ID and YOUR_CLIENT_SECRET with the generated keys

Twitter

  1. Create a new app here
    • Name sails-social-auth-example
    • URL http://localhost:1337
    • Callback URL http://localhost:1337/auth/twitter/callback
  2. In the config/express.js replace YOUR_CLIENT_ID and YOUR_CLIENT_SECRET with the generated keys

License

The MIT License (MIT)

Copyright (c) 2014 Stefan Buck

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

awesome-browser-extensions-for-github

A collection of awesome browser extensions for GitHub.
JavaScript
2,790
star
2

github-issue-parser

JavaScript
77
star
3

cookiecutter-template

Repository templates meets GitHub Actions
44
star
4

Archive-Octo-Linker-Core

Links dependencies in a package or bower file to their GitHub page
JavaScript
31
star
5

jumpcat

A command palette for GitHub (browser extension)
29
star
6

hacktoberfest-hunt

Find projects that participate in Hacktoberfest within your starred repositories.
JavaScript
19
star
7

yoapp

The missing GUI for Yeoman
JavaScript
19
star
8

ristorante

JavaScript
11
star
9

pull-request-badge-app

Badges for your Pull Request πŸš€
9
star
10

eslint-rule-docs

Find documentation url for a given ESLint rule. Updated daily.
JavaScript
9
star
11

github-url-parse

Parse the github user, repo, branch and other things from a GitHub url.
JavaScript
8
star
12

peer-version-check

Check whether every peerDependency is defined as a devDependency
JavaScript
6
star
13

logseq-media-controls

Media controls to skip forward / backward or change the playback rate of a audio or video.
TypeScript
5
star
14

actionhero-auth-example

Authentication example with actionhero
JavaScript
5
star
15

tents-

JavaScript
5
star
16

vscode-marketplace-stats

JavaScript
3
star
17

jest-matcher

JavaScript
3
star
18

cache

List of npm and bower modules
JavaScript
3
star
19

github-status-archive

2
star
20

find-reachable-urls

Passes back all URLs which respond with status code 200
JavaScript
2
star
21

node-imap-example

A Simple node-imap and mailparser example
JavaScript
2
star
22

github-page-type

Returns a page type for the given github url
JavaScript
2
star
23

all-packages

JavaScript
1
star
24

random-k8s

Bot tweeting random articles from kubernetes.io
JavaScript
1
star
25

bower-list

Requests a list of bower packages
JavaScript
1
star
26

appendit

Append text to a specific line
JavaScript
1
star
27

github-screensaver

JavaScript
1
star
28

json-requester

A wrapper library to interact with JSON APIs
JavaScript
1
star
29

octoherd-script-get-files

An Octoherd script to download files from repositories
JavaScript
1
star