foyer 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWQwODMwNDFiOGY3OWU3YmIxZTc1NDEzZjI1MzMzODI3NjE4ZjBiMQ==
4
+ YzU3NjFhNjk4ZTZjYTM3ZDFhNGM1NGFhMDJlMjY4M2EzZTg0ZWY1Yw==
5
5
  data.tar.gz: !binary |-
6
- NmY0ZGIzZTQ4MmZmMTczMDZjZTlhMGZjYmEzODA2OGY0ZDc4OGFhMw==
6
+ ODlmOTAzY2YyZDRjNGQyMzA4MjBiMDA5M2NjZTliYjg5M2VlOWQ1Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWI3YmZjNGVjZDdlYTUxMDBiMzRkMDliYjIwZTIxYWM2ZmQ3MzE3MTdhYWM4
10
- ZDk0YmNlNjBlZTgxYjk4MGE5OGM3NDRkM2IxNGY2ZmY5MmExZTdmZWJhM2E5
11
- MjAyMjY2ZGEwOGYzMjFlMzNlYTE3MTJmMzM2NWFiNzBlMzg5MmU=
9
+ NmYwY2FkMTcyYTNiZDIxZDllMTA0MGUxYWQ0ZDI0Mzg4Nzg3ZmM4NjdlODkx
10
+ Mzc0ZDVhNmQ0ZmJjNzQ4Mjk3NGE1ZDNlOWU4NGEwMGNlZDA3YzFmYTE4OWU1
11
+ N2YwOGJkMjQ2MDhjOTVkOTgyMTVmMmI2YzU1MWU5MWUwZDI3YWE=
12
12
  data.tar.gz: !binary |-
13
- ZmFiMzc2NDZjOTM3OTI0OTZlN2UzYTIwYWRlN2RlYTg4YTM4ZDM4ZWY3ZWIw
14
- OTE4YzMxMWE3ODE5MTNmOWQwNmU5ZGQ3ZjdjZmFlZDQ1MTFjMjQ3NDMwNTY4
15
- NDU3MTE4YjM5NGU0M2NjMWFiYmE5ZTEwY2Y1NzQ4OWYzMDM2NTk=
13
+ OWVlZWMzOWM2ZmNiMWYxMjQwMDU5OWM5OGRhZGEzN2U4ZDliNjQxNDI5ZmEz
14
+ OTYyZWYwZGM0MDg2NjRkZmE5MmMyY2M1MGE1NWVjN2RhMmUyMDIxYzUyYTRj
15
+ YmM3Y2M4NjhiNmMyNzdmNzk5NzhiYjBmNjc4NjdiMWI2Mzk5MTc=
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ spec/dummy/log/
data/README.md CHANGED
@@ -1,28 +1,134 @@
1
1
  # Foyer
2
2
 
3
- TODO: Write a gem description
3
+ Authentication layer for Rails apps that identify users via a single
4
+ sign on server that is configured as an OmniAuth provider
4
5
 
5
6
  ## Installation
6
7
 
7
- Add this line to your application's Gemfile:
8
+ `gem 'foyer'`
8
9
 
9
- gem 'foyer'
10
+ ## Setup and Configuration
10
11
 
11
- And then execute:
12
+ In your ApplicationController:
12
13
 
13
- $ bundle
14
+ ```ruby
15
+ class ApplicationController < ActionController::Base
16
+ include Foyer::Controller::Helpers
14
17
 
15
- Or install it yourself as:
18
+ set_user_finder do |user_id|
19
+ # Code for retrieving a user from your database here
20
+ # e.g.:
21
+ #
22
+ # User.find_by_id(user_id)
23
+ end
24
+ end
25
+ ```
16
26
 
17
- $ gem install foyer
27
+ You can also configure the user finder in an initializer:
28
+ ```ruby
29
+ # config/initializers/foyer.rb
30
+ Foyer.user_finder = lambda { |user_id| ... }
31
+ ```
32
+
33
+ Besiders `.user\_finder` there are some additional configuration
34
+ settings:
35
+
36
+ ```ruby
37
+ Foyer.identity_provider # The slug name of the omniauth provider your app uses
38
+ Foyer.session_key # The key where Foyer will store user data in the session
39
+ ```
40
+
41
+ Currently, the session is the only store available.
18
42
 
