omniauth-identitas 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/identitas/version.rb +1 -1
- data/lib/omniauth/strategies/identitas.rb +9 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a328d52a6c47b0f83b406ea217956cd583264eed
|
4
|
+
data.tar.gz: '032339ffa9a708603de561d5398a8969d5b4402b'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c51c6571c4c063c4886527d39a2f58256d31b94a66dfe6e71743a7f9ed703e7ae371715636f189a386d0ad37bde551168c35bfb642e3fcc30f0cf1148d325ce
|
7
|
+
data.tar.gz: 8b7663e3c31ea8d99968f2497cbc29909e9367a9b35b5bd6359d84d81afc70af65304b40261029c756082f0ae0d37d2323d96ae8d8fed34034c993c9360af83f
|
@@ -23,9 +23,11 @@ module OmniAuth
|
|
23
23
|
end
|
24
24
|
|
25
25
|
extra do
|
26
|
-
{
|
27
|
-
|
28
|
-
|
26
|
+
hash = {}
|
27
|
+
hash['raw_info'] = raw_info unless skip_info?
|
28
|
+
hash['m'] = request.params["m"]
|
29
|
+
hash['application_info'] = application_info
|
30
|
+
hash
|
29
31
|
end
|
30
32
|
|
31
33
|
def raw_info
|
@@ -47,6 +49,10 @@ module OmniAuth
|
|
47
49
|
options.authorize_params[:m] = request.params["m"]
|
48
50
|
end
|
49
51
|
|
52
|
+
def application_info
|
53
|
+
@application_info ||= access_token.get('/v1/app/info').parsed
|
54
|
+
end
|
55
|
+
|
50
56
|
end
|
51
57
|
end
|
52
58
|
end
|