omniauth-open_wechat 0.0.2 → 0.0.3
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/README.md +6 -1
- data/lib/omniauth/strategies/open_wechat.rb +4 -0
- data/lib/omniauth-open_wechat/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1000333909f38cf63d269d6f9f28e84a388efba
|
4
|
+
data.tar.gz: c2f5913962020b3806712fd7ea6b213b7e001a6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f278ec78538699fc70509b9774db9c2ab591efc58b6274ad97e86a8b1bf647230d24463d78249b0db3a4dfee7f94bc3196b0920dc46d6bce9769d61923fd7d11
|
7
|
+
data.tar.gz: 98ddcdd6e8bce065a3e0541d7529e2dbb9ae1f85e916b50a17c5ad792448952360c8dcd1a1d6e4352c30fba36b7299bbfe006b3a790e9fff957eba024b35e3ea
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# OmniAuth OpenWechat OAuth2
|
2
2
|
|
3
|
-
Read
|
3
|
+
Read Wechat OAuth2 docs for more details: [微信开放平台开发指南](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&lang=zh_CN)
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -29,6 +29,10 @@ Rails.application.config.middleware.use OmniAuth::Builder do
|
|
29
29
|
end
|
30
30
|
```
|
31
31
|
|
32
|
+
## Current Version
|
33
|
+
|
34
|
+
`0.0.2`
|
35
|
+
|
32
36
|
## Authentication Hash
|
33
37
|
|
34
38
|
Here's an example Authentication Hash available in `request.env['omniauth.auth']` :
|
@@ -37,6 +41,7 @@ Here's an example Authentication Hash available in `request.env['omniauth.auth']
|
|
37
41
|
{
|
38
42
|
"provider"=>"open_wechat",
|
39
43
|
"uid"=>"xxx...",
|
44
|
+
"unionid"=>"xxx...",
|
40
45
|
"info"=>{
|
41
46
|
"nickname"=>"free",
|
42
47
|
"sex"=>1,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-open_wechat
|
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
|
- free1
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
81
|
rubyforge_project:
|
82
|
-
rubygems_version: 2.4.
|
82
|
+
rubygems_version: 2.4.7
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: OmniAuth strategy for OpenWechat.
|