omniauth-weibo-oauth2 0.5.1 → 0.5.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 +5 -5
- data/README.md +6 -2
- data/lib/omniauth/strategies/weibo.rb +5 -1
- data/lib/omniauth-weibo-oauth2/version.rb +1 -1
- data/omniauth-weibo-oauth2.gemspec +2 -2
- metadata +12 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d60eaa52ba106ee15bfcecef16ccdd7d6763929616066c54166ed3105921590c
|
4
|
+
data.tar.gz: a4decd97dd0e3cd0710b0ea411659bff95c5b5d325fd873fa8120f1a0bf656a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac1f8d4f2196a432a9b532ba4a2ffb2712d0ab5d45c6a9485511b9b4c3b524b03c683611156855a43451d7f8e5d942e6d22c0088eb38f0da74a6855f4d290e77
|
7
|
+
data.tar.gz: 9d8ba80c2c6bcaed5faf7a105101d9f4b2b0b469b42ab591f880341e887aac1a758846fed0d211f588c308f560888e9f6c1dafce1a748ad8a90e019ece3df933
|
data/README.md
CHANGED
@@ -17,7 +17,11 @@
|
|
17
17
|
|
18
18
|
Weibo OAuth2 Strategy for OmniAuth 1.0.
|
19
19
|
|
20
|
-
Read Weibo OAuth2 docs for more details:
|
20
|
+
Read Weibo OAuth2 docs for more details: https://open.weibo.com/wiki/授权机制
|
21
|
+
|
22
|
+
## Security
|
23
|
+
|
24
|
+
- CVE-2019-17268 [Issue #36](https://github.com/beenhero/omniauth-weibo-oauth2/issues/36)
|
21
25
|
|
22
26
|
## Installing
|
23
27
|
|
@@ -92,7 +96,7 @@ Here's an example *Authentication Hash* available in `request.env['omniauth.auth
|
|
92
96
|
}
|
93
97
|
}
|
94
98
|
```
|
95
|
-
*PS.* Built and tested on MRI Ruby
|
99
|
+
*PS.* Built and tested on MRI Ruby 2.4.2
|
96
100
|
|
97
101
|
## Build&pulish gem
|
98
102
|
```
|
@@ -38,7 +38,11 @@ module OmniAuth
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def callback_url
|
41
|
-
full_host + script_name + callback_path
|
41
|
+
token_params_redirect || (full_host + script_name + callback_path)
|
42
|
+
end
|
43
|
+
|
44
|
+
def token_params_redirect
|
45
|
+
token_params['redirect_uri'] || token_params[:redirect_uri]
|
42
46
|
end
|
43
47
|
|
44
48
|
def raw_info
|
@@ -16,6 +16,6 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.require_paths = ["lib"]
|
17
17
|
gem.version = OmniAuth::WeiboOauth2::VERSION
|
18
18
|
|
19
|
-
gem.add_dependency 'omniauth'
|
20
|
-
gem.add_dependency 'omniauth-oauth2'
|
19
|
+
gem.add_dependency 'omniauth'
|
20
|
+
gem.add_dependency 'omniauth-oauth2'
|
21
21
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-weibo-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bin He
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: omniauth-oauth2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '0'
|
41
41
|
description: OmniAuth Oauth2 strategy for weibo.com.
|
42
42
|
email: beenhero@gmail.com
|
43
43
|
executables: []
|
@@ -58,7 +58,7 @@ homepage: https://github.com/beenhero/omniauth-weibo-oauth2
|
|
58
58
|
licenses:
|
59
59
|
- MIT
|
60
60
|
metadata: {}
|
61
|
-
post_install_message:
|
61
|
+
post_install_message:
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
64
64
|
- lib
|
@@ -73,9 +73,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
|
77
|
-
|
78
|
-
signing_key:
|
76
|
+
rubygems_version: 3.4.10
|
77
|
+
signing_key:
|
79
78
|
specification_version: 4
|
80
79
|
summary: OmniAuth Oauth2 strategy for weibo.com.
|
81
80
|
test_files: []
|