json_jws 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 75190e7f455b3a3e23b3cb46fda2b1fadc1c6022eb3f238e0450bb905802c150
4
+ data.tar.gz: c6001ebf7c25dab46c957595cc9ccc6c7a068192a45a62b7002e51cce23cd046
5
+ SHA512:
6
+ metadata.gz: 1c17c3f02e45b08123c4b6adc2c6fec00922a411a2bf0f7cac76ba2e3f2cd6187185dc36d096346bc536b3ed630cf6c1b4feac7c6a084767f92b38753263d310
7
+ data.tar.gz: 333f1d48315720b6c4a007925749fff90f431c08950d76613aa2b0fdb6575295fd28df64b7045d29bc5021f32327efa7fac87c3c8b20827371aecd1254230e45
@@ -0,0 +1,16 @@
1
+ name: Ruby
2
+
3
+ on: [push,pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v2
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: 3.0.2
14
+ bundler-cache: true
15
+ - name: Run the default task
16
+ run: bundle exec rake
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ json_jws-*
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-06-09
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at webmaster3t@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in json_jws.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "minitest", "~> 5.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,39 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ json_jws (0.1.0)
5
+ jose (~> 1.2)
6
+ json (~> 2.7.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ base64 (0.2.0)
12
+ byebug (11.1.3)
13
+ concurrent-ruby (1.3.2)
14
+ immutable-ruby (0.2.0)
15
+ concurrent-ruby (~> 1.1)
16
+ sorted_set (~> 1.0)
17
+ jose (1.2.0)
18
+ base64
19
+ immutable-ruby
20
+ json (2.7.2)
21
+ minitest (5.23.1)
22
+ rake (13.2.1)
23
+ rbtree (0.4.6)
24
+ set (1.1.0)
25
+ sorted_set (1.0.3)
26
+ rbtree
27
+ set (~> 1.0)
28
+
29
+ PLATFORMS
30
+ x86_64-darwin-22
31
+
32
+ DEPENDENCIES
33
+ byebug (~> 11.1.3)
34
+ json_jws!
35
+ minitest (~> 5.0)
36
+ rake (~> 13.0)
37
+
38
+ BUNDLED WITH
39
+ 2.2.24
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Thien Tran
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,85 @@
1
+ # JsonJws
2
+
3
+ JsonJws is a gem that provides support for JWS (JSON Web Signature) with JSON serialization, specifically designed to handle multiple signatures.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'json_jws'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install json_jws
20
+
21
+ ## Usage
22
+
23
+ ```ruby
24
+ require "jose"
25
+ require "openssl"
26
+
27
+ # If you want to load key from private key string
28
+ # rsa_key_01 = OpenSSL::PKey::RSA.new(rsa_priv_01_str)
29
+ # rsa_key_02 = OpenSSL::PKey::RSA.new(rsa_priv_01_str)
30
+
31
+ rsa_key_01 = OpenSSL::PKey::RSA.generate(2048)
32
+ puts "RSA key 01 Private: ", rsa_key_01.to_s, "\n"
33
+ puts "RSA key 01 Public: ", rsa_key_01.public_key.to_s
34
+ puts "\n" * 3
35
+
36
+ rsa_key_02 = OpenSSL::PKey::RSA.generate(2048)
37
+ puts "RSA key 02 Private: ", rsa_key_02.to_s, "\n"
38
+ puts "RSA key 02 Public: ", rsa_key_02.public_key.to_s
39
+ puts "\n" * 3
40
+
41
+ header = { "alg" => "RS256" }
42
+ payload = "It’s a dangerous business, Frodo, going out your door.".encode("utf-8")
43
+ payload = "{1}".encode("utf-8")
44
+ jwk = JOSE::JWK.from_key(rsa_key_01)
45
+ jwk2 = JOSE::JWK.from_key(rsa_key_02)
46
+
47
+ puts "\n\nEncoding:\n"
48
+ json_jws = JSON_JWS.encode(jwk, header, payload)
49
+ puts "json_jws: \n", json_jws
50
+
51
+ puts "\n\nVerify json jws"
52
+ verify_result = JSON_JWS.verify(json_jws, [jwk])
53
+ print "verify_result: ", verify_result
54
+
55
+ puts "\n\nAdd another signature"
56
+ # json_jws_2 = JSON_JWS.add_signature(json_jws, jwk2, { "alg" => "RS256", "extra" => "field" }, payload)
57
+ json_jws_2 = JSON_JWS.add_signature(json_jws, jwk2, header, payload)
58
+ puts "json_jws_2: \n", json_jws_2
59
+
60
+ puts "\n\nVerify json jws 2"
61
+ verify_result = JSON_JWS.verify(json_jws_2, [jwk, jwk2])
62
+ print "verify_result: ", verify_result
63
+
64
+ puts "\n\nJWS multiple signatures decoding"
65
+ decoded = JSON_JWS.decode(json_jws_2)
66
+ print "decoded: ", decoded
67
+ ```
68
+
69
+ ## Development
70
+
71
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
72
+
73
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
74
+
75
+ ## Contributing
76
+
77
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/json_jws. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/json_jws/blob/main/CODE_OF_CONDUCT.md).
78
+
79
+ ## License
80
+
81
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
82
+
83
+ ## Code of Conduct
84
+
85
+ Everyone interacting in the JsonJws project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/json_jws/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/*_test.rb"]
10
+ end
11
+
12
+ task default: :test
data/bin/console ADDED
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "json_jws"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ require "byebug"
16
+
17
+ require "jose"
18
+ require "openssl"
19
+
20
+ # If you want to load key from private key string
21
+ # rsa_key_01 = OpenSSL::PKey::RSA.new(rsa_priv_01_str)
22
+ # rsa_key_02 = OpenSSL::PKey::RSA.new(rsa_priv_01_str)
23
+
24
+ rsa_key_01 = OpenSSL::PKey::RSA.generate(2048)
25
+ puts "RSA key 01 Private: ", rsa_key_01.to_s, "\n"
26
+ puts "RSA key 01 Public: ", rsa_key_01.public_key.to_s
27
+ puts "\n" * 3
28
+
29
+ rsa_key_02 = OpenSSL::PKey::RSA.generate(2048)
30
+ puts "RSA key 02 Private: ", rsa_key_02.to_s, "\n"
31
+ puts "RSA key 02 Public: ", rsa_key_02.public_key.to_s
32
+ puts "\n" * 3
33
+
34
+ header = { "alg" => "RS256" }
35
+ payload = "It’s a dangerous business, Frodo, going out your door.".encode("utf-8")
36
+ payload = "{1}".encode("utf-8")
37
+ jwk = JOSE::JWK.from_key(rsa_key_01)
38
+ jwk2 = JOSE::JWK.from_key(rsa_key_02)
39
+
40
+ puts "\n\nEncoding:\n"
41
+ json_jws = JSON_JWS.encode(jwk, header, payload)
42
+ puts "json_jws: \n", json_jws
43
+
44
+ puts "\n\nVerify json jws"
45
+ verify_result = JSON_JWS.verify(json_jws, [jwk])
46
+ print "verify_result: ", verify_result
47
+
48
+ puts "\n\nAdd another signature"
49
+ # json_jws_2 = JSON_JWS.add_signature(json_jws, jwk2, { "alg" => "RS256", "extra" => "field" }, payload)
50
+ json_jws_2 = JSON_JWS.add_signature(json_jws, jwk2, header, payload)
51
+ puts "json_jws_2: \n", json_jws_2
52
+
53
+ puts "\n\nVerify json jws 2"
54
+ verify_result = JSON_JWS.verify(json_jws_2, [jwk, jwk2])
55
+ print "verify_result: ", verify_result
56
+
57
+ puts "\n\nJWS multiple signatures decoding"
58
+ decoded = JSON_JWS.decode(json_jws_2)
59
+ print "decoded: ", decoded
60
+
61
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/json_jws.gemspec ADDED
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/json_jws/version"
4
+ lib = File.expand_path("../lib", __FILE__)
5
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "json_jws"
9
+ spec.version = JsonJws::VERSION
10
+ spec.authors = ["Thien Tran"]
11
+ spec.email = ["webmaster3t@gmail.com"]
12
+
13
+ spec.summary = "JSON JWS with multiple signatures"
14
+ spec.description = "JSON JWS with multiple signatures"
15
+ spec.homepage = "https://github.com/thien0291/json_jws"
16
+ spec.license = "MIT"
17
+ spec.required_ruby_version = ">= 2.4.0"
18
+
19
+ spec.metadata["allowed_push_host"] = "https://rubygems.org/"
20
+
21
+ spec.metadata["homepage_uri"] = spec.homepage
22
+ spec.metadata["source_code_uri"] = "https://github.com/thien0291/json_jws"
23
+ spec.metadata["changelog_uri"] = "https://github.com/thien0291/json_jws/releases"
24
+
25
+ # Specify which files should be added to the gem when it is released.
26
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
28
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ # Uncomment to register a new dependency of your gem
35
+ # spec.add_dependency "example-gem", "~> 1.0"
36
+ spec.add_development_dependency "byebug", "~> 11.1.3"
37
+ spec.add_dependency "jose", "~> 1.2"
38
+ spec.add_dependency "json", "~> 2.7.2"
39
+
40
+ # For more information and examples about making a new gem, checkout our
41
+ # guide at: https://bundler.io/guides/creating_gem.html
42
+ end
@@ -0,0 +1,19 @@
1
+ require "base64"
2
+ require "json"
3
+ require "jose"
4
+
5
+ module JsonJws::Decode
6
+ def decode(jws, validate = true)
7
+ signatures = jws["signatures"].map do |signature|
8
+ {
9
+ protected: JSON.load(Base64.urlsafe_decode64(signature["protected"])),
10
+ signature: signature["signature"],
11
+ }
12
+ end
13
+
14
+ {
15
+ "payload" => Base64.urlsafe_decode64(jws["payload"]),
16
+ "signatures" => signatures,
17
+ }
18
+ end
19
+ end
@@ -0,0 +1,21 @@
1
+ require "base64"
2
+ require "json"
3
+ require "jose"
4
+ require_relative "./sign"
5
+
6
+ module JsonJws::Encode
7
+ def encode(jwk, header, payload)
8
+ protected_header = Base64.urlsafe_encode64(header.to_json)
9
+ payload = payload.to_json unless payload.is_a?(String)
10
+
11
+ {
12
+ "payload" => Base64.urlsafe_encode64(payload),
13
+ "signatures" => [
14
+ {
15
+ "protected" => protected_header,
16
+ "signature" => build_signature(jwk, header, payload),
17
+ },
18
+ ],
19
+ }
20
+ end
21
+ end
@@ -0,0 +1,27 @@
1
+ require "base64"
2
+ require "json"
3
+ require "jose"
4
+
5
+ module JsonJws::Sign
6
+ def build_signature(jwk, header, payload)
7
+ payload = payload.to_json unless payload.is_a?(String)
8
+ raise "header must be a Hash" unless header.is_a?(Hash)
9
+
10
+ encoded_payload = Base64.urlsafe_encode64(payload)
11
+ encoded_header = Base64.urlsafe_encode64(header.to_json)
12
+
13
+ JOSE::JWS.sign(jwk, payload, header).to_hash["signature"]
14
+ end
15
+
16
+ def add_signature(jws, jwk, header, payload)
17
+ protected_header = Base64.urlsafe_encode64(header.to_json)
18
+ payload = payload.to_json unless payload.is_a?(String)
19
+
20
+ jws["signatures"] << {
21
+ "protected" => protected_header,
22
+ "signature" => build_signature(jwk, header, payload),
23
+ }
24
+
25
+ jws
26
+ end
27
+ end
@@ -0,0 +1,31 @@
1
+ require "base64"
2
+ require "json"
3
+ require "jose"
4
+
5
+ module JsonJws::Verify
6
+ def verify_signature(jwk, b64_payload, jws_json_signature)
7
+ verify_hash = {
8
+ "payload" => b64_payload,
9
+ "protected" => jws_json_signature["protected"],
10
+ "signature" => jws_json_signature["signature"],
11
+ }
12
+
13
+ JOSE::JWS.verify(jwk, verify_hash).first
14
+ end
15
+
16
+ def verify(jws, jwks)
17
+
18
+ # verify payload is base64 encoded
19
+ begin
20
+ Base64.urlsafe_decode64(jws["payload"])
21
+ rescue
22
+ return false
23
+ end
24
+
25
+ jws["signatures"].each_with_index do |signature, index|
26
+ return false unless verify_signature(jwks[index], jws["payload"], signature)
27
+ end
28
+
29
+ true
30
+ end
31
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module JsonJws
4
+ VERSION = "0.1.0"
5
+ end
data/lib/json_jws.rb ADDED
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "json_jws/version"
4
+ require_relative "json_jws/encode"
5
+ require_relative "json_jws/decode"
6
+ require_relative "json_jws/sign"
7
+ require_relative "json_jws/verify"
8
+
9
+ module JSON_JWS
10
+ class Error < StandardError; end
11
+
12
+ extend JsonJws::Encode
13
+ extend JsonJws::Decode
14
+ extend JsonJws::Sign
15
+ extend JsonJws::Verify
16
+
17
+ class << self
18
+ end
19
+ end
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: json_jws
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Thien Tran
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-06-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: byebug
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 11.1.3
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 11.1.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: jose
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: json
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.7.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.7.2
55
+ description: JSON JWS with multiple signatures
56
+ email:
57
+ - webmaster3t@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".github/workflows/main.yml"
63
+ - ".gitignore"
64
+ - CHANGELOG.md
65
+ - CODE_OF_CONDUCT.md
66
+ - Gemfile
67
+ - Gemfile.lock
68
+ - LICENSE.txt
69
+ - README.md
70
+ - Rakefile
71
+ - bin/console
72
+ - bin/setup
73
+ - json_jws.gemspec
74
+ - lib/json_jws.rb
75
+ - lib/json_jws/decode.rb
76
+ - lib/json_jws/encode.rb
77
+ - lib/json_jws/sign.rb
78
+ - lib/json_jws/verify.rb
79
+ - lib/json_jws/version.rb
80
+ homepage: https://github.com/thien0291/json_jws
81
+ licenses:
82
+ - MIT
83
+ metadata:
84
+ allowed_push_host: https://rubygems.org/
85
+ homepage_uri: https://github.com/thien0291/json_jws
86
+ source_code_uri: https://github.com/thien0291/json_jws
87
+ changelog_uri: https://github.com/thien0291/json_jws/releases
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 2.4.0
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ requirements: []
103
+ rubygems_version: 3.2.22
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: JSON JWS with multiple signatures
107
+ test_files: []