omniauth-wechat 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/omniauth/strategies/wechat.rb +2 -2
- 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
|
+
Mzk4NzUxYTdmZDc1NGI1N2Y0MTRhM2ExNzFjZjYxZGM1MjNmYWE2NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTUwMDUwYThmYzcwMGYxYmY4NDA5ZDE3YTdjNjU0N2YyZjRhZmVhNw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWFmYzljNTU5ODhmNzFjZTA5ZjEyYWM3NTRiNWE2ZjUzYzVjNDFjZWRmNTU3
|
10
|
+
MThiMzBjNWVhNjY3MTVkOWY2Y2YzNGZmZGEwNGFlNzZjY2Y2ODUwYjhhY2M4
|
11
|
+
N2U0ZGQzOWQzOTAzN2ExNWM2ZDAwZDk1ZDc3MTFmNGU2YWFmODQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGVjMGRkMTgyZTg3MGRjZThlMjc3NDZiY2M1YWE3NjMzYmFjNGYyZTA4ZTZi
|
14
|
+
NDYyZjAyYTAzY2JkMGZiYzNmNWU4ZWFjZWI4NzY1ZTA2YTZjYTE0Yjg4ZGRi
|
15
|
+
ZmZiOWYzMzQ1MjhjMWM3MTAwODk1NmVmY2ZiYTI4Nzc0Y2IyYzI=
|
@@ -4,13 +4,13 @@ module OmniAuth
|
|
4
4
|
module Strategies
|
5
5
|
class WeChat < OmniAuth::Strategies::OAuth2
|
6
6
|
option :name, "wechat"
|
7
|
-
option :provider_ignores_state, true
|
8
7
|
option :client_options, {
|
9
8
|
:site => 'http://open.weixin.qq.com',
|
10
9
|
:authorize_url => 'https://open.weixin.qq.com/connect/oauth2/authorize',
|
11
10
|
:token_url => "https://api.weixin.qq.com/sns/oauth2/access_token"
|
12
11
|
}
|
13
|
-
option :
|
12
|
+
option :scope ,'snsapi_base'
|
13
|
+
|
14
14
|
def request_phase
|
15
15
|
redirect client.auth_code.authorize_url({:redirect_uri => callback_url}.merge(authorize_params))+'#wechat_redirect'
|
16
16
|
end
|