Skip to content

julewu/spree_auth_sorcery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spree Auth (Sorcery)

Provides authentication and authorization services for use with Spree by using Sorcery and CanCan.

In contrast to Devise, I like the simplicity and flexibility of Sorcery. With Sorcery, unique authentication flow can be easily added to Spree which I totally known what happened.

However, I borrowed lots of controllers and views from Devise.

Installation

Add spree_auth_sorcery to your Gemfile:

gem 'spree_auth_sorcery'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_auth_sorcery:install

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'spree_auth_sorcery/factories'

Copyright (c) 2016 [name of extension creator], released under the New BSD License

About

Provides authentication for Spree by using magical sorcery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages