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.
- data/lib/devise_oauth2_providable/version.rb +1 -1
- data/lib/token_endpoint.rb +1 -1
- metadata +4 -4
data/lib/token_endpoint.rb
CHANGED
@@ -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:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
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-
|
18
|
+
date: 2011-04-29 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rails
|