omniauth-eve_online-sso 0.4.0 → 0.5.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: 2ad822475338693f0bb8f3a0b6ae8e9fd92106a9474da2f4c11047963589883e
4
- data.tar.gz: 26fd2e09e12aca85854fe028a3e6897dea90ca3d66d842548c86a76318e85fc0
3
+ metadata.gz: 4152a8b6c59b47705f4dd3b0dfaf54f6c7f3ef1fcfd18224c5bb4093dd9c9450
4
+ data.tar.gz: 32efb033c2da393d8e23c4a114d957e3bfd4bb2f6e10c9c85f7b476b5d6ba05c
5
5
  SHA512:
6
- metadata.gz: de6aeb0cdb3aeebcb3364d088bcca4b61bca5cfecb8c15c50812d2257c6413054c0520df83b5d2186945a3de538f1c492f5300620954084f9510e65d2fb2af5d
7
- data.tar.gz: 52fb849eedf6254eb77d955c6a183f17c1c72f03ba585a2f236cd12e82b13b3e0d82c34b432885a4a08203398c149f09905a408df33181268aa0803c599ed1b6
6
+ metadata.gz: 4c78bdfcd4bcf3f5f8371331038a00e8c01d24650c6fc4f0a1442317b755a0952ed60ea72bb308358f0cd34c23d5bb64c607b99ee6701e917e3f8166d5264edc
7
+ data.tar.gz: b45b7f207aaced15b55fdd3b8be36af4105f6b5d8ba412dac5dc7d47aba7f1f66c85eb494ea42b4d62084742b5fcfc4fb613519e5dd60144a8a1e390558344f3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.5.0
4
+
5
+ * Fix error when decoding OAuth2 tokens containing a single scope
6
+
3
7
  ## v0.4.0
4
8
 
5
9
  * Update `v2` EveOnline SSO support
data/Gemfile.lock CHANGED
@@ -77,13 +77,13 @@ GEM
77
77
  diff-lcs (>= 1.2.0, < 2.0)
78
78
  rspec-support (~> 3.10.0)
79
79
  rspec-support (3.10.2)
80
- rubocop (1.20.0)
80
+ rubocop (1.22.3)
81
81
  parallel (~> 1.10)
82
82
  parser (>= 3.0.0.0)
83
83
  rainbow (>= 2.2.2, < 4.0)
84
84
  regexp_parser (>= 1.8, < 3.0)
85
85
  rexml
86
- rubocop-ast (>= 1.9.1, < 2.0)
86
+ rubocop-ast (>= 1.12.0, < 2.0)
87
87
  ruby-progressbar (~> 1.7)
88
88
  unicode-display_width (>= 1.4.0, < 3.0)
89
89
  rubocop-ast (1.12.0)
@@ -99,8 +99,8 @@ GEM
99
99
  simplecov_json_formatter (~> 0.1)
100
100
  simplecov-html (0.12.3)
101
101
  simplecov_json_formatter (0.1.3)
102
- standard (1.3.0)
103
- rubocop (= 1.20.0)
102
+ standard (1.4.0)
103
+ rubocop (= 1.22.3)
104
104
  rubocop-performance (= 1.11.5)
105
105
  unicode-display_width (2.1.0)
106
106
 
@@ -3,7 +3,7 @@
3
3
  module Omniauth
4
4
  module EveOnline
5
5
  module SSO
6
- VERSION = "0.4.0"
6
+ VERSION = "0.5.0"
7
7
  end
8
8
  end
9
9
  end
@@ -36,7 +36,7 @@ module OmniAuth
36
36
  @raw_info ||= JWT.decode(access_token.token, nil, false)
37
37
  .find { |element| element.keys.include?("scp") }.tap do |hash|
38
38
  hash["character_id"] = hash["sub"].split(":")[-1]
39
- hash["scopes"] = hash["scp"].join(" ")
39
+ hash["scopes"] = [*hash["scp"]].join(" ")
40
40
  hash["token_type"] = hash["sub"].split(":")[0].capitalize
41
41
  hash["expires_on"] = hash["exp"]
42
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-eve_online-sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Zubkov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-19 00:00:00.000000000 Z
11
+ date: 2021-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubygems_version: 3.2.29
145
+ rubygems_version: 3.2.31
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: OmniAuth strategy for EveOnline SSO