omniauth-alipay 0.0.9 → 1.0.0
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 +4 -4
- data/Gemfile +1 -1
- data/lib/omniauth-alipay/version.rb +1 -1
- data/lib/omniauth/strategies/alipay.rb +1 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52172e7cb51a8499b30f9a575fb0754f6dba6fe2
|
4
|
+
data.tar.gz: f8a4fad6b6be64a87fb4df26a31017a59b835c94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a1a7254fbd2cd4a3a6ac8eb898153713500bc0ab68aa710f504b59787693c916bd0b8582c04632bce557d1ebf81f5e484626554c9ced8ed64a526877c0aee7d
|
7
|
+
data.tar.gz: 31a20635b408feb5153a233b062c99105e9cb30e9256a62ba24761a6d91460e689591a3f82b7b02ab22812280de4c2b8e38f12103b220cb2800e918a3b028022
|
data/Gemfile
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
# lots of stuff taken from https://github.com/intridea/omniauth/blob/0-3-stable/oa-oauth/lib/omniauth/strategies/oauth2/taobao.rb
|
2
1
|
require 'omniauth-oauth2'
|
3
2
|
module OmniAuth
|
4
3
|
module Strategies
|
5
|
-
class
|
4
|
+
class Alipay < OmniAuth::Strategies::OAuth2
|
6
5
|
USER_METHODS = {
|
7
6
|
:default => 'alipay.user.get'
|
8
7
|
}
|
@@ -37,9 +36,6 @@ module OmniAuth
|
|
37
36
|
user_type = options.client_options.user_type || :default
|
38
37
|
query_param = {
|
39
38
|
:app_key => options.client_id,
|
40
|
-
|
41
|
-
# TODO to be moved in options
|
42
|
-
# TODO add more default fields (http://my.open.taobao.com/apidoc/index.htm#categoryId:1-dataStructId:3)
|
43
39
|
:fields => 'alipay_user_id,real_name,logon_id,sex,user_status,user_type,created,last_visit,birthday,type,status',
|
44
40
|
:format => 'json',
|
45
41
|
:method => USER_METHODS[user_type],
|