19
43
  ## Usage
20
44
 
21
- TODO: Write usage instructions here
45
+ ### In Controllers
46
+
47
+ Once the setup is complete, you will have the following methods available in
48
+ controllers that include `Foyer::Controller::Helpers`:
49
+ ```
50
+ authenticate\_user! - Before filter that redirects unauthenticated users
51
+ to omniauth
52
+
53
+ sign_in(user) - Pass a user object to this method to sign that user in.
54
+ User object must respond to #id
55
+
56
+ current_user - The authenticated user or nil if no user is authenticated
57
+
58
+ user_signed_in? - Predicate method to test if a user is authenticated
59
+
60
+ user_session - Access the current user's session data
61
+
62
+ sign_out - Signs out the authenticated user by clearing the session
63
+ ```
64
+
65
+ ### In Views
66
+
67
+ `current\_user` and `user\_signed\_in?` are available as helper methods
68
+ in views.
69
+
70
+ ### Routes
71
+
72
+ This gem sets up a routing helper `authenticate` which allows you to set a
73
+ constraint on routes so that only logged in users can access them.
74
+ Example:
75
+
76
+ ```ruby
77
+ Rails.application.routes.draw do
78
+ authenticate do
79
+ get :some_page, to: 'authenticated_users#some_page'
80
+ end
81
+ get :some_page, to: 'unauthenticated_users#some_page'
82
+ end
83
+ ```
84
+
85
+ `authenticate` also accepts a `guard` as an optional argument. The
86
+ `guard` should be a lambda that accepts 1 argument, the authenticated
87
+ user. Example:
88
+
89
+ ```ruby
90
+ Rails.application.routes.draw do
91
+ authenticate lambda { |u| u.admin? } do
92
+ namespace :admin do
93
+ ...
94
+ end
95
+ end
96
+ end
97
+ ```
98
+
99
+ ### Omniauth Callbacks Controller
100
+
101
+ For convience, there is a `Foyer::OmniauthCallbacksController` that
102
+ includes the `Controller::Helpers` plus some additional useful helpers.
103
+ You can inherit from it in your application.
104
+
105
+ Example:
106
+ ```ruby
107
+ class FoyerIdentityProviderController < ProviderAuthenticateable::OmniauthCallbacksController
108
+ def callback
109
+ user = User.find_or_initialize_by(uid: auth_hash.uid.to_s) do |u|
110
+ u.email = auth_hash.info.email
111
+ end
112
+
113
+ user.token = auth_hash.credentials.token
114
+ user.refresh_token = auth_hash.credentials.refresh_token
115
+
116
+ if user.new_record?
117
+ redirect_to origin || welcome_path
118
+ else
119
+ redirect_to after_sign_in_path
120
+ end
121
+
122
+ user.save
123
+ sign_in user
124
+ end
125
+ end
126
+ ```
127
+
22
128
 
23
129
  ## Contributing
24
130
 
25
- 1. Fork it ( http://github.com/<my-github-username>/foyer/fork )
131
+ 1. Fork it ( http://github.com/GaggleAMP/foyer/fork )
26
132
  2. Create your feature branch (`git checkout -b my-new-feature`)
27
133
  3. Commit your changes (`git commit -am 'Add some feature'`)
28
134
  4. Push to the branch (`git push origin my-new-feature`)
@@ -4,7 +4,7 @@ module Foyer
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
7
- helper_method :current_user
7
+ helper_method :current_user, :user_signed_in?
8
8
  end
9
9
 
10
10
  def sign_in(user)
@@ -20,12 +20,17 @@ module Foyer
20
20
  end
21
21
 
22
22
  def user_signed_in?
23
- authenticated_user_id.present? and current_user.present?
23
+ user_session.present? and current_user.present?
24
24
  end
25
25
 
26
26
  def current_user
27
- return nil unless authenticated_user_id.present?
28
- @current_user ||= find_user_by_id(authenticated_user_id)
27
+ return nil unless user_session.present?
28
+ @current_user ||= Foyer.user_finder.call(user_session[:id])
29
+ end
30
+
31
+ def user_session
32
+ session[Foyer.session_key]||= {}
33
+ session[Foyer.session_key]
29
34
  end
30
35
 
31
36
  def authenticate_user!
@@ -34,14 +39,6 @@ module Foyer
34
39
  end
35
40
  end
36
41
 
37
- def find_user_by_id(user_id)
38
- Foyer.user_finder.call(user_id)
39
- end
40
-
41
- def authenticated_user_id
42
- (session[Foyer.session_key]||{})[:id]
43
- end
44
-
45
42
  module ClassMethods
46
43
  def set_user_finder(&blk)
47
44
  if blk.arity != 1
data/lib/foyer/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Foyer
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -24,7 +24,7 @@ describe AuthenticatedController do
24
24
  let(:user) { OpenStruct.new.tap { |i| i.id = rand(10000) } }
25
25
  before do
26
26
  sign_in user
27
- allow(controller).to receive(:find_user_by_id).and_return(user)
27
+ Foyer.user_finder = lambda { |_| user }
28
28
  end
29
29
 
30
30
  it "allows user to access the action" do
@@ -6,6 +6,10 @@ describe Foyer::Controller::Helpers do
6
6
  nil
7
7
  end
8
8
 
9
+ def session
10
+ @session ||= {}
11
+ end
12
+
9
13
  include Foyer::Controller::Helpers
10
14
  end
11
15
 
@@ -23,12 +27,13 @@ describe Foyer::Controller::Helpers do
23
27
  end
24
28
  end
25
29
 
26
- describe "#find_user_by_id" do
30
+ describe "#current_user" do
27
31
  it "calls the user_finder method" do
28
32
  @called = false
33
+ subject.user_session[:id] = '_'
29
34
  Foyer.user_finder = lambda { |_| @called = true }
30
35
 
31
- subject.find_user_by_id '_'
36
+ subject.current_user
32
37
 
33
38
  expect(@called).to eq true
34
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foyer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Nochlin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-12 00:00:00.000000000 Z
11
+ date: 2014-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -118,9 +118,6 @@ files:
118
118
  - spec/dummy/config/initializers/wrap_parameters.rb
119
119
  - spec/dummy/config/locales/en.yml
120
120
  - spec/dummy/config/routes.rb
121
- - spec/dummy/log/.keep
122
- - spec/dummy/log/development.log
123
- - spec/dummy/log/test.log
124
121
  - spec/dummy/public/404.html
125
122
  - spec/dummy/public/422.html
126
123
  - spec/dummy/public/500.html
@@ -185,9 +182,6 @@ test_files:
185
182
  - spec/dummy/config/initializers/wrap_parameters.rb
186
183
  - spec/dummy/config/locales/en.yml
187
184
  - spec/dummy/config/routes.rb
188
- - spec/dummy/log/.keep
189
- - spec/dummy/log/development.log
190
- - spec/dummy/log/test.log
191
185
  - spec/dummy/public/404.html
192
186
  - spec/dummy/public/422.html
193
187
  - spec/dummy/public/500.html
data/spec/dummy/log/.keep DELETED
File without changes
File without changes
@@ -1,340 +0,0 @@
1
- Processing by AuthenticatedController#index as HTML
2
- Completed 500 Internal Server Error in 0ms
3
- Processing by AuthenticatedController#index as HTML
4
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
5
- Filter chain halted as :authenticate_user! rendered or redirected
6
- Completed 302 Found in 0ms
7
- Processing by AuthenticatedController#index as HTML
8
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
9
- Filter chain halted as :authenticate_user! rendered or redirected
10
- Completed 302 Found in 1ms
11
- Processing by AuthenticatedController#index as HTML
12
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
13
- Filter chain halted as :authenticate_user! rendered or redirected
14
- Completed 302 Found in 1ms
15
- Processing by AuthenticatedController#index as HTML
16
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
17
- Filter chain halted as :authenticate_user! rendered or redirected
18
- Completed 302 Found in 0ms
19
- Processing by AuthenticatedController#index as HTML
20
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
21
- Filter chain halted as :authenticate_user! rendered or redirected
22
- Completed 302 Found in 0ms
23
- Processing by AuthenticatedController#index as HTML
24
- Completed 500 Internal Server Error in 0ms
25
- Processing by AuthenticatedController#index as HTML
26
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
27
- Filter chain halted as :authenticate_user! rendered or redirected
28
- Completed 302 Found in 0ms
29
- Processing by AuthenticatedController#index as HTML
30
- Completed 500 Internal Server Error in 0ms
31
- Processing by AuthenticatedController#index as HTML
32
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
33
- Filter chain halted as :authenticate_user! rendered or redirected
34
- Completed 302 Found in 1ms
35
- Processing by AuthenticatedController#index as HTML
36
- Completed 200 OK in 13ms (Views: 12.9ms)
37
- Processing by AuthenticatedController#index as HTML
38
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
39
- Filter chain halted as :authenticate_user! rendered or redirected
40
- Completed 302 Found in 1ms
41
- Processing by AuthenticatedController#index as HTML
42
- Completed 200 OK in 8ms (Views: 8.2ms)
43
- Processing by AuthenticatedController#index as HTML
44
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
45
- Filter chain halted as :authenticate_user! rendered or redirected
46
- Completed 302 Found in 1ms
47
- Processing by AuthenticatedController#index as HTML
48
- Completed 200 OK in 9ms (Views: 8.8ms)
49
- Processing by AuthenticatedController#index as HTML
50
- Redirected to http://test.host/auth/?origin=%2Fauthenticated
51
- Filter chain halted as :authenticate_user! rendered or redirected
52
- Completed 302 Found in 1ms
53
- Processing by AuthenticatedController#index as HTML
54
- Completed 200 OK in 10ms (Views: 9.8ms)
55
- Processing by AuthenticatedController#index as HTML
56
- Redirected to http://test.host/auth/?origin=%2Fauthenticated
57
- Filter chain halted as :authenticate_user! rendered or redirected
58
- Completed 302 Found in 1ms
59
- Processing by AuthenticatedController#index as HTML
60
- Completed 200 OK in 9ms (Views: 8.4ms)
61
- Processing by AuthenticatedController#index as HTML
62
- Redirected to http://test.host/auth/?origin=%2Fauthenticated
63
- Filter chain halted as :authenticate_user! rendered or redirected
64
- Completed 302 Found in 0ms
65
- Processing by AuthenticatedController#index as HTML
66
- Completed 200 OK in 9ms (Views: 8.6ms)
67
- Processing by AuthenticatedController#index as HTML
68
- Redirected to http://test.host/auth/?origin=%2Fauthenticated
69
- Filter chain halted as :authenticate_user! rendered or redirected
70
- Completed 302 Found in 1ms
71
- Processing by AuthenticatedController#index as HTML
72
- Redirected to http://test.host/auth/?origin=%2Fauthenticated
73
- Filter chain halted as :authenticate_user! rendered or redirected
74
- Completed 302 Found in 0ms
75
- Processing by AuthenticatedController#index as HTML
76
- Completed 200 OK in 9ms (Views: 8.5ms)
77
- Processing by AuthenticatedController#index as HTML
78
- Redirected to http://test.host/auth/?origin=%2Fauthenticated
79
- Filter chain halted as :authenticate_user! rendered or redirected
80
- Completed 302 Found in 0ms
81
- Processing by AuthenticatedController#index as HTML
82
- Redirected to http://test.host/auth/?origin=%2Fauthenticated
83
- Filter chain halted as :authenticate_user! rendered or redirected
84
- Completed 302 Found in 0ms
85
- Processing by AuthenticatedController#index as HTML
86
- Completed 200 OK in 9ms (Views: 9.2ms)
87
- Processing by AuthenticatedController#index as HTML
88
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
89
- Filter chain halted as :authenticate_user! rendered or redirected
90
- Completed 302 Found in 1ms
91
- Processing by AuthenticatedController#index as HTML
92
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
93
- Filter chain halted as :authenticate_user! rendered or redirected
94
- Completed 302 Found in 0ms
95
- Processing by AuthenticatedController#index as HTML
96
- Completed 200 OK in 9ms (Views: 8.5ms)
97
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:24:17 -0500
98
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:24:40 -0500
99
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:24:56 -0500
100
- Processing by UnauthenticatedController#index as HTML
101
- Rendered text template (0.0ms)
102
- Completed 200 OK in 12ms (Views: 11.9ms)
103
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:25:22 -0500
104
- Processing by UnauthenticatedController#index as HTML
105
- Rendered text template (0.0ms)
106
- Completed 200 OK in 9ms (Views: 8.4ms)
107
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:27:15 -0500
108
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:27:24 -0500
109
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:27:51 -0500
110
- Processing by UnauthenticatedController#index as HTML
111
- Rendered text template (0.0ms)
112
- Completed 200 OK in 9ms (Views: 8.5ms)
113
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:27:59 -0500
114
- Processing by UnauthenticatedController#index as HTML
115
- Rendered text template (0.0ms)
116
- Completed 200 OK in 9ms (Views: 8.6ms)
117
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:28:04 -0500
118
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:30:55 -0500
119
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:32:35 -0500
120
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:32:44 -0500
121
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:33:59 -0500
122
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:34:12 -0500
123
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:34:20 -0500
124
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:35:20 -0500
125
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:36:57 -0500
126
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:37:31 -0500
127
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:38:36 -0500
128
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:38:58 -0500
129
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:39:19 -0500
130
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:39:35 -0500
131
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:40:47 -0500
132
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:40:55 -0500
133
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:42:10 -0500
134
- Processing by AuthenticatedController#index as HTML
135
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
136
- Filter chain halted as :authenticate_user! rendered or redirected
137
- Completed 302 Found in 1ms
138
- Processing by AuthenticatedController#index as HTML
139
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
140
- Filter chain halted as :authenticate_user! rendered or redirected
141
- Completed 302 Found in 0ms
142
- Processing by AuthenticatedController#index as HTML
143
- Completed 200 OK in 34ms (Views: 33.6ms)
144
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-16 13:43:50 -0500
145
- Processing by AuthenticatedController#index as HTML
146
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
147
- Filter chain halted as :authenticate_user! rendered or redirected
148
- Completed 302 Found in 1ms
149
- Processing by AuthenticatedController#index as HTML
150
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
151
- Filter chain halted as :authenticate_user! rendered or redirected
152
- Completed 302 Found in 0ms
153
- Processing by AuthenticatedController#index as HTML
154
- Completed 200 OK in 42ms (Views: 41.8ms)
155
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:28:15 -0500
156
- Processing by AuthenticatedController#index as HTML
157
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
158
- Filter chain halted as :authenticate_user! rendered or redirected
159
- Completed 302 Found in 1ms
160
- Processing by AuthenticatedController#index as HTML
161
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
162
- Filter chain halted as :authenticate_user! rendered or redirected
163
- Completed 302 Found in 0ms
164
- Processing by AuthenticatedController#index as HTML
165
- Completed 200 OK in 34ms (Views: 33.7ms)
166
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:30:02 -0500
167
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:45:20 -0500
168
- Started POST "/sign_in" for 127.0.0.1 at 2014-01-20 15:45:20 -0500
169
- Processing by SessionsController#developer as HTML
170
- Completed 204 No Content in 0ms
171
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:45:20 -0500
172
- Processing by UnauthenticatedController#index as HTML
173
- Completed 200 OK in 34ms (Views: 34.0ms)
174
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:45:29 -0500
175
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:45:29 -0500
176
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:45:43 -0500
177
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:45:43 -0500
178
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:45:52 -0500
179
- Started POST "/sign_in" for 127.0.0.1 at 2014-01-20 15:45:52 -0500
180
- Processing by SessionsController#developer as HTML
181
- Completed 204 No Content in 0ms
182
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:45:52 -0500
183
- Processing by UnauthenticatedController#index as HTML
184
- Completed 200 OK in 37ms (Views: 36.6ms)
185
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:49:31 -0500
186
- Started POST "/sign_in" for 127.0.0.1 at 2014-01-20 15:49:31 -0500
187
- Processing by SessionsController#developer as HTML
188
- Completed 204 No Content in 0ms
189
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:49:31 -0500
190
- Processing by UnauthenticatedController#index as HTML
191
- Completed 200 OK in 33ms (Views: 32.7ms)
192
- Started POST "/sign_in" for 127.0.0.1 at 2014-01-20 15:49:31 -0500
193
- Processing by SessionsController#developer as HTML
194
- Completed 204 No Content in 0ms
195
- Started GET "/authenticated_by_route_constraint_which_blocks_all_users" for 127.0.0.1 at 2014-01-20 15:49:31 -0500
196
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:50:19 -0500
197
- Started POST "/sign_in" for 127.0.0.1 at 2014-01-20 15:50:19 -0500
198
- Processing by SessionsController#developer as HTML
199
- Completed 204 No Content in 0ms
200
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:50:19 -0500
201
- Processing by UnauthenticatedController#index as HTML
202
- Completed 200 OK in 33ms (Views: 32.7ms)
203
- Started POST "/sign_in" for 127.0.0.1 at 2014-01-20 15:50:19 -0500
204
- Processing by SessionsController#developer as HTML
205
- Completed 204 No Content in 0ms
206
- Started GET "/authenticated_by_route_constraint_which_blocks_all_users" for 127.0.0.1 at 2014-01-20 15:50:19 -0500
207
- Processing by AuthenticatedController#index as HTML
208
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
209
- Filter chain halted as :authenticate_user! rendered or redirected
210
- Completed 302 Found in 1ms
211
- Processing by AuthenticatedController#index as HTML
212
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
213
- Filter chain halted as :authenticate_user! rendered or redirected
214
- Completed 302 Found in 0ms
215
- Processing by AuthenticatedController#index as HTML
216
- Completed 200 OK in 35ms (Views: 35.1ms)
217
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:51:08 -0500
218
- Started POST "/sign_in" for 127.0.0.1 at 2014-01-20 15:51:08 -0500
219
- Processing by SessionsController#developer as HTML
220
- Completed 204 No Content in 0ms
221
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-01-20 15:51:08 -0500
222
- Processing by UnauthenticatedController#index as HTML
223
- Completed 200 OK in 1ms (Views: 0.4ms)
224
- Started POST "/sign_in" for 127.0.0.1 at 2014-01-20 15:51:08 -0500
225
- Processing by SessionsController#developer as HTML
226
- Completed 204 No Content in 0ms
227
- Started GET "/authenticated_by_route_constraint_which_blocks_all_users" for 127.0.0.1 at 2014-01-20 15:51:08 -0500
228
- Processing by AuthenticatedController#index as HTML
229
- Completed 500 Internal Server Error in 1ms
230
- Processing by AuthenticatedController#index as HTML
231
- Completed 500 Internal Server Error in 1ms
232
- Processing by AuthenticatedController#index as HTML
233
- Completed 500 Internal Server Error in 1ms
234
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-02-04 21:51:12 -0500
235
- Started POST "/sign_in" for 127.0.0.1 at 2014-02-04 21:51:12 -0500
236
- Processing by SessionsController#developer as HTML
237
- Completed 500 Internal Server Error in 1ms
238
- Processing by AuthenticatedController#index as HTML
239
- Completed 500 Internal Server Error in 1ms
240
- Processing by AuthenticatedController#index as HTML
241
- Completed 500 Internal Server Error in 1ms
242
- Processing by AuthenticatedController#index as HTML
243
- Completed 500 Internal Server Error in 1ms
244
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-02-04 21:51:25 -0500
245
- Started POST "/sign_in" for 127.0.0.1 at 2014-02-04 21:51:25 -0500
246
- Processing by SessionsController#developer as HTML
247
- Completed 500 Internal Server Error in 1ms
248
- Processing by AuthenticatedController#index as HTML
249
- Completed 500 Internal Server Error in 1ms
250
- Processing by AuthenticatedController#index as HTML
251
- Completed 500 Internal Server Error in 1ms
252
- Processing by AuthenticatedController#index as HTML
253
- Completed 500 Internal Server Error in 1ms
254
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-02-04 21:51:42 -0500
255
- Started POST "/sign_in" for 127.0.0.1 at 2014-02-04 21:51:42 -0500
256
- Processing by SessionsController#developer as HTML
257
- Completed 500 Internal Server Error in 1ms
258
- Processing by AuthenticatedController#index as HTML
259
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
260
- Filter chain halted as :authenticate_user! rendered or redirected
261
- Completed 302 Found in 1ms
262
- Processing by AuthenticatedController#index as HTML
263
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
264
- Filter chain halted as :authenticate_user! rendered or redirected
265
- Completed 302 Found in 1ms
266
- Processing by AuthenticatedController#index as HTML
267
- Completed 200 OK in 14ms (Views: 14.1ms)
268
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-02-04 21:52:02 -0500
269
- Started POST "/sign_in" for 127.0.0.1 at 2014-02-04 21:52:02 -0500
270
- Processing by SessionsController#developer as HTML
271
- Completed 204 No Content in 14ms
272
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-02-04 21:52:02 -0500
273
- Processing by AuthenticatedController#index as HTML
274
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
275
- Filter chain halted as :authenticate_user! rendered or redirected
276
- Completed 302 Found in 1ms
277
- Processing by AuthenticatedController#index as HTML
278
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
279
- Filter chain halted as :authenticate_user! rendered or redirected
280
- Completed 302 Found in 0ms
281
- Processing by AuthenticatedController#index as HTML
282
- Completed 200 OK in 8ms (Views: 7.5ms)
283
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-02-04 21:52:21 -0500
284
- Started POST "/sign_in" for 127.0.0.1 at 2014-02-04 21:52:21 -0500
285
- Processing by SessionsController#developer as HTML
286
- Completed 204 No Content in 15ms
287
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-02-04 21:52:21 -0500
288
- Processing by AuthenticatedController#index as HTML
289
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
290
- Filter chain halted as :authenticate_user! rendered or redirected
291
- Completed 302 Found in 1ms
292
- Processing by AuthenticatedController#index as HTML
293
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
294
- Filter chain halted as :authenticate_user! rendered or redirected
295
- Completed 302 Found in 0ms
296
- Processing by AuthenticatedController#index as HTML
297
- Completed 200 OK in 8ms (Views: 7.7ms)
298
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-02-04 21:53:05 -0500
299
- Started POST "/sign_in" for 127.0.0.1 at 2014-02-04 21:53:05 -0500
300
- Processing by SessionsController#developer as HTML
301
- Completed 204 No Content in 16ms
302
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-02-04 21:53:05 -0500
303
- Processing by AuthenticatedController#index as HTML
304
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
305
- Filter chain halted as :authenticate_user! rendered or redirected
306
- Completed 302 Found in 1ms
307
- Processing by AuthenticatedController#index as HTML
308
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
309
- Filter chain halted as :authenticate_user! rendered or redirected
310
- Completed 302 Found in 0ms
311
- Processing by AuthenticatedController#index as HTML
312
- Completed 200 OK in 8ms (Views: 7.6ms)
313
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-02-04 21:53:26 -0500
314
- Started POST "/sign_in" for 127.0.0.1 at 2014-02-04 21:53:26 -0500
315
- Processing by SessionsController#developer as HTML
316
- Completed 204 No Content in 0ms
317
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-02-04 21:53:26 -0500
318
- Processing by UnauthenticatedController#index as HTML
319
- Completed 200 OK in 1ms (Views: 0.4ms)
320
- Processing by AuthenticatedController#index as HTML
321
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
322
- Filter chain halted as :authenticate_user! rendered or redirected
323
- Completed 302 Found in 1ms
324
- Processing by AuthenticatedController#index as HTML
325
- Redirected to http://test.host/auth/gaggleamp?origin=%2Fauthenticated
326
- Filter chain halted as :authenticate_user! rendered or redirected
327
- Completed 302 Found in 0ms
328
- Processing by AuthenticatedController#index as HTML
329
- Completed 200 OK in 8ms (Views: 7.6ms)
330
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-02-04 21:53:39 -0500
331
- Started POST "/sign_in" for 127.0.0.1 at 2014-02-04 21:53:39 -0500
332
- Processing by SessionsController#developer as HTML
333
- Completed 204 No Content in 0ms
334
- Started GET "/authenticated_by_route_constraint" for 127.0.0.1 at 2014-02-04 21:53:39 -0500
335
- Processing by UnauthenticatedController#index as HTML
336
- Completed 200 OK in 1ms (Views: 0.4ms)
337
- Started POST "/sign_in" for 127.0.0.1 at 2014-02-04 21:53:39 -0500
338
- Processing by SessionsController#developer as HTML
339
- Completed 204 No Content in 0ms
340
- Started GET "/authenticated_by_route_constraint_which_blocks_all_users" for 127.0.0.1 at 2014-02-04 21:53:39 -0500