Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.77 KB

README.md

File metadata and controls

65 lines (43 loc) · 1.77 KB

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