brycesch-devise_oauth2_providable 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba6d396c5983e07c857b033924b52f9b133aa322
|
4
|
+
data.tar.gz: ecbcca45a9f7a0b1838aa2fc1a6f9dec3240a762
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05667b9ec7ce9a58ab066a94972617c9d3111505b89202a236a152a26180097230cf96455fc0c82eecd9a94945582334a98e09122d9b9e629dde5d8bb4d8e7e1
|
7
|
+
data.tar.gz: e4105e382e76303fb7d828532f60054488066485a3d1ef73a7257d8824de8cdaa672987a783ed46f3d075ac96a0c843f12c90457bb157734d93731958747f043
|
@@ -8,7 +8,7 @@ class Devise::Oauth2Providable::TokensController < ApplicationController
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def create
|
11
|
-
@refresh_token =
|
11
|
+
@refresh_token = oauth2_current_client.refresh_tokens.create!(:user => current_user)
|
12
12
|
@access_token = @refresh_token.access_tokens.create!(:client => oauth2_current_client, :user => current_user)
|
13
13
|
yield if block_given?
|
14
14
|
render :json => @access_token.token_response
|
@@ -25,7 +25,7 @@ describe Devise::Strategies::Oauth2RefreshTokenGrantTypeStrategy do
|
|
25
25
|
expected = {
|
26
26
|
:token_type => 'bearer',
|
27
27
|
:expires_in => 899,
|
28
|
-
:refresh_token => refresh_token.token,
|
28
|
+
:refresh_token => token.refresh_token.token,
|
29
29
|
:access_token => token.token
|
30
30
|
}
|
31
31
|
response.body.should match_json(expected)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brycesch-devise_oauth2_providable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Sonnek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|