Skip to content

Authentication sample similar foursquare in lift. It allows to login using Facebook, and email sign-up using MongoDB.

Notifications You must be signed in to change notification settings

dahdahm/lift-mongo-multiauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lift-mongo-multiauth

Authentication sample similar foursquare in lift. It allows to login using Facebook, and email sign-up using MongoDB.

References

Initial code is based on lift-mongo-auth, which in turn is based on lift-mongoauth module.

Also using lift-omniauth module for oauth.

Goals

A full and simple authentication sample similar to login at foursquare.com. Additional features include:

  • Adding openid authentication.
  • Adding more oauth providers (Twitter, LinkedIn, etc).
  • Users who login through facebook can reauthenticate through email sign-up.
  • Username field.

Contributions

Contributions are welcome. Please submit your pull requests, or bug reports on github.

Running the project

This project can be run from SBT, or from IDE like Eclipse, or IntelliJ IDEA.

If you use SBT simply cd to this directory and type './sbt'. After this you can issue commands in sbt prompt:

; clean; compile; test

Alternatively you can type in shell:

sbt update clean compile test

Eclipse project can be generated with:

sbt eclipse

Use 'Import New Projects' in eclipse to open it.

You can generate an IntelliJ project by running this command in sbt:

sbt gen-idea

Some available options are:

no-classifiers
no-sbt-classifiers

To run this application you will need mongodb server installed and running. To install it on Ubuntu run:

sudo apt-get install mongodb
vim /etc/mongodb.conf  # uncomment port
service mongodb restart

On Redhat/Fedora run:

sudo yum install mongodb-server mongodb
service mongod start

About

Authentication sample similar foursquare in lift. It allows to login using Facebook, and email sign-up using MongoDB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages