graphql_authorize 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: f640cc20c98719bba5885846cc907f328b135cb182a91071b84b82926eb8a71b
4
+ data.tar.gz: f2ad27f631017079a4383f051a1b0f22f3eedc8b1a01ef8e1dbd63c60d1956d9
5
+ SHA512:
6
+ metadata.gz: 4f17dbd13315bb98e9220c21958459f5232e34bc17c8b6786ab4209880ff2eb6efbb49748fd0818ac8eaf54c72a295af07726b1bfa9728f75331cd5eba66b47d
7
+ data.tar.gz: 143d2a7ddbe7b135cdbeae52c5efd9903e320350d0cc53bd0f583ea1cac9e3398f5b54c5d112f28723c366b0e6ef3520f1d6718554c808ad5f1a3a5ee44a9878
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/.rubocop.yml ADDED
@@ -0,0 +1,25 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.5
3
+ Include:
4
+ - 'lib/**/*.rb'
5
+ - 'spec/**/*.rb'
6
+ Exclude:
7
+ - 'bin/**/*'
8
+ - 'vendor/**/*'
9
+ - 'gemfiles/**/*.gemfile'
10
+ - 'Rakefile'
11
+ - 'Gemfile'
12
+ - '*.gemspec'
13
+
14
+ Documentation:
15
+ Enabled: false
16
+
17
+ Style/StringLiterals:
18
+ EnforcedStyle: double_quotes
19
+
20
+ Metrics/LineLength:
21
+ Max: 100
22
+
23
+ Metrics/BlockLength:
24
+ Exclude:
25
+ - 'spec/**/*.rb'
data/.travis.yml ADDED
@@ -0,0 +1,25 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.5.1
4
+
5
+ notifications:
6
+ email: false
7
+
8
+ matrix:
9
+ fast_finish: true
10
+ include:
11
+ - rvm: ruby-head
12
+ gemfile: gemfiles/graphql-1.8.gemfile
13
+ - rvm: 2.5.0
14
+ gemfile: gemfiles/graphql-1.8.gemfile
15
+ - rvm: 2.4.3
16
+ gemfile: gemfiles/graphql-1.7.gemfile
17
+ - rvm: 2.3.1
18
+ gemfile: gemfiles/graphql-1.6.gemfile
19
+ allow_failures:
20
+ - rvm: ruby-head
21
+ gemfile: gemfiles/graphql-1.8.gemfile
22
+ - rvm: 2.5.0
23
+ gemfile: gemfiles/graphql-1.8.gemfile
24
+ - rvm: 2.4.3
25
+ gemfile: gemfiles/graphql-1.7.gemfile
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in graphql_authorize.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,73 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ graphql_authorize (0.1.0)
5
+ graphql (= 1.6)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activesupport (5.2.1)
11
+ concurrent-ruby (~> 1.0, >= 1.0.2)
12
+ i18n (>= 0.7, < 2)
13
+ minitest (~> 5.1)
14
+ tzinfo (~> 1.1)
15
+ ast (2.4.0)
16
+ cancancan (2.2.0)
17
+ concurrent-ruby (1.0.5)
18
+ diff-lcs (1.3)
19
+ graphql (1.6.0)
20
+ i18n (1.1.0)
21
+ concurrent-ruby (~> 1.0)
22
+ jaro_winkler (1.5.1)
23
+ minitest (5.11.3)
24
+ parallel (1.12.1)
25
+ parser (2.5.1.2)
26
+ ast (~> 2.4.0)
27
+ powerpack (0.1.2)
28
+ pundit (2.0.0)
29
+ activesupport (>= 3.0.0)
30
+ rainbow (3.0.0)
31
+ rake (10.5.0)
32
+ rspec (3.8.0)
33
+ rspec-core (~> 3.8.0)
34
+ rspec-expectations (~> 3.8.0)
35
+ rspec-mocks (~> 3.8.0)
36
+ rspec-core (3.8.0)
37
+ rspec-support (~> 3.8.0)
38
+ rspec-expectations (3.8.1)
39
+ diff-lcs (>= 1.2.0, < 2.0)
40
+ rspec-support (~> 3.8.0)
41
+ rspec-mocks (3.8.0)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.8.0)
44
+ rspec-support (3.8.0)
45
+ rubocop (0.58.2)
46
+ jaro_winkler (~> 1.5.1)
47
+ parallel (~> 1.10)
48
+ parser (>= 2.5, != 2.5.1.1)
49
+ powerpack (~> 0.1)
50
+ rainbow (>= 2.2.2, < 4.0)
51
+ ruby-progressbar (~> 1.7)
52
+ unicode-display_width (~> 1.0, >= 1.0.1)
53
+ ruby-progressbar (1.10.0)
54
+ thread_safe (0.3.6)
55
+ tzinfo (1.2.5)
56
+ thread_safe (~> 0.1)
57
+ unicode-display_width (1.4.0)
58
+
59
+ PLATFORMS
60
+ ruby
61
+
62
+ DEPENDENCIES
63
+ activesupport
64
+ bundler (~> 1.16)
65
+ cancancan (~> 2.0)
66
+ graphql_authorize!
67
+ pundit
68
+ rake (~> 10.0)
69
+ rspec
70
+ rubocop
71
+
72
+ BUNDLED WITH
73
+ 1.16.2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 DmitryTsepelev
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,94 @@
1
+ [![Build Status](https://travis-ci.org/anjlab/graphql_authorize.svg?branch=master)](https://travis-ci.org/anjlab/graphql_authorize)
2
+
3
+ # GraphqlAuthorize
4
+
5
+
6
+ This gem allows you to authorize an access to you graphql-fields (defined by [graphql-ruby](https://github.com/rmosolgo/graphql-ruby)). For now, we support only 1.6 version :(
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'graphql_authorize'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install graphql_authorize
23
+
24
+ ## Usage
25
+
26
+ You can define a proc and pass it to `authorize` inside the field block:
27
+
28
+ ```ruby
29
+ field :posts, types[PostType] do
30
+ authorize lambda { |_obj, _args, context|
31
+ current_user = context[:current_user]
32
+ current_user && current_user.admin
33
+ }
34
+
35
+ resolve ->(_obj, _args, _context) { ... }
36
+ end
37
+ ```
38
+
39
+ Don't forget to pass `current_user` to the context when you execute the query, e.g.:
40
+
41
+ ```ruby
42
+ Schema.execute(query, context: { current_user: current_user })
43
+ ```
44
+
45
+ ### CanCanCan
46
+
47
+ If you are using CanCanCan, you can just pass an array with two values - permission to check and a model class:
48
+
49
+ ```ruby
50
+ field :posts, types[PostType] do
51
+ authorize [:read, Post]
52
+ resolve ->(_obj, _args, _context) { ... }
53
+ end
54
+ ```
55
+
56
+ In order to let GraphqlAuthorize know that it should use CanCanCan, please configure it somewhere in your app:
57
+
58
+ ```ruby
59
+ GraphqlAuthorize.config.auth_adapter = GraphqlAuthorize::AuthAdapters::CanCanCan
60
+ ```
61
+
62
+ By default it will try to call `can?` on the module called `Ability` (you have it if you follow the [guide](https://github.com/CanCanCommunity/cancancan/wiki/Defining-Abilities)). However, when you've done it in a different way, you must also configure `auth_adapter_source` - a proc, which will get a current context and will need to return something, which can respond to `can?`:
63
+
64
+ ```ruby
65
+ GraphqlAuthorize.configure do |config|
66
+ config.auth_adapter = GraphqlAuthorize::AuthAdapters::CanCanCan
67
+ config.auth_adapter_source = ->(context) { context[:current_user] }
68
+ end
69
+ ```
70
+
71
+ ### Pundit
72
+
73
+ Pundit integration is very similar with CanCanCan - you should pass an array with two values in a following way:
74
+
75
+ ```ruby
76
+ field :posts, types[PostType] do
77
+ authorize [:read, Post]
78
+ resolve ->(_obj, _args, _context) { ... }
79
+ end
80
+ ```
81
+
82
+ Don't forget to configure GraphqlAuthorize to use the proper adapter:
83
+
84
+ ```ruby
85
+ GraphqlAuthorize.config.auth_adapter = GraphqlAuthorize::AuthAdapters::Pundit
86
+ ```
87
+
88
+ ## Contributing
89
+
90
+ Bug reports and pull requests are welcome on GitHub at https://github.com/anjlab/graphql_authorize.
91
+
92
+ ## License
93
+
94
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+ require "rubocop/rake_task"
4
+
5
+ RSpec::Core::RakeTask.new(:spec)
6
+ RuboCop::RakeTask.new
7
+
8
+ task default: [:rubocop, :spec]
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "graphql_authorize"
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,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "graphql", "1.6"
4
+
5
+ gemspec path: ".."
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "graphql", "1.7"
4
+
5
+ gemspec path: ".."
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "graphql", "1.8"
4
+
5
+ gemspec path: ".."
@@ -0,0 +1,37 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "graphql_authorize/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "graphql_authorize"
8
+ spec.version = GraphqlAuthorize::VERSION
9
+ spec.authors = ["DmitryTsepelev"]
10
+ spec.email = ["dmitry.a.tsepelev@gmail.com"]
11
+
12
+ spec.summary = %q{Auth support for ruby-graphql}
13
+ spec.description = %q{Auth support for ruby-graphql}
14
+ spec.homepage = "https://github.com/anjlab/graphql_authorize"
15
+ spec.license = "MIT"
16
+
17
+ # Specify which files should be added to the gem when it is released.
18
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ end
22
+ spec.bindir = "exe"
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
25
+
26
+ spec.required_ruby_version = ">= 2.3"
27
+
28
+ spec.add_dependency "graphql", "1.6"
29
+
30
+ spec.add_development_dependency "bundler", "~> 1.16"
31
+ spec.add_development_dependency "rake", "~> 10.0"
32
+ spec.add_development_dependency "rspec"
33
+ spec.add_development_dependency "rubocop"
34
+ spec.add_development_dependency "cancancan", "~> 2.0"
35
+ spec.add_development_dependency "pundit"
36
+ spec.add_development_dependency "activesupport"
37
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "graphql"
4
+
5
+ require "graphql_authorize/version"
6
+ require "graphql_authorize/configuration"
7
+ require "graphql_authorize/auth_adapters/base"
8
+ require "graphql_authorize/auth_adapters/can_can_can"
9
+ require "graphql_authorize/auth_adapters/pundit"
10
+ require "graphql_authorize/ext/field"
11
+ require "graphql_authorize/ext/field_resolve_step"
12
+
13
+ module GraphqlAuthorize
14
+ class << self
15
+ def config
16
+ @config ||= Configuration.new
17
+ end
18
+
19
+ def configure
20
+ yield config
21
+ end
22
+ end
23
+
24
+ GraphQL::Field.include(GraphqlAuthorize::Field)
25
+
26
+ GraphQL::Execution::Execute::FieldResolveStep.singleton_class.prepend(
27
+ GraphqlAuthorize::FieldResolveStep
28
+ )
29
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GraphqlAuthorize
4
+ module AuthAdapters
5
+ class Base
6
+ attr_reader :field_definition, :context
7
+
8
+ def initialize(field_definition, context)
9
+ @field_definition = field_definition
10
+ @context = context
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GraphqlAuthorize
4
+ module AuthAdapters
5
+ class CanCanCan < Base
6
+ def authorize
7
+ unless field_definition.authorize.is_a?(Array)
8
+ raise ArgumentError,
9
+ "#authorize arguments should be passed as array, e.g. `authorize [:read, Post]`"
10
+ end
11
+
12
+ unless source.respond_to?(:can?)
13
+ raise ArgumentError,
14
+ "an object returned by #auth_adapter_source call does not respond to #can?"
15
+ end
16
+
17
+ source.can?(*field_definition.authorize)
18
+ end
19
+
20
+ private
21
+
22
+ def auth_adapter_source
23
+ GraphqlAuthorize.config.auth_adapter_source
24
+ end
25
+
26
+ def source
27
+ @source ||=
28
+ if auth_adapter_source
29
+ auth_adapter_source.call(context)
30
+ else
31
+ Ability.new(context[:current_user])
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GraphqlAuthorize
4
+ module AuthAdapters
5
+ class Pundit < Base
6
+ def authorize
7
+ if policy&.respond_to?(pundit_action)
8
+ policy.send(pundit_action)
9
+ else
10
+ false
11
+ end
12
+ end
13
+
14
+ private
15
+
16
+ def policy
17
+ @policy ||= ::Pundit.policy(context[:current_user], subject)
18
+ end
19
+
20
+ def pundit_action
21
+ "#{action}?"
22
+ end
23
+
24
+ def action
25
+ field_definition.authorize.first
26
+ end
27
+
28
+ def subject
29
+ field_definition.authorize.last
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GraphqlAuthorize
4
+ class Configuration
5
+ attr_accessor :auth_adapter_source, :auth_adapter
6
+
7
+ def initialize
8
+ @auth_adapter = nil
9
+ @auth_adapter_source = nil
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GraphqlAuthorize
4
+ module Field
5
+ def self.included(base)
6
+ base.accepts_definitions :authorize
7
+ end
8
+
9
+ attr_accessor :authorize
10
+ end
11
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GraphqlAuthorize
4
+ module FieldResolveStep
5
+ # rubocop:disable Metrics/ParameterLists
6
+ def call(_parent_type, parent_object, field_definition, field_args, context, _next = nil)
7
+ if authorized?(field_definition, parent_object, field_args, context)
8
+ super
9
+ else
10
+ GraphQL::ExecutionError.new("Access to the field '#{field_definition.name}' is denied!")
11
+ end
12
+ rescue StandardError => err
13
+ GraphQL::ExecutionError.new(err.inspect)
14
+ end
15
+ # rubocop:enable Metrics/ParameterLists
16
+
17
+ private
18
+
19
+ def authorized?(field_definition, object, args, context)
20
+ return true if field_definition.authorize.nil?
21
+
22
+ if field_definition.authorize.is_a?(Proc)
23
+ return field_definition.authorize.call(object, args, context)
24
+ end
25
+
26
+ return false if auth_adapter.nil?
27
+
28
+ auth_adapter.new(field_definition, context).authorize
29
+ end
30
+
31
+ def auth_adapter
32
+ GraphqlAuthorize.config.auth_adapter
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GraphqlAuthorize
4
+ VERSION = "0.1.0"
5
+ end
metadata ADDED
@@ -0,0 +1,178 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: graphql_authorize
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - DmitryTsepelev
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-09-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: graphql
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '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'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: cancancan
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pundit
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: activesupport
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: Auth support for ruby-graphql
126
+ email:
127
+ - dmitry.a.tsepelev@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - ".gitignore"
133
+ - ".rubocop.yml"
134
+ - ".travis.yml"
135
+ - Gemfile
136
+ - Gemfile.lock
137
+ - LICENSE.txt
138
+ - README.md
139
+ - Rakefile
140
+ - bin/console
141
+ - bin/setup
142
+ - gemfiles/graphql-1.6.gemfile
143
+ - gemfiles/graphql-1.7.gemfile
144
+ - gemfiles/graphql-1.8.gemfile
145
+ - graphql_authorize.gemspec
146
+ - lib/graphql_authorize.rb
147
+ - lib/graphql_authorize/auth_adapters/base.rb
148
+ - lib/graphql_authorize/auth_adapters/can_can_can.rb
149
+ - lib/graphql_authorize/auth_adapters/pundit.rb
150
+ - lib/graphql_authorize/configuration.rb
151
+ - lib/graphql_authorize/ext/field.rb
152
+ - lib/graphql_authorize/ext/field_resolve_step.rb
153
+ - lib/graphql_authorize/version.rb
154
+ homepage: https://github.com/anjlab/graphql_authorize
155
+ licenses:
156
+ - MIT
157
+ metadata: {}
158
+ post_install_message:
159
+ rdoc_options: []
160
+ require_paths:
161
+ - lib
162
+ required_ruby_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '2.3'
167
+ required_rubygems_version: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - ">="
170
+ - !ruby/object:Gem::Version
171
+ version: '0'
172
+ requirements: []
173
+ rubyforge_project:
174
+ rubygems_version: 2.7.6
175
+ signing_key:
176
+ specification_version: 4
177
+ summary: Auth support for ruby-graphql
178
+ test_files: []