devise_oauth2_rails4 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22427ed5ab66d9da651871d64af020f2a2affca6
|
4
|
+
data.tar.gz: 8fe7f6f4779876ea2ea872040d53d27ade881cd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 183c1aafe6a395f8b32468aeb846da3d5dccee9697afbcb8fa35513cbc6a16a036272815ac37b9199263eb5eeec7431e21ffc79891c7ad594bb44ebb47a8093d
|
7
|
+
data.tar.gz: 98847d55f11d8af140b03132ed5e780cffc370208f8c8a11479852c8bf1d0b4e5d1c4844e33d7bee83f3e659b11da8ed6794cca2b0d288da91747ba3555d0b51
|
@@ -1,16 +1,18 @@
|
|
1
1
|
class ApplicationController < ActionController::Base
|
2
2
|
protect_from_forgery
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|