devise_oauth2_providable 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,7 @@ module Devise
10
10
  def authenticate!
11
11
  @req.setup!
12
12
  token = AccessToken.valid.find_by_token @req.access_token
13
+ env['oauth2.client'] = token ? token.client : nil
13
14
  resource = token ? token.user : nil
14
15
  if validate(resource)
15
16
  success! resource
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Oauth2Providable
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_oauth2_providable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Sonnek