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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55ae8b1900b3305052d013ec86589c9f8c2a8be5
|
4
|
+
data.tar.gz: 7c2349accaabc0cd0ef171bc4e82d551693b4aab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de6e1fe4305b07d6aed0a1203e2078e109c20864c570069f095a3b16b1aa66617ae998d6c511419c8ad9780b22a4ffdf4422b40e05c7ea99151c98713909c1bb
|
7
|
+
data.tar.gz: a51b2e2d241d9d50be37dcfac94d526beab26eb10591f27dee6108542f29beb8e7b543747f11355ce4ace31e15f00a134dedcf541b53e5de21c9c23e0a61dbaa
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class Devise::Oauth2Providable::TokensController < ApplicationController
|
2
|
-
|
3
|
-
|
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
|
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.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:
|
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:
|