devise_oauth2_providable 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Oauth2Providable
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -25,7 +25,7 @@ class TokenEndpoint
25
25
  when :refresh_token
26
26
  refresh_token = client.refresh_tokens.valid.find_by_token(req.refresh_token)
27
27
  req.invalid_grant! unless refresh_token
28
- res.access_token = refresh_token.access_tokens.create(:client => client).to_bearer_token
28
+ res.access_token = refresh_token.access_tokens.create(:client => client, :user => refresh_token.user).to_bearer_token
29
29
  else
30
30
  # NOTE: extended assertion grant_types are not supported yet.
31
31
  req.unsupported_grant_type!
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Sonnek
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-28 00:00:00 Z
18
+ date: 2011-04-29 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails