omniauth-wechat 0.1.15 → 0.1.16
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 +8 -8
- data/lib/omniauth/strategies/wechat.rb +3 -4
- data/lib/omniauth/wechat/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ODlkZDhhMDY1MmE0ODliOTdhOGZjYjZhZTQ1ZWRiYzQ2YjBhY2E3Yg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MjliZDIwNWQ1YWJkNDQzMTE4MWE0ODJlNTY1MGJmZjAyNmY2MTg4ZQ==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YWM1MjRhY2FiNjM1YjA3OTM5M2UyYjI3NzExNzE3MmI1NDhiZjViNTViNjZi
|
|
10
|
+
M2ZjZmIwZWU3NGFkZTY4MWRkYTFiZWY0ZDQxMWM2ZjkwMzYxOTk4OTI3NzMy
|
|
11
|
+
NDhhODU0YjFhZDUwMzY3MTU2MDc2YjhlZmEyNzUwNTQzNDk2MGQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZDgxOTdmNjEyODA3ZTVjZGFlYzRkZGQ1MzgzOTkwNGE3MDVhYjI4MTY3Mzg2
|
|
14
|
+
MDE1NTQ0YTQ5ZWViOGMzMDBjOGFhZTAyYmNlZThkYzcxZGY2YzQ3ZTY3MjBj
|
|
15
|
+
ZjdjM2Q5NjlkMmU2Yjc3Mzk2YTU5MGJiYTBjODkxZGExM2Q1NmE=
|
|
@@ -114,8 +114,7 @@ module OmniAuth
|
|
|
114
114
|
'/sns/userinfo',
|
|
115
115
|
{:params => {:openid => uid,
|
|
116
116
|
:lang =>'zh-CN'},
|
|
117
|
-
:parse => :json
|
|
118
|
-
:mode => :query}
|
|
117
|
+
:parse => :json}
|
|
119
118
|
).parsed
|
|
120
119
|
end
|
|
121
120
|
end
|
|
@@ -136,7 +135,7 @@ module OmniAuth
|
|
|
136
135
|
:grant_type=>'authorization_code',
|
|
137
136
|
:parse=>:json
|
|
138
137
|
}
|
|
139
|
-
client.get_token(request_params)
|
|
138
|
+
client.get_token(request_params,{:mode=>:query})
|
|
140
139
|
|
|
141
140
|
end
|
|
142
141
|
|
|
@@ -146,7 +145,7 @@ module OmniAuth
|
|
|
146
145
|
:refresh_token => old_token.refresh_token,
|
|
147
146
|
:parse=>:json
|
|
148
147
|
}
|
|
149
|
-
client({:token_url=>'https://api.weixin.qq.com/sns/oauth2/refresh_token'}).get_token(request_params)
|
|
148
|
+
client({:token_url=>'https://api.weixin.qq.com/sns/oauth2/refresh_token'}).get_token(request_params,{:mode=>:query})
|
|
150
149
|
end
|
|
151
150
|
|
|
152
151
|
class CallbackError < StandardError
|