omniauth-geekpark 1.0.2 → 1.0.4

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: 352ea839f177a4ced8152329b5df1d554e151bc2
4
- data.tar.gz: bbeb66bf992137b42b9bac54d49fee94aee90604
3
+ metadata.gz: 484872d3d03863a03bc5f43d937425f472c1c433
4
+ data.tar.gz: e9825002eaaddf0db70ac2bd042c183fe27e5167
5
5
  SHA512:
6
- metadata.gz: 70797f50a0b2de7b0a5dc6af5d5a07c0ac0c4e3b510103754b090535a2b8dfd8ebda4585ea0e6bb74f49a5476a5a7ede2d2910b532a13351a27e718ffe29f9b9
7
- data.tar.gz: 3fe2c67c99f53f90d0ce50e8b9e612034c75d9e7f9470d8d6c2b657c4e44720427fde81461386f2ceec22106251bc8c868a863ab4b05fe92340ed190a9b31069
6
+ metadata.gz: a7cfa51d0998b6add02cd6bdf006eea1329995032e7c08f8cc1273813874376e887ca63c38f8fef49a610566077630cbdb3a23ad5a2fe81cc31423eac2d509c9
7
+ data.tar.gz: 2bb0944037864d082bae7fcf65a1e9089cdc7206ffcce0180c90bfb82eaa40876e525e302394c425d9b17b152544f23aa0898c5190fa7761ea51927b73a77536
@@ -3,7 +3,7 @@ module OmniAuth
3
3
  class WeChat < OmniAuth::Strategies::OAuth2
4
4
  option :client_options, {
5
5
  site: 'https://api.weixin.qq.com',
6
- authorize_url: 'https://open.weixin.qq.com/connect/qrconnect',
6
+ authorize_url: 'https://open.weixin.qq.com/connect/oauth2/authorize',
7
7
  token_url: 'https://api.weixin.qq.com/sns/oauth2/access_token',
8
8
  }
9
9
 
@@ -42,7 +42,7 @@ module OmniAuth
42
42
  appid: options.client_id,
43
43
  redirect_uri: callback_url,
44
44
  response_type: 'code',
45
- scope: request.params['scope'] || 'snsapi_login',
45
+ scope: 'snsapi_userinfo',
46
46
  })
47
47
  if OmniAuth.config.test_mode
48
48
  @env ||= {}
@@ -29,7 +29,7 @@ module OmniAuth
29
29
  end
30
30
  end
31
31
 
32
- def personal_info
32
+ def extra_info
33
33
  res = conn.get do |req|
34
34
  req.url '/api/v1/user/extra_info'
35
35
  req.params[:query] = %w(email mobile)
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module GeekPark
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-geekpark
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - HaoYunfei
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-05-18 00:00:00.000000000 Z
12
+ date: 2016-05-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth