gds-sso 0.7.0 → 0.7.1

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.
data/lib/gds-sso/user.rb CHANGED
@@ -14,9 +14,6 @@ module GDS
14
14
 
15
15
  module User
16
16
  def has_permission?(scope, permission)
17
- # NOTE: this line is a temporary helper until we have migrated users over to having permissions.
18
- return true if permissions.has_key?("everything") && permissions["everything"][0] == "signin"
19
-
20
17
  if permissions.has_key?(scope)
21
18
  permissions[scope].include?(permission) || permissions[scope].include?("admin")
22
19
  end
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "0.7.0"
3
+ VERSION = "0.7.1"
4
4
  end
5
5
  end
@@ -2145,3 +2145,87 @@ Started GET "/restricted" for 127.0.0.1 at 2012-06-21 15:23:55 +0000
2145
2145
  Processing by ExampleController#restricted as JSON
2146
2146
  Authenticating with gds_sso_api_access strategy
2147
2147
  Completed 200 OK in 1ms (Views: 0.5ms)
2148
+
2149
+
2150
+ Started GET "/" for 127.0.0.1 at 2012-06-26 13:23:08 +0000
2151
+ Processing by ExampleController#index as HTML
2152
+ Rendered text template (0.0ms)
2153
+ Completed 200 OK in 46ms (Views: 46.0ms)
2154
+
2155
+
2156
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-26 13:23:08 +0000
2157
+ Processing by ExampleController#restricted as HTML
2158
+ Authenticating with gds_sso strategy
2159
+ Completed in 56ms
2160
+
2161
+
2162
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-06-26 13:23:09 +0000
2163
+
2164
+
2165
+ Started GET "/auth/gds/callback?code=e4af1379de65c08549d562517370e195e37cfc84e69c97fd18c39637e5f2a2c9" for 127.0.0.1 at 2012-06-26 13:23:09 +0000
2166
+ Processing by AuthenticationsController#callback as HTML
2167
+ Parameters: {"code"=>"e4af1379de65c08549d562517370e195e37cfc84e69c97fd18c39637e5f2a2c9"}
2168
+ Authenticating with gds_sso strategy
2169
+ Redirected to http://www.example-client.com/restricted
2170
+ Completed 302 Found in 1ms
2171
+
2172
+
2173
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-26 13:23:10 +0000
2174
+ Processing by ExampleController#restricted as HTML
2175
+ Completed 200 OK in 1ms (Views: 0.5ms)
2176
+
2177
+
2178
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-26 13:23:10 +0000
2179
+ Processing by ExampleController#restricted as HTML
2180
+ Authenticating with gds_sso strategy
2181
+ Completed in 0ms
2182
+
2183
+
2184
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-06-26 13:23:10 +0000
2185
+
2186
+
2187
+ Started GET "/auth/gds/callback?code=137d0282922594422083a5393d07ec06e04625ab6ed4916c36c3bb69b7736bfe" for 127.0.0.1 at 2012-06-26 13:23:10 +0000
2188
+ Processing by AuthenticationsController#callback as HTML
2189
+ Parameters: {"code"=>"137d0282922594422083a5393d07ec06e04625ab6ed4916c36c3bb69b7736bfe"}
2190
+ Authenticating with gds_sso strategy
2191
+ Redirected to http://www.example-client.com/restricted
2192
+ Completed 302 Found in 1ms
2193
+
2194
+
2195
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-26 13:23:10 +0000
2196
+ Processing by ExampleController#restricted as HTML
2197
+ Completed 200 OK in 1ms (Views: 0.6ms)
2198
+
2199
+
2200
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-26 13:23:10 +0000
2201
+ Processing by ExampleController#restricted as HTML
2202
+ Authenticating with gds_sso strategy
2203
+ Completed in 0ms
2204
+
2205
+
2206
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-06-26 13:23:10 +0000
2207
+
2208
+
2209
+ Started GET "/auth/gds/callback?code=ecbf0d485542835b2f713411198be0279642a0cf5f3fe6fd48e0edb189585823" for 127.0.0.1 at 2012-06-26 13:23:10 +0000
2210
+ Processing by AuthenticationsController#callback as HTML
2211
+ Parameters: {"code"=>"ecbf0d485542835b2f713411198be0279642a0cf5f3fe6fd48e0edb189585823"}
2212
+ Authenticating with gds_sso strategy
2213
+ Redirected to http://www.example-client.com/restricted
2214
+ Completed 302 Found in 1ms
2215
+
2216
+
2217
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-26 13:23:10 +0000
2218
+ Processing by ExampleController#restricted as HTML
2219
+ Completed 200 OK in 1ms (Views: 0.3ms)
2220
+
2221
+
2222
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-26 13:23:10 +0000
2223
+ Processing by ExampleController#restricted as JSON
2224
+ Authenticating with gds_sso_api_access strategy
2225
+ Completed in 61ms
2226
+
2227
+
2228
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-26 13:23:10 +0000
2229
+ Processing by ExampleController#restricted as JSON
2230
+ Authenticating with gds_sso_api_access strategy
2231
+ Completed 200 OK in 1ms (Views: 0.6ms)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gds-sso
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.0
5
+ version: 0.7.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matt Patterson
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2012-06-21 00:00:00 Z
14
+ date: 2012-06-26 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -204,7 +204,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
204
204
  requirements:
205
205
  - - ">="
206
206
  - !ruby/object:Gem::Version
207
- hash: -1060521028235960891
207
+ hash: 2322992510132957639
208
208
  segments:
209
209
  - 0
210
210
  version: "0"
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  requirements:
214
214
  - - ">="
215
215
  - !ruby/object:Gem::Version
216
- hash: -1060521028235960891
216
+ hash: 2322992510132957639
217
217
  segments:
218
218
  - 0
219
219
  version: "0"