brycesch-devise_oauth2_providable 1.2.6 → 1.2.7

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: ba6d396c5983e07c857b033924b52f9b133aa322
4
- data.tar.gz: ecbcca45a9f7a0b1838aa2fc1a6f9dec3240a762
3
+ metadata.gz: 55ae8b1900b3305052d013ec86589c9f8c2a8be5
4
+ data.tar.gz: 7c2349accaabc0cd0ef171bc4e82d551693b4aab
5
5
  SHA512:
6
- metadata.gz: 05667b9ec7ce9a58ab066a94972617c9d3111505b89202a236a152a26180097230cf96455fc0c82eecd9a94945582334a98e09122d9b9e629dde5d8bb4d8e7e1
7
- data.tar.gz: e4105e382e76303fb7d828532f60054488066485a3d1ef73a7257d8824de8cdaa672987a783ed46f3d075ac96a0c843f12c90457bb157734d93731958747f043
6
+ metadata.gz: de6e1fe4305b07d6aed0a1203e2078e109c20864c570069f095a3b16b1aa66617ae998d6c511419c8ad9780b22a4ffdf4422b40e05c7ea99151c98713909c1bb
7
+ data.tar.gz: a51b2e2d241d9d50be37dcfac94d526beab26eb10591f27dee6108542f29beb8e7b543747f11355ce4ace31e15f00a134dedcf541b53e5de21c9c23e0a61dbaa
@@ -1,6 +1,6 @@
1
1
  class Devise::Oauth2Providable::TokensController < ApplicationController
2
- before_filter :reset_session!
3
- before_filter :authenticate_user!
2
+ prepend_before_filter :reset_session!
3
+ prepend_before_filter :authenticate_user!
4
4
  skip_before_filter :verify_authenticity_token, :only => :create
5
5
 
6
6
  rescue_from Rack::OAuth2::Server::Authorize::BadRequest do |e|
@@ -17,6 +17,7 @@ class Devise::Oauth2Providable::TokensController < ApplicationController
17
17
  def destroy
18
18
  raise Rack::OAuth2::Server::Authorize::BadRequest unless current_user && oauth2_current_client
19
19
  oauth2_current_client.expire_tokens_for_user(current_user)
20
+ current_user.sign_out if current_user.respond_to?(:sign_out)
20
21
  yield if block_given?
21
22
  head :no_content
22
23
  end
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Oauth2Providable
3
- VERSION = "1.2.6"
3
+ VERSION = "1.2.7"
4
4
  end
5
5
  end
@@ -1,3 +1,6 @@
1
1
  class User < ActiveRecord::Base
2
2
  devise :database_authenticatable, :oauth2_providable, :oauth2_password_grantable, :oauth2_refresh_token_grantable, :oauth2_authorization_code_grantable
3
+
4
+ def sign_out
5
+ end
3
6
  end
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.6
4
+ version: 1.2.7
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-16 00:00:00.000000000 Z
11
+ date: 2016-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -329,3 +329,4 @@ test_files:
329
329
  - spec/routing/tokens_routing_spec.rb
330
330
  - spec/spec_helper.rb
331
331
  - spec/support/match_json.rb
332
+ has_rdoc: