omniauth-alicloud 1.0.1 → 2.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/CHANGELOG.md +9 -0
- data/Gemfile.lock +20 -16
- data/lib/omniauth/strategies/alicloud.rb +3 -7
- data/lib/omniauth-alicloud/version.rb +1 -1
- data/omniauth-alicloud.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ee825813168ad56949fc867452a9bcf0a87f089d827b271f8411a3e3c4e8202
|
|
4
|
+
data.tar.gz: c5a2fcf443cac3b60b03acca879e6adf6a41ed4212f2f7aed2f64b722c7c8eec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5a8f0a01be866ea824cf9f58dfd5a566a9a4edd650bf86c576113d5c98537b28f20e534326747776f7c47a1b12c7c6e886873ffabfeccb2d3965bc5a5a6fa64
|
|
7
|
+
data.tar.gz: 8650ee1d7ca6a1911f5f9b9658400adf1c2e0b95c7bf2d1a2b952c6cf84ee24687878304aaece7193fe99f31943252e9f2f8b76afdcac46005657f0ebf6db943
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
## v2.0.0 (2022-09-16)
|
|
4
|
+
|
|
5
|
+
Makes compatible with OmniAuth 2 and requires it.
|
|
6
|
+
|
|
7
|
+
Note: https://gitlab.com/gitlab-jh/jh-team/omniauth-alicloud/-/merge_requests/1 for reasoning - Thanks @jessieay
|
|
8
|
+
|
|
9
|
+
_Major version bump as no longer supports Omniauth 1._
|
data/Gemfile.lock
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
omniauth-alicloud (
|
|
5
|
-
omniauth-oauth2 (~> 1.
|
|
4
|
+
omniauth-alicloud (2.0.0)
|
|
5
|
+
omniauth-oauth2 (~> 1.8)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
@@ -14,24 +14,24 @@ GEM
|
|
|
14
14
|
ruby2_keywords (>= 0.0.4)
|
|
15
15
|
faraday-net_http (2.0.1)
|
|
16
16
|
hashie (5.0.0)
|
|
17
|
-
jwt (2.
|
|
18
|
-
multi_json (1.15.0)
|
|
17
|
+
jwt (2.5.0)
|
|
19
18
|
multi_xml (0.6.0)
|
|
20
|
-
oauth2 (
|
|
19
|
+
oauth2 (2.0.8)
|
|
21
20
|
faraday (>= 0.17.3, < 3.0)
|
|
22
21
|
jwt (>= 1.0, < 3.0)
|
|
23
|
-
multi_json (~> 1.3)
|
|
24
22
|
multi_xml (~> 0.5)
|
|
25
23
|
rack (>= 1.2, < 3)
|
|
26
|
-
|
|
24
|
+
snaky_hash (~> 2.0)
|
|
25
|
+
version_gem (~> 1.1)
|
|
26
|
+
omniauth (2.1.0)
|
|
27
27
|
hashie (>= 3.4.6)
|
|
28
|
-
rack (>=
|
|
28
|
+
rack (>= 2.2.3)
|
|
29
29
|
rack-protection
|
|
30
|
-
omniauth-oauth2 (1.
|
|
31
|
-
oauth2 (
|
|
32
|
-
omniauth (
|
|
33
|
-
rack (2.2.
|
|
34
|
-
rack-protection (2.2.
|
|
30
|
+
omniauth-oauth2 (1.8.0)
|
|
31
|
+
oauth2 (>= 1.4, < 3)
|
|
32
|
+
omniauth (~> 2.0)
|
|
33
|
+
rack (2.2.4)
|
|
34
|
+
rack-protection (2.2.2)
|
|
35
35
|
rack
|
|
36
36
|
rake (12.3.3)
|
|
37
37
|
rspec (3.11.0)
|
|
@@ -40,14 +40,18 @@ GEM
|
|
|
40
40
|
rspec-mocks (~> 3.11.0)
|
|
41
41
|
rspec-core (3.11.0)
|
|
42
42
|
rspec-support (~> 3.11.0)
|
|
43
|
-
rspec-expectations (3.11.
|
|
43
|
+
rspec-expectations (3.11.1)
|
|
44
44
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
45
45
|
rspec-support (~> 3.11.0)
|
|
46
|
-
rspec-mocks (3.11.
|
|
46
|
+
rspec-mocks (3.11.1)
|
|
47
47
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
48
48
|
rspec-support (~> 3.11.0)
|
|
49
|
-
rspec-support (3.11.
|
|
49
|
+
rspec-support (3.11.1)
|
|
50
50
|
ruby2_keywords (0.0.5)
|
|
51
|
+
snaky_hash (2.0.0)
|
|
52
|
+
hashie
|
|
53
|
+
version_gem (~> 1.1)
|
|
54
|
+
version_gem (1.1.0)
|
|
51
55
|
|
|
52
56
|
PLATFORMS
|
|
53
57
|
ruby
|
|
@@ -6,9 +6,9 @@ module OmniAuth
|
|
|
6
6
|
option :name, 'alicloud'
|
|
7
7
|
|
|
8
8
|
option :client_options, {
|
|
9
|
-
:
|
|
10
|
-
:
|
|
11
|
-
:
|
|
9
|
+
site: 'https://oauth.aliyun.com/',
|
|
10
|
+
authorize_url: 'https://signin.aliyun.com/oauth2/v1/auth',
|
|
11
|
+
token_url: 'https://oauth.aliyun.com/v1/token'
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
uid do
|
|
@@ -35,10 +35,6 @@ module OmniAuth
|
|
|
35
35
|
def raw_info
|
|
36
36
|
@raw_info ||= access_token.get('/v1/userinfo').parsed || {}
|
|
37
37
|
end
|
|
38
|
-
|
|
39
|
-
def callback_url
|
|
40
|
-
full_host + script_name + callback_path
|
|
41
|
-
end
|
|
42
38
|
end
|
|
43
39
|
end
|
|
44
40
|
end
|
data/omniauth-alicloud.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-alicloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- JiHu(GitLab)
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-09-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth-oauth2
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.
|
|
19
|
+
version: '1.8'
|
|
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: 1.
|
|
26
|
+
version: '1.8'
|
|
27
27
|
description: Wrapper the AliCloud Oauth2 API
|
|
28
28
|
email:
|
|
29
29
|
- dev@jihulab.com
|
|
@@ -33,6 +33,7 @@ extra_rdoc_files: []
|
|
|
33
33
|
files:
|
|
34
34
|
- ".bundle/config"
|
|
35
35
|
- ".gitignore"
|
|
36
|
+
- CHANGELOG.md
|
|
36
37
|
- Gemfile
|
|
37
38
|
- Gemfile.lock
|
|
38
39
|
- LICENSE.txt
|