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: 5828131303ddc5fc22d7cad94d85175ccec490b8
4
- data.tar.gz: de7cd32f42c9e9de1457f65935d3c64fd183fbd4
3
+ metadata.gz: ba6d396c5983e07c857b033924b52f9b133aa322
4
+ data.tar.gz: ecbcca45a9f7a0b1838aa2fc1a6f9dec3240a762
5
5
  SHA512:
6
- metadata.gz: 680abaa16b01f33b5699159683d720e220d7ccfc75c207f6c297a2fb916f1d266448ced6d6f5fc9afd4cd580a5cb3ec7f46423307e6eadec1eceb30e13392101
7
- data.tar.gz: fbcfce9dd05a30d89211c8b02746ae4342f96bbb5583b8a19a97659e4b535310fd3230581a6ff9818c04fed18d2370177d9736e7a595df78c5cf4e8a0ec5ee68
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 = oauth2_current_refresh_token || oauth2_current_client.refresh_tokens.create!(:user => current_user)
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
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Oauth2Providable
3
- VERSION = "1.2.5"
3
+ VERSION = "1.2.6"
4
4
  end
5
5
  end
@@ -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.5
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-10-16 00:00:00.000000000 Z
11
+ date: 2015-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails