Skip to content
This repository was archived by the owner on Mar 9, 2020. It is now read-only.

Commit 8245fee

Browse files
committed
Initial sorcery installation
1 parent 7af7d70 commit 8245fee

7 files changed

Lines changed: 477 additions & 2 deletions

File tree

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ gem 'spring', group: :development
4040

4141
# required for travis
4242
gem 'rake', group: [:test]
43+
44+
# authentication, require rails 4.1 compatible version
45+
gem 'sorcery', '>= 0.8.6'

Gemfile.lock

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ GEM
2828
thread_safe (~> 0.1)
2929
tzinfo (~> 1.1)
3030
arel (5.0.1.20140414130214)
31+
bcrypt (3.1.7)
3132
builder (3.2.2)
3233
coffee-rails (4.0.1)
3334
coffee-script (>= 2.2.0)
@@ -38,6 +39,8 @@ GEM
3839
coffee-script-source (1.7.1)
3940
erubis (2.7.0)
4041
execjs (2.2.1)
42+
faraday (0.9.0)
43+
multipart-post (>= 1.2, < 3)
4144
hike (1.2.3)
4245
i18n (0.6.11)
4346
jbuilder (2.1.3)
@@ -47,12 +50,22 @@ GEM
4750
railties (>= 3.0, < 5.0)
4851
thor (>= 0.14, < 2.0)
4952
json (1.8.1)
53+
jwt (1.0.0)
5054
mail (2.5.4)
5155
mime-types (~> 1.16)
5256
treetop (~> 1.4.8)
5357
mime-types (1.25.1)
5458
minitest (5.4.0)
5559
multi_json (1.10.1)
60+
multi_xml (0.5.5)
61+
multipart-post (2.0.0)
62+
oauth (0.4.7)
63+
oauth2 (0.9.4)
64+
faraday (>= 0.8, < 0.10)
65+
jwt (~> 1.0)
66+
multi_json (~> 1.3)
67+
multi_xml (~> 0.5)
68+
rack (~> 1.2)
5669
polyglot (0.3.5)
5770
rack (1.5.2)
5871
rack-test (0.6.2)
@@ -84,6 +97,10 @@ GEM
8497
sdoc (0.4.0)
8598
json (~> 1.8)
8699
rdoc (~> 4.0, < 5.0)
100+
sorcery (0.8.6)
101+
bcrypt (~> 3.1)
102+
oauth (~> 0.4, >= 0.4.4)
103+
oauth2 (>= 0.8.0, < 1.0.0)
87104
spring (1.1.3)
88105
sprockets (2.11.0)
89106
hike (~> 1.2)
@@ -120,6 +137,7 @@ DEPENDENCIES
120137
rake
121138
sass-rails (~> 4.0.3)
122139
sdoc (~> 0.4.0)
140+
sorcery (>= 0.8.6)
123141
spring
124142
sqlite3
125143
turbolinks

app/models/person.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
class Person < ActiveRecord::Base
2+
authenticates_with_sorcery!
23
end

0 commit comments

Comments
 (0)