omniauth-myvr 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/strategies/myvr.rb +20 -24
- data/omniauth-myvr.gemspec +1 -1
- 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: 72a77f93ac27f3ebd0b8d4573f6c6d62dac405f1
|
4
|
+
data.tar.gz: b5a02cd862a43e07f99f42fd4c72adcddc6a5f79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8085012d4c3e6d0b332f017db0792bd87be4ac3952f124fda7a6f458ab9ca2ee65130a5672496ccbcacda049102f352405707af99a7a735a32cbaa7cc1a4cb8d
|
7
|
+
data.tar.gz: c2a4b11d79b05ba078ace89538e4808c47098d7ca79979dc3b4eecc1b3aa1a5e2334c5435bb06fd9e14f9f00ad15bba5566f9fd59d57a16110d18b5a8b748567
|
@@ -11,10 +11,6 @@ module OmniAuth
|
|
11
11
|
DEFAULT_SCOPE = "email,profile"
|
12
12
|
|
13
13
|
option :name, 'myvr'
|
14
|
-
option :skip_friends, true
|
15
|
-
option :skip_image_info, true
|
16
|
-
option :skip_jwt, false
|
17
|
-
option :jwt_leeway, 60
|
18
14
|
option :authorize_options, [
|
19
15
|
:access_type,
|
20
16
|
:hd,
|
@@ -103,26 +99,26 @@ module OmniAuth
|
|
103
99
|
# @raw_image_info ||= access_token.get("https://www.googleapis.com/plus/v1/people/#{id}?fields=image").parsed
|
104
100
|
# end
|
105
101
|
#
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
102
|
+
def custom_build_access_token
|
103
|
+
request.params.fetch('code')
|
104
|
+
# access_token =
|
105
|
+
# if request.xhr? && request.params['code']
|
106
|
+
# verifier = request.params['code']
|
107
|
+
# client.auth_code.get_token(verifier, get_token_options('postmessage'), deep_symbolize(options.auth_token_params || {}))
|
108
|
+
# elsif request.params['code'] && request.params['redirect_uri']
|
109
|
+
# verifier = request.params['code']
|
110
|
+
# redirect_uri = request.params['redirect_uri']
|
111
|
+
# client.auth_code.get_token(verifier, get_token_options(redirect_uri), deep_symbolize(options.auth_token_params || {}))
|
112
|
+
# elsif verify_token(request.params['access_token'])
|
113
|
+
# ::OAuth2::AccessToken.from_hash(client, request.params.dup)
|
114
|
+
# else
|
115
|
+
# verifier = request.params["code"]
|
116
|
+
# client.auth_code.get_token(verifier, get_token_options(callback_url), deep_symbolize(options.auth_token_params))
|
117
|
+
# end
|
118
|
+
# verify_hd(access_token)
|
119
|
+
# access_token
|
120
|
+
end
|
121
|
+
alias_method :build_access_token, :custom_build_access_token
|
126
122
|
#
|
127
123
|
# private
|
128
124
|
#
|
data/omniauth-myvr.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "omniauth-myvr"
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.12"
|
7
7
|
s.authors = ["CJ Avilla"]
|
8
8
|
s.email = ["cjavilla@gmail.com"]
|
9
9
|
s.homepage = "https://github.com/w1zeman1p/omniauth-myvr"
|