ripple_token 0.1.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c2c8ced1eec1151d4485a3614d3876b9a8941bbf5bad79f05919c1876d067f7c
4
+ data.tar.gz: 34f24e9079b2c04e436d4482d8aa0409f4793b002eae580404ac6ed579eadcb2
5
+ SHA512:
6
+ metadata.gz: 72c955c3fe7d11d8e92663677099ed8319e46f12955fb2e2672a54d66f7b8a00dbaad6a615efe1353deb7cc69156372f3c95df4418f2c095b9d268ac89f6a48a
7
+ data.tar.gz: 1569009de54f65d7c37cf9c3abf2edf38f06aae6f691bcdc5dbcf17f89af7ed075bcca0814eb5d1b687150b2dec0ac63363328c8237c9e18101b9d4e4d56a159
@@ -0,0 +1,29 @@
1
+ name: Ruby Gem
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ jobs:
9
+ build:
10
+ name: Build + Publish
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - name: Set up Ruby 2.7.1
16
+ uses: actions/setup-ruby@v1
17
+ with:
18
+ ruby-version: 2.7.1
19
+
20
+ - name: Publish to RubyGems
21
+ run: |
22
+ mkdir -p $HOME/.gem
23
+ touch $HOME/.gem/credentials
24
+ chmod 0600 $HOME/.gem/credentials
25
+ printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
26
+ gem build *.gemspec
27
+ gem push *.gem
28
+ env:
29
+ RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
@@ -0,0 +1,34 @@
1
+ name: Lint and test
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ build:
11
+ name: Lint + Test
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Set up Ruby 2.7.1
17
+ uses: actions/setup-ruby@v1
18
+ with:
19
+ ruby-version: 2.7.1
20
+ - name: Restore cache
21
+ uses: actions/cache@v2
22
+ with:
23
+ path: vendor/bundle
24
+ key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
25
+ restore-keys: |
26
+ ${{ runner.os }}-gems-
27
+ - name: Install dependencies
28
+ run: |
29
+ bundle config path vendor/bundle
30
+ bundle install --jobs 4 --retry 3
31
+ - name: Run Rubocop
32
+ run: bundle exec rubocop
33
+ - name: Run rspec
34
+ run: bundle exec rspec
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ Gemfile.lock
13
+
14
+ *.gem
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --require spec_helper
@@ -0,0 +1,41 @@
1
+ Layout/EmptyLinesAroundAttributeAccessor:
2
+ Enabled: true
3
+ Layout/SpaceAroundMethodCallOperator:
4
+ Enabled: true
5
+ Lint/DeprecatedOpenSSLConstant:
6
+ Enabled: true
7
+ Lint/MixedRegexpCaptureTypes:
8
+ Enabled: true
9
+ Lint/RaiseException:
10
+ Enabled: true
11
+ Lint/StructNewOverride:
12
+ Enabled: true
13
+ Style/ExponentialNotation:
14
+ Enabled: true
15
+ Style/HashEachMethods:
16
+ Enabled: true
17
+ Style/HashTransformKeys:
18
+ Enabled: true
19
+ Style/HashTransformValues:
20
+ Enabled: true
21
+ Style/RedundantRegexpCharacterClass:
22
+ Enabled: true
23
+ Style/RedundantRegexpEscape:
24
+ Enabled: true
25
+ Style/SlicingWithRange:
26
+ Enabled: true
27
+
28
+ Style/Documentation:
29
+ Enabled: false
30
+
31
+ Metrics/BlockLength:
32
+ Exclude:
33
+ - spec/**/**
34
+
35
+ AllCops:
36
+ Exclude:
37
+ - bin/**
38
+ - vendor/**/**
39
+
40
+ Lint/ScriptPermission:
41
+ Enabled: false
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at ollie@nyemail.co.uk. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in ripple_token.gemspec
6
+ gemspec
7
+
8
+ gem 'rake', '~> 12.0'
9
+ gem 'rspec', '~> 3.0'
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Hex Event Solutions Limited
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.
@@ -0,0 +1,85 @@
1
+ # Ripple Token
2
+
3
+ ![Lint and test](https://github.com/hex-event-solutions/ripple_token/workflows/Lint%20and%20test/badge.svg)
4
+
5
+ Validates supplied JWT tokens against Keycloak's public key
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'ripple_token'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install ripple_token
22
+
23
+ ## Usage
24
+
25
+ The client must be configured before usage
26
+
27
+ ```ruby
28
+ RippleKeycloak::Client.configure do |c|
29
+ c.base_url = <keycloak_url>
30
+ c.realm = <keycloak_realm>
31
+ c.client_id = <client_id>
32
+ c.client_secret = <client_secret>
33
+ end
34
+ ```
35
+
36
+ The supplied client must be of 'confidential' type, and allow service account login.
37
+
38
+ After configuring, use the supplied interfaces to query, create, update or delete resources in Keycloak.
39
+
40
+ ### Standard methods
41
+
42
+ The below methods are available on `RippleKeycloak::User`, `RippleKeycloak::Group` and `RippleKeycloak::Role`.
43
+
44
+ - find(id) - returns the resource with the given id
45
+ - find_by(field:, value:) - searches the resource type for an exact match against field and value
46
+ - search(value) - searches the resource type for a match in any field
47
+ - all - returns all resources
48
+ - delete(id) - deletes the resource with the given id
49
+
50
+ ### RippleKeycloak::User
51
+
52
+ - create(payload) - posts given payload to user create
53
+ - add_to_group(user_id, group_id) - adds given user to given group
54
+ - remove_from_group(user_id, group_id) - removes given user from given group
55
+ - add_role(user_id, role_name) - adds given role to user
56
+ - remove_role(user_id, role_name) - removes given role from user
57
+
58
+ ### RippleKeycloak::Group
59
+
60
+ - create(name:, parent: false) - creates a group with the given name, optionally under the given parent
61
+ - add_role(group_id, role_name) - adds given role to group
62
+ - remove_role(group_id, role_name) - removes given role from group
63
+
64
+ ### RippleKeycloak::Role
65
+
66
+ - create(name:) - creates a role with the given name
67
+
68
+ ## Development
69
+
70
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
71
+
72
+ 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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
73
+
74
+ ## Contributing
75
+
76
+ Bug reports and pull requests are welcome on GitHub at https://github.com/hex-event-solutions/ripple_keycloak. 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/hex-event-solutions/ripple_keycloak/blob/master/CODE_OF_CONDUCT.md).
77
+
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 RippleKeycloak project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hex-event-solutions/ripple_keycloak/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'ripple_token'
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
+ IRB.start(__FILE__)
@@ -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
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'jwt'
4
+
5
+ require 'ripple_token/version'
6
+ require 'ripple_token/client'
7
+ require 'ripple_token/middleware'
8
+ require 'ripple_token/token'
9
+ require 'ripple_token/railtie' if defined?(Rails)
10
+
11
+ module RippleToken
12
+ class Error < StandardError; end
13
+ class ExpiredTokenError < Error; end
14
+ class TokenDecodeError < Error; end
15
+ class MissingTokenError < Error; end
16
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'httparty'
4
+ require 'json'
5
+ require 'active_support/core_ext/module/delegation'
6
+
7
+ require 'ripple_token/configuration'
8
+
9
+ module RippleToken
10
+ class Client
11
+ include HTTParty
12
+
13
+ class << self
14
+ delegate :public_paths, to: :configuration
15
+
16
+ def configure
17
+ @configuration = Configuration.new
18
+ yield(configuration)
19
+ fetch_public_key
20
+ 'Public key retrieved successfully'
21
+ end
22
+
23
+ def public_key
24
+ fetch_public_key if (last_update_at + public_key_ttl) < Time.now
25
+
26
+ @public_key
27
+ end
28
+
29
+ private
30
+
31
+ delegate :base_url, :realm, :public_key_ttl, to: :configuration
32
+
33
+ attr_accessor :last_update_at, :configuration
34
+
35
+ def fetch_public_key
36
+ response = get("#{base_url}/auth/realms/#{realm}")
37
+ raw_public_key = "-----BEGIN PUBLIC KEY-----\n" \
38
+ "#{response['public_key']}\n" \
39
+ '-----END PUBLIC KEY-----'
40
+ @public_key = OpenSSL::PKey::RSA.new raw_public_key
41
+ @last_update_at = Time.now
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RippleToken
4
+ class Configuration
5
+ attr_accessor :base_url,
6
+ :realm,
7
+ :public_key_ttl,
8
+ :public_paths
9
+ end
10
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RippleToken
4
+ class Middleware
5
+ def initialize(app)
6
+ @app = app
7
+ end
8
+
9
+ def call(env)
10
+ dup._call env
11
+ end
12
+
13
+ def _call(env)
14
+ method = env['REQUEST_METHOD']
15
+ path = env['PATH_INFO']
16
+
17
+ unless token.public_path? method, path
18
+ encoded_token = env['HTTP_AUTHORIZATION']&.gsub(/^Bearer /, '') || ''
19
+ decoded_token = token.decode(encoded_token)
20
+ store_user_details(decoded_token, env)
21
+ end
22
+ @app.call(env)
23
+ end
24
+
25
+ private
26
+
27
+ def store_user_details(decoded_token, env)
28
+ env['keycloak.token'] = decoded_token
29
+ env['keycloak.user_id'] = decoded_token['sub']
30
+ env['keycloak.user_roles'] = decoded_token['realm_access']['roles']
31
+ env['keycloak.user_email'] = decoded_token['email']
32
+ env['keycloak.user_name'] = decoded_token['name']
33
+ env['keycloak.user_first_name'] = decoded_token['given_name']
34
+ env['keycloak.user_last_name'] = decoded_token['family_name']
35
+ env['keycloak.user_phone'] = decoded_token['phone']
36
+ env['keycloak.user_email_verified'] = decoded_token['email_verified']
37
+ env['keycloak.user_groups'] = decoded_token['groups']
38
+ end
39
+
40
+ def token
41
+ Token.new(Client.public_key)
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RippleToken
4
+ class Railtie < Rails::Railtie
5
+ railtie_name :ripple_token
6
+
7
+ initializer 'ripple_token.insert_middleware' do |app|
8
+ app.config.middleware.use(RippleToken::Middleware)
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RippleToken
4
+ class Token
5
+ def initialize(public_key)
6
+ @public_key = public_key
7
+ end
8
+
9
+ def decode(token)
10
+ raise MissingTokenError if token.nil? || token&.empty?
11
+
12
+ begin
13
+ decoded_token = JWT.decode(token, public_key, true, { algorithm: 'RS256' })[0]
14
+ raise ExpiredTokenError if expired? decoded_token
15
+
16
+ decoded_token
17
+ rescue JWT::DecodeError => e
18
+ raise TokenDecodeError, e.message
19
+ rescue JWT::ExpiredSignature => e
20
+ raise ExpiredTokenError, e.message
21
+ end
22
+ end
23
+
24
+ def public_path?(method, path)
25
+ return false if Client.public_paths.nil? || Client.public_paths.empty?
26
+
27
+ return true if Client.public_paths[method]&.include? path
28
+
29
+ false
30
+ end
31
+
32
+ private
33
+
34
+ attr_reader :public_key
35
+
36
+ def expired?(token)
37
+ expiration = Time.at(token['exp'])
38
+ expiration < Time.now
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RippleToken
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require_relative 'lib/ripple_token/version'
5
+ puts RippleToken::VERSION
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/ripple_token/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'ripple_token'
7
+ spec.version = RippleToken::VERSION
8
+ spec.authors = ['Hex Event Solutions Limited']
9
+ spec.email = ['ruby@hexes.co.uk']
10
+
11
+ spec.summary = 'Keycloak token validator'
12
+ spec.homepage = 'https://rubygems.org/gems/ripple_token'
13
+ spec.license = 'MIT'
14
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
15
+
16
+ spec.metadata['homepage_uri'] = spec.homepage
17
+ spec.metadata['source_code_uri'] = 'https://github.com/hex-event-solutions/ripple_token'
18
+
19
+ # Specify which files should be added to the gem when it is released.
20
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
+ end
24
+ spec.bindir = 'exe'
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ['lib']
27
+
28
+ spec.add_dependency('activesupport', '6.0.3.1')
29
+ spec.add_dependency('httparty', '0.18.1')
30
+ spec.add_dependency('jwt', '2.2.1')
31
+
32
+ spec.add_development_dependency('rspec', '3.9.0')
33
+ spec.add_development_dependency('rubocop', '0.85.1')
34
+ end
metadata ADDED
@@ -0,0 +1,136 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ripple_token
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Hex Event Solutions Limited
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-06-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 6.0.3.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 6.0.3.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: httparty
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.18.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.18.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: jwt
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 2.2.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 2.2.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 3.9.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 3.9.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 0.85.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 0.85.1
83
+ description:
84
+ email:
85
+ - ruby@hexes.co.uk
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".github/workflows/gem-push.yml"
91
+ - ".github/workflows/lint-and-test.yml"
92
+ - ".gitignore"
93
+ - ".rspec"
94
+ - ".rubocop.yml"
95
+ - CODE_OF_CONDUCT.md
96
+ - Gemfile
97
+ - LICENSE.txt
98
+ - README.md
99
+ - Rakefile
100
+ - bin/console
101
+ - bin/setup
102
+ - lib/ripple_token.rb
103
+ - lib/ripple_token/client.rb
104
+ - lib/ripple_token/configuration.rb
105
+ - lib/ripple_token/middleware.rb
106
+ - lib/ripple_token/railtie.rb
107
+ - lib/ripple_token/token.rb
108
+ - lib/ripple_token/version.rb
109
+ - print_version.rb
110
+ - ripple_token.gemspec
111
+ homepage: https://rubygems.org/gems/ripple_token
112
+ licenses:
113
+ - MIT
114
+ metadata:
115
+ homepage_uri: https://rubygems.org/gems/ripple_token
116
+ source_code_uri: https://github.com/hex-event-solutions/ripple_token
117
+ post_install_message:
118
+ rdoc_options: []
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: 2.7.0
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ requirements: []
132
+ rubygems_version: 3.1.2
133
+ signing_key:
134
+ specification_version: 4
135
+ summary: Keycloak token validator
136
+ test_files: []