omniauth-myvr 0.0.13 → 0.0.14

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: 9485b8988fa2a065e08dc09bfa7d114f43d0e311
4
- data.tar.gz: f036915776252b67765ebd2450cf18ef669d07dc
3
+ metadata.gz: f57d80f1298aaca70677798912a460c4e063d752
4
+ data.tar.gz: 47db64c5cd9b6605c49db15358e38acbb66504b3
5
5
  SHA512:
6
- metadata.gz: c30e7dc5993f99da7c15ab9e98021d9c741de26248caf5f702429853a8a4a5b4d51991670778d020e643499d29aaed2b2138fecdac3b44caa47f2f6185d7c329
7
- data.tar.gz: f5e683720e2f1037340873a509cc5ad55d914409995f930cdb83d291a75701ac4504801bf961ca0d0f743762e79ffac72a33f8f068fba9d11b6b7108f76b5abd
6
+ metadata.gz: 928dcedc96b4639e7ab7e176b22276cc1985d217bf71a708c6c79f27b68c66294784bfa3f0308ab30ce869ecf9daa5661d23c703765a90a16f61839c0f185172
7
+ data.tar.gz: f59544aed2292ab3d66e5a5cc1a3c3b0f9ad597a9498450ed8d2ef4648fcbeed2c76ba46d412297de3947bceacb729ab99add438d395fdd185d5a233fad11806
@@ -113,23 +113,23 @@ module OmniAuth
113
113
  # ::OAuth2::AccessToken.from_hash(client, request.params.dup)
114
114
  # else
115
115
  # verifier = request.params["code"]
116
- client.auth_code.get_token(verifier, get_token_options(callback_url), deep_symbolize(options.auth_token_params))
116
+ client.auth_code.get_token(verifier, get_token_options(redirect_uri), deep_symbolize(options.auth_token_params))
117
117
  # end
118
118
  # verify_hd(access_token)
119
119
  # access_token
120
120
  end
121
121
  alias_method :build_access_token, :custom_build_access_token
122
- #
123
- # private
124
- #
125
- # def callback_url
126
- # options[:redirect_uri] || (full_host + script_name + callback_path)
127
- # end
128
- #
129
- # def get_token_options(redirect_uri)
130
- # { :redirect_uri => redirect_uri }.merge(token_params.to_hash(:symbolize_keys => true))
131
- # end
132
- #
122
+
123
+ private
124
+
125
+ def callback_url
126
+ options[:redirect_uri] || (full_host + script_name + callback_path)
127
+ end
128
+
129
+ def get_token_options(redirect_uri)
130
+ { :redirect_uri => redirect_uri }.merge(token_params.to_hash(:symbolize_keys => true))
131
+ end
132
+
133
133
  # def prune!(hash)
134
134
  # hash.delete_if do |_, v|
135
135
  # prune!(v) if v.is_a?(Hash)
@@ -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.13"
6
+ s.version = "0.0.14"
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.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - CJ Avilla