devise_oauth2_rails4 2.0.0 → 2.0.1

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: 33c54215d3c1ae10af1985f18232be30930bcc19
4
- data.tar.gz: 2d0a606906dc51e410d2ca8f2269b044022bfa93
3
+ metadata.gz: 22427ed5ab66d9da651871d64af020f2a2affca6
4
+ data.tar.gz: 8fe7f6f4779876ea2ea872040d53d27ade881cd2
5
5
  SHA512:
6
- metadata.gz: 691faeaa04261f14093c3867041dc22d6077304d0e6224baec120d00c6f46d26e57121f313ffaa2bcd8705f1b5bbee70841510670f3df7eea1b1c2d066058571
7
- data.tar.gz: c51c40f5e4a52db1d850ca115609a72807798931240fedb5331c99f483ac125f5849c76258608d039dfb5556241d89abacab106957001bec8ac56f9907965f0c
6
+ metadata.gz: 183c1aafe6a395f8b32468aeb846da3d5dccee9697afbcb8fa35513cbc6a16a036272815ac37b9199263eb5eeec7431e21ffc79891c7ad594bb44ebb47a8093d
7
+ data.tar.gz: 98847d55f11d8af140b03132ed5e780cffc370208f8c8a11479852c8bf1d0b4e5d1c4844e33d7bee83f3e659b11da8ed6794cca2b0d288da91747ba3555d0b51
@@ -4,7 +4,7 @@ module Devise
4
4
 
5
5
  #include ::PermissionsHelper
6
6
 
7
- before_action :authenticate_user!
7
+ #before_action :authenticate_user!
8
8
  around_action :perform_callbacks
9
9
 
10
10
  rescue_from Rack::OAuth2::Server::Authorize::BadRequest do |e|
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Oauth2
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
@@ -1,16 +1,18 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  protect_from_forgery
3
3
 
4
- #def before_authorize
5
- # Rails.logger.info 'We are calling before authorize! :D'
6
- #end
7
- #
8
- #def after_authorize
9
- # Rails.logger.info 'We are calling after authorize!!!'
10
- #end
11
- #
12
- #def after_denied_authorization
13
- # redirect_to '/'
14
- #end
4
+ include Devise::Oauth2::Authorization
5
+
6
+ def before_authorize
7
+ Rails.logger.info current_oauth2_client
8
+ end
9
+
10
+ def after_authorize
11
+ Rails.logger.info 'We are calling after authorize!!!'
12
+ end
13
+
14
+ def after_denied_authorization
15
+ redirect_to '/'
16
+ end
15
17
 
16
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_oauth2_rails4
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Wheeler