omniauth-eleme-oauth2 0.0.2 → 0.0.3

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: 85a2ea7087ccf8244351b669a74e0a03b34fd520
4
- data.tar.gz: 76048a166737a09dcc6ecbf6d2f36c681df94555
3
+ metadata.gz: 72c3d53553015eb92bd04abef36dcdb3f0f569f8
4
+ data.tar.gz: 1ea9740b3611146c4d4f3dd7a79c71164b1aa6b7
5
5
  SHA512:
6
- metadata.gz: 56bb3c23a56a9c0c8f197bec403ae21ce8c56213278b24da04cd1591efb47b0d9adc1d16d0e391b70bd60a46e3e03acc112465c2ff7f85bac1576966001b4674
7
- data.tar.gz: 4a5b4aa4b7ef87082468859ac1f7b0f25d510ba01617c83882106d512e6aa34256e2152bad84291a51cede0dd00a960a5d7db9954d5dd7c18b2f9c3459538e03
6
+ metadata.gz: 8ac58426d6d51806f0041084d45ddc4e4d0386544c741a99293de3ac7acde51101e2ddc76fd72d647abe9ffdb4d7a491eae16bac94025dec8031b07877b4b474
7
+ data.tar.gz: eedc37b09d9e3d4c5edee2f93ef6fd50f270eb706c2e53a6e5491d1a4c64ebf21034f6ed87bd54bb21c79d5dd9c875df28ed506f46043f90e9f6300d11b0562d
@@ -4,13 +4,13 @@ module OmniAuth
4
4
  module Strategies
5
5
  class Eleme < OmniAuth::Strategies::OAuth2
6
6
  # Give your strategy a name.
7
- option :name, "eleme"
7
+ option :name, "饿了么商家平台"
8
8
 
9
9
  option :authorize_params, {scope: "all"}
10
10
  # This is where you pass the options you would pass when
11
11
  # initializing your consumer from the OAuth gem.
12
12
  option :client_options, {
13
- :site => "https://open-api-sandbox.shop.ele.me",
13
+ :site => Rails.env.production? ? "https://open-api.shop.ele.me" : "https://open-api-sandbox.shop.ele.me",
14
14
  :authorize_url => "/authorize",
15
15
  :token_method => :post,
16
16
  # :token_url => "http://localhost:3002/backend/shops/diandanbao/branches",
@@ -23,7 +23,7 @@ module OmniAuth
23
23
  # additional calls (if the user id is returned with the token
24
24
  # or as a URI parameter). This may not be possible with all
25
25
  # providers.
26
- uid{ }
26
+ uid{ raw_info['id'] }
27
27
 
28
28
  info do
29
29
  {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-eleme-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - neil
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-10 00:00:00.000000000 Z
11
+ date: 2017-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth