graphql_authorizer 0.2.3

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: a79727d7ea8ff49e3eb31fbbcc541bb8fd2164de161567795228c27dcaf87927
4
+ data.tar.gz: bc5eb0b7d34ca471d701bd3478859768119ff356c82ffb4b82db3235f2e133c6
5
+ SHA512:
6
+ metadata.gz: 573aed5515a38966eb96dc340b234d11655f5bada949609b6b19b72dbef41a15d6da8623cbac7e8d259302c71d56cf01838d4baa82990d35cd9fb024837212a9
7
+ data.tar.gz: a636bf02ba9120683d6c514cc44c400c491ab68c709b3383ad8fbc05ba3998bf680ec8d3d936183d6702ca34f8369a685681300f6807edb4c539ce5b29d3330a
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.5.0
5
+ before_install: gem install bundler -v 1.16.2
@@ -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 redjoker011@gmail.com. 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 [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,48 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ graphql_authorizer (0.2.2)
5
+ activesupport (~> 5.1.3, >= 5.1.3)
6
+ openssl (~> 2.1.1, >= 2.1.1)
7
+ rack-attack (~> 5.4)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ activesupport (5.1.6)
13
+ concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ i18n (>= 0.7, < 2)
15
+ minitest (~> 5.1)
16
+ tzinfo (~> 1.1)
17
+ awesome_print (1.8.0)
18
+ coderay (1.1.2)
19
+ concurrent-ruby (1.0.5)
20
+ i18n (1.1.0)
21
+ concurrent-ruby (~> 1.0)
22
+ method_source (0.9.0)
23
+ minitest (5.11.3)
24
+ openssl (2.1.1)
25
+ pry (0.11.3)
26
+ coderay (~> 1.1.0)
27
+ method_source (~> 0.9.0)
28
+ rack (2.0.5)
29
+ rack-attack (5.4.0)
30
+ rack (>= 1.0, < 3)
31
+ rake (10.5.0)
32
+ thread_safe (0.3.6)
33
+ tzinfo (1.2.5)
34
+ thread_safe (~> 0.1)
35
+
36
+ PLATFORMS
37
+ ruby
38
+
39
+ DEPENDENCIES
40
+ awesome_print (~> 1.8.0, >= 1.8.0)
41
+ bundler (~> 1.16)
42
+ graphql_authorizer!
43
+ minitest (~> 5.0)
44
+ pry (~> 0.11.3, >= 0.11.3)
45
+ rake (~> 10.0)
46
+
47
+ BUNDLED WITH
48
+ 1.16.2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Peter John Alvarado
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,43 @@
1
+ # GraphQLAuthorizer
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/GraphQL_Authorizer`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'GraphQL_Authorizer'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install GraphQL_Authorizer
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ 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.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/GraphQL_Authorizer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the GraphQLAuthorizer project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/GraphQL_Authorizer/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "graphql_authorizer"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ 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
@@ -0,0 +1,36 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "graphql_authorizer/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "graphql_authorizer"
7
+ spec.version = GraphQLAuthorizer::VERSION
8
+ spec.authors = ["Peter John Alvarado"]
9
+ spec.email = ["redjoker011@gmail.com"]
10
+
11
+ spec.summary = "GraphQL_Authorizer provides simple authorization for"\
12
+ "GraphQL endpoints."
13
+ spec.description = "GraphQL_Authorizer is built on top of Rack-Attack Gem to provide"\
14
+ " simple authorization when accessing a grpahql endpoint."
15
+ spec.homepage = "https://www.gorated.ph"
16
+ spec.license = "MIT"
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
21
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ end
23
+ spec.bindir = "exe"
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ["lib"]
26
+
27
+ spec.add_dependency "rack-attack", "~> 5.4"
28
+ spec.add_dependency "openssl", "~> 2.1.1", ">= 2.1.1"
29
+ spec.add_dependency "activesupport", "~> 5.1.3", ">= 5.1.3"
30
+
31
+ spec.add_development_dependency "bundler", "~> 1.16"
32
+ spec.add_development_dependency "rake", "~> 10.0"
33
+ spec.add_development_dependency "minitest", "~> 5.0"
34
+ spec.add_development_dependency "awesome_print", "~> 1.8.0", ">= 1.8.0"
35
+ spec.add_development_dependency "pry", "~> 0.11.3", ">= 0.11.3"
36
+ end
@@ -0,0 +1,5 @@
1
+ module GraphQAuthorizer
2
+ module Errors
3
+ class Configuration < StandardError; end
4
+ end
5
+ end
@@ -0,0 +1,32 @@
1
+ require "rails/generators/base"
2
+ require_relative "core"
3
+
4
+ module Generators
5
+ module GraphQLAuthorizer
6
+ # Add GraphQLAuthorizer to a Rails app with `rails g graphql_authorizer:install`.
7
+ #
8
+ # Setup a initializer file Rack Attack and GraphQLAuhtorizer
9
+ #
10
+ # ```
11
+ # - app/
12
+ # - config/
13
+ # - initializers/
14
+ # - rack_attack.rb
15
+ # - graphql_authorizer.rb
16
+ # ```
17
+ class InstallGenerator < Rails::Generators::Base
18
+ desc "Copy Rack Attack Template into App's Initializer"
19
+ source_root File.expand_path('/templates', __FILE__)
20
+
21
+ def copy_rack_attack_template
22
+ file = "rack_attack.rb"
23
+ template(file, "config/initializers/#{file}")
24
+ end
25
+
26
+ def copy_graphql_authorizer_template
27
+ file = "graphql_authorizer.rb"
28
+ template(file, "config/initializers/#{file}")
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,3 @@
1
+ GraphQLAuhtorizer.configure do |config|
2
+ config.access_key = "TODO: Supply Shared Access Key"
3
+ end
@@ -0,0 +1,76 @@
1
+ class Rack::Attack
2
+ ### Allow Localhost ###
3
+ # Always allow requests from localhost
4
+ # (blocklist & throttles are skipped)
5
+ safelist("allow from localhost") do |req|
6
+ # Allow Access from localhost
7
+ req.ip == "127.0.0.1" || req.ip == "::1"
8
+ end
9
+
10
+ blocklist("check authorization") do |req|
11
+ graphiql_token = ENV.fetch("GRAPHIQL_TOKEN")
12
+ is_graphiql_request = req.env["HTTP_GRAPHIQL_TOKEN"] == graphiql_token
13
+ next if !req.path.start_with?("/graphql") || is_graphiql_request
14
+ request_validator = GraphQLAuthorizer::Request.new(
15
+ sig: req.env["HTTP_SIGNATURE"], # replace with Signature Header
16
+ timestamp: req.env["HTTP_TIMESTAMP"] # replace with Time Stamp Header
17
+ )
18
+ next if request_validator.valid?
19
+ error_message = request_validator.errors.to_sentence
20
+ self.blocklisted_response = lambda do |_env|
21
+ [
22
+ 401,
23
+ { "Content-Type" => "application/json" },
24
+ [{ errors: [{ message: error_message }] }.to_json]
25
+ ]
26
+ end
27
+ end
28
+
29
+ ### Throttle Spammy Clients ###
30
+
31
+ # If any single client IP is making tons of requests, then they"re
32
+ # probably malicious or a poorly-configured scraper. Either way, they
33
+ # don"t deserve to hog all of the app server"s CPU. Cut them off!
34
+ #
35
+ # Note: If you"re serving assets through rack, those requests may be
36
+ # counted by rack-attack and this throttle may be activated too
37
+ # quickly. If so, enable the condition to exclude them from tracking.
38
+
39
+ # Throttle all requests by IP (60rpm)
40
+ #
41
+ # Key: "rack::attack:#{Time.now.to_i/:period}:req/ip:#{req.ip}"
42
+ throttle("req/ip", limit: 300, period: 5.minutes) do |req|
43
+ req.ip unless req.path.start_with?("/assets")
44
+ end
45
+
46
+ ### Prevent Brute-Force Login Attacks ###
47
+
48
+ # The most common brute-force login attack is a brute-force password
49
+ # attack where an attacker simply tries a large number of emails and
50
+ # passwords to see if any credentials match.
51
+ #
52
+ # Another common method of attack is to use a swarm of computers with
53
+ # different IPs to try brute-forcing a password for a specific account.
54
+
55
+ # Throttle POST requests to /login by IP address
56
+ #
57
+ # Key: "rack::attack:#{Time.now.to_i/:period}:logins/ip:#{req.ip}"
58
+ throttle("cms login throttle ip", limit: 5, period: 20.seconds) do |req|
59
+ req.ip if req.path == "users/sign_in" && req.post?
60
+ end
61
+
62
+ # Throttle POST requests to /login by email param
63
+ #
64
+ # Key: "rack::attack:#{Time.now.to_i/:period}:logins/email:#{req.email}"
65
+ #
66
+ # Note: This creates a problem where a malicious user could intentionally
67
+ # throttle logins for another user and force their login requests to be
68
+ # denied, but that"s not very common and shouldn"t happen to you. (Knock
69
+ # on wood!)
70
+ throttle("cms login throttle email", limit: 5, period: 20.seconds) do |req|
71
+ if req.path == "users/sign_in" && req.post?
72
+ # return the email if present, nil otherwise
73
+ req.params["email"].presence
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,15 @@
1
+ module GraphQLAuthorizer
2
+ # Configuration Class
3
+ class Configuration
4
+ attr_writer :access_key
5
+
6
+ def initialize
7
+ @access_key = nil
8
+ end
9
+
10
+ def access_key
11
+ raise Errors::Configuration, "access key missing!" unless @access_key
12
+ @access_key
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,36 @@
1
+ require "active_support/core_ext/array/conversions"
2
+ require_relative "validator/signature"
3
+ require_relative "validator/timestamp"
4
+
5
+ module GraphQLAuthorizer
6
+ class Request
7
+ attr_accessor :errors
8
+
9
+ include GraphQLAuthorizer::Validator::Signature
10
+ include GraphQLAuthorizer::Validator::Timestamp
11
+
12
+ def initialize(sig:, timestamp:)
13
+ @sig = sig
14
+ @timestamp = timestamp
15
+ @errors = []
16
+ end
17
+
18
+ def valid?
19
+ valid_sig = request_signature_is_valid?(sig: @sig, timestamp: @timestamp)
20
+ @errors << invalid_signature unless valid_sig
21
+ valid_timestamp = request_timestamp_is_valid?(timestamp: @timestamp)
22
+ @errors << invalid_timestamp unless valid_timestamp
23
+ valid_sig && valid_timestamp
24
+ end
25
+
26
+ private
27
+
28
+ def invalid_signature
29
+ "Invalid Signature!"
30
+ end
31
+
32
+ def invalid_timestamp
33
+ "Invalid Timestamp!"
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,28 @@
1
+ require "openssl"
2
+
3
+ module GraphQLAuthorizer
4
+ module Validator
5
+ # Module for Validating Signature
6
+ module Signature
7
+ def request_signature_is_valid?(sig:, timestamp:)
8
+ access_key = GraphQLAuthorizer.configuration.access_key
9
+ digest = OpenSSL::Digest.new("sha256")
10
+ generated_sig = OpenSSL::HMAC.hexdigest(digest, access_key, timestamp)
11
+
12
+ secure_compare(generated_sig, sig)
13
+ end
14
+
15
+ private
16
+
17
+ # http://www.rubydoc.info/github/plataformatec/devise/Devise.secure_compare
18
+ def secure_compare(a, b)
19
+ return false if a.empty? || b.empty? || a.bytesize != b.bytesize
20
+ l = a.unpack "C#{a.bytesize}"
21
+
22
+ res = 0
23
+ b.each_byte { |byte| res |= byte ^ l.shift }
24
+ res == 0
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,19 @@
1
+ module GraphQLAuthorizer
2
+ module Validator
3
+ # Module for Validating Time Stamp
4
+ module Timestamp
5
+ def request_timestamp_is_valid?(timestamp:)
6
+ current_time = Time.now
7
+ request_time = Time.at(timestamp.to_i)
8
+ one_minute = 60
9
+ time_difference_in_minutes = ((current_time - request_time) / one_minute)
10
+ .round
11
+ .abs # Get absolute Value
12
+
13
+ # Check if request is received within a minute
14
+ # the request has been sent from client
15
+ time_difference_in_minutes < 1
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,3 @@
1
+ module GraphQLAuthorizer
2
+ VERSION = "0.2.3".freeze
3
+ end
@@ -0,0 +1,19 @@
1
+ require_relative "graphql_authorizer/version"
2
+ require_relative "graphql_authorizer/configuration"
3
+ require_relative "graphql_authorizer/request"
4
+
5
+ # Main Module
6
+ module GraphQLAuthorizer
7
+ class << self
8
+ # We want to extend app configuration by requiring User's to provide
9
+ # a block in application's initializer.
10
+ # http://lizabinante.com/blog/creating-a-configurable-ruby-gem/
11
+ # https://robots.thoughtbot.com/mygem-configure-block
12
+ attr_accessor :configuration
13
+ end
14
+
15
+ def self.configure
16
+ self.configuration ||= Configuration.new
17
+ yield(configuration)
18
+ end
19
+ end
metadata ADDED
@@ -0,0 +1,202 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: graphql_authorizer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.3
5
+ platform: ruby
6
+ authors:
7
+ - Peter John Alvarado
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-09-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rack-attack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '5.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: openssl
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.1.1
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 2.1.1
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: 2.1.1
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 2.1.1
47
+ - !ruby/object:Gem::Dependency
48
+ name: activesupport
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: 5.1.3
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 5.1.3
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: 5.1.3
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 5.1.3
67
+ - !ruby/object:Gem::Dependency
68
+ name: bundler
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '1.16'
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '1.16'
81
+ - !ruby/object:Gem::Dependency
82
+ name: rake
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '10.0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '10.0'
95
+ - !ruby/object:Gem::Dependency
96
+ name: minitest
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '5.0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '5.0'
109
+ - !ruby/object:Gem::Dependency
110
+ name: awesome_print
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: 1.8.0
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: 1.8.0
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: 1.8.0
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: 1.8.0
129
+ - !ruby/object:Gem::Dependency
130
+ name: pry
131
+ requirement: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - "~>"
134
+ - !ruby/object:Gem::Version
135
+ version: 0.11.3
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: 0.11.3
139
+ type: :development
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.11.3
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: 0.11.3
149
+ description: GraphQL_Authorizer is built on top of Rack-Attack Gem to provide simple
150
+ authorization when accessing a grpahql endpoint.
151
+ email:
152
+ - redjoker011@gmail.com
153
+ executables: []
154
+ extensions: []
155
+ extra_rdoc_files: []
156
+ files:
157
+ - ".gitignore"
158
+ - ".travis.yml"
159
+ - CODE_OF_CONDUCT.md
160
+ - Gemfile
161
+ - Gemfile.lock
162
+ - LICENSE.txt
163
+ - README.md
164
+ - Rakefile
165
+ - bin/console
166
+ - bin/setup
167
+ - graphql_authorizer.gemspec
168
+ - lib/errors/configuration.rb
169
+ - lib/generators/graphql_authorizer/install_generator.rb
170
+ - lib/generators/graphql_authorizer/templates/graphql_authorization.rb
171
+ - lib/generators/graphql_authorizer/templates/rack_attack.rb
172
+ - lib/graphql_authorizer.rb
173
+ - lib/graphql_authorizer/configuration.rb
174
+ - lib/graphql_authorizer/request.rb
175
+ - lib/graphql_authorizer/validator/signature.rb
176
+ - lib/graphql_authorizer/validator/timestamp.rb
177
+ - lib/graphql_authorizer/version.rb
178
+ homepage: https://www.gorated.ph
179
+ licenses:
180
+ - MIT
181
+ metadata: {}
182
+ post_install_message:
183
+ rdoc_options: []
184
+ require_paths:
185
+ - lib
186
+ required_ruby_version: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
191
+ required_rubygems_version: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ requirements: []
197
+ rubyforge_project:
198
+ rubygems_version: 2.7.3
199
+ signing_key:
200
+ specification_version: 4
201
+ summary: GraphQL_Authorizer provides simple authorization forGraphQL endpoints.
202
+ test_files: []