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 +4 -4
- data/lib/omniauth/strategies/eleme.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72c3d53553015eb92bd04abef36dcdb3f0f569f8
|
4
|
+
data.tar.gz: 1ea9740b3611146c4d4f3dd7a79c71164b1aa6b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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, "
|
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.
|
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-
|
11
|
+
date: 2017-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|