omniauth-myvr 0.0.11 → 0.0.12

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: 7e301a259d3abdc5cc669f402e2ef524424c6877
4
- data.tar.gz: ba473c1bd28e3ea3d241b2c118936ebd7d66d979
3
+ metadata.gz: 72a77f93ac27f3ebd0b8d4573f6c6d62dac405f1
4
+ data.tar.gz: b5a02cd862a43e07f99f42fd4c72adcddc6a5f79
5
5
  SHA512:
6
- metadata.gz: 094f76c563037d0a20a650d160af036a394693cc4980d3a6c3a3cbe91caa9b3f89a1d09e171214474a7f26cafbeef03fae0c4ebe1b27670b7446dbd98538b2f1
7
- data.tar.gz: 07d42af0ced676ad948b049301943d94c039c951f098bf277dd339c6d7b759b3086fa74de9050186871ca6fc114e7da4a2bc3ae68f246389f5343c51724d05bf
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
- # def custom_build_access_token
107
- # access_token =
108
- # if request.xhr? && request.params['code']
109
- # verifier = request.params['code']
110
- # client.auth_code.get_token(verifier, get_token_options('postmessage'), deep_symbolize(options.auth_token_params || {}))
111
- # elsif request.params['code'] && request.params['redirect_uri']
112
- # verifier = request.params['code']
113
- # redirect_uri = request.params['redirect_uri']
114
- # client.auth_code.get_token(verifier, get_token_options(redirect_uri), deep_symbolize(options.auth_token_params || {}))
115
- # elsif verify_token(request.params['access_token'])
116
- # ::OAuth2::AccessToken.from_hash(client, request.params.dup)
117
- # else
118
- # verifier = request.params["code"]
119
- # client.auth_code.get_token(verifier, get_token_options(callback_url), deep_symbolize(options.auth_token_params))
120
- # end
121
- #
122
- # verify_hd(access_token)
123
- # access_token
124
- # end
125
- # alias_method :build_access_token, :custom_build_access_token
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
  #
@@ -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.11"
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-myvr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - CJ Avilla