omniauth-alicloud 1.0.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d967a83b20e824dc7bbd970408572ea8481c6186ff48dd2b706c8784538d44ac
4
- data.tar.gz: 22302082cfd04e20f624855cbef0a020bdf2c1d30d288336bd6816c196b11877
3
+ metadata.gz: 4ee825813168ad56949fc867452a9bcf0a87f089d827b271f8411a3e3c4e8202
4
+ data.tar.gz: c5a2fcf443cac3b60b03acca879e6adf6a41ed4212f2f7aed2f64b722c7c8eec
5
5
  SHA512:
6
- metadata.gz: cf3e9303f00d9599785577659cb96801991b7fad402cf99954179388f7c0072723d3c42284020bc720b811b0970fd6f2e7212e64fe37dbf2e85fc44b32a90009
7
- data.tar.gz: 2fdb5c930f70f99aec5a80c50cf506095baa58185d8ee72c274375aa1b69da9072abbb9ee83a3c047dc010d1f392f3085112d5fba806f91832fb23d7e62b6018
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 (1.0.1)
5
- omniauth-oauth2 (~> 1.7.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.3.0)
18
- multi_json (1.15.0)
17
+ jwt (2.5.0)
19
18
  multi_xml (0.6.0)
20
- oauth2 (1.4.9)
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
- omniauth (2.0.4)
24
+ snaky_hash (~> 2.0)
25
+ version_gem (~> 1.1)
26
+ omniauth (2.1.0)
27
27
  hashie (>= 3.4.6)
28
- rack (>= 1.6.2, < 3)
28
+ rack (>= 2.2.3)
29
29
  rack-protection
30
- omniauth-oauth2 (1.7.2)
31
- oauth2 (~> 1.4)
32
- omniauth (>= 1.9, < 3)
33
- rack (2.2.3)
34
- rack-protection (2.2.0)
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.0)
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.0)
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.0)
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
- :site => 'https://oauth.aliyun.com/',
10
- :authorize_url => 'https://signin.aliyun.com/oauth2/v1/auth',
11
- :token_url => 'https://oauth.aliyun.com/v1/token'
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Alicloud
5
- VERSION = '1.0.1'
5
+ VERSION = '2.0.0'
6
6
  end
7
7
  end
@@ -23,5 +23,5 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ["lib"]
25
25
 
26
- spec.add_dependency 'omniauth-oauth2', '~> 1.7.1'
26
+ spec.add_dependency 'omniauth-oauth2', '~> 1.8'
27
27
  end
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: 1.0.1
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-03-30 00:00:00.000000000 Z
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.7.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.7.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