omniauth 2.1.4 → 2.2.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.
metadata CHANGED
@@ -1,11 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
+ - Erik Berlin
7
8
  - Michael Bleigh
8
- - Erik Michaels-Ober
9
+ - Bobby McDonald
9
10
  - Tom Milewski
10
11
  bindir: bin
11
12
  cert_chain: []
@@ -17,107 +18,69 @@ dependencies:
17
18
  requirements:
18
19
  - - ">="
19
20
  - !ruby/object:Gem::Version
20
- version: 3.4.6
21
+ version: 3.5.2
21
22
  type: :runtime
22
23
  prerelease: false
23
24
  version_requirements: !ruby/object:Gem::Requirement
24
25
  requirements:
25
26
  - - ">="
26
27
  - !ruby/object:Gem::Version
27
- version: 3.4.6
28
+ version: 3.5.2
28
29
  - !ruby/object:Gem::Dependency
29
- name: rack
30
+ name: logger
30
31
  requirement: !ruby/object:Gem::Requirement
31
32
  requirements:
32
33
  - - ">="
33
34
  - !ruby/object:Gem::Version
34
- version: 2.2.3
35
+ version: '0'
35
36
  type: :runtime
36
37
  prerelease: false
37
38
  version_requirements: !ruby/object:Gem::Requirement
38
39
  requirements:
39
40
  - - ">="
40
41
  - !ruby/object:Gem::Version
41
- version: 2.2.3
42
- - !ruby/object:Gem::Dependency
43
- name: bundler
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - "~>"
47
- - !ruby/object:Gem::Version
48
- version: '2.0'
49
- type: :development
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - "~>"
54
- - !ruby/object:Gem::Version
55
- version: '2.0'
42
+ version: '0'
56
43
  - !ruby/object:Gem::Dependency
57
- name: rack-protection
44
+ name: rack
58
45
  requirement: !ruby/object:Gem::Requirement
59
46
  requirements:
60
47
  - - ">="
61
48
  - !ruby/object:Gem::Version
62
- version: '0'
49
+ version: 2.2.8
63
50
  type: :runtime
64
51
  prerelease: false
65
52
  version_requirements: !ruby/object:Gem::Requirement
66
53
  requirements:
67
54
  - - ">="
68
55
  - !ruby/object:Gem::Version
69
- version: '0'
56
+ version: 2.2.8
70
57
  - !ruby/object:Gem::Dependency
71
- name: logger
58
+ name: rack-protection
72
59
  requirement: !ruby/object:Gem::Requirement
73
60
  requirements:
74
61
  - - ">="
75
62
  - !ruby/object:Gem::Version
76
- version: '0'
63
+ version: 2.2.0
77
64
  type: :runtime
78
65
  prerelease: false
79
66
  version_requirements: !ruby/object:Gem::Requirement
80
67
  requirements:
81
68
  - - ">="
82
69
  - !ruby/object:Gem::Version
83
- version: '0'
84
- - !ruby/object:Gem::Dependency
85
- name: rake
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - "~>"
89
- - !ruby/object:Gem::Version
90
- version: '12.0'
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: '12.0'
70
+ version: 2.2.0
98
71
  description: A generalized Rack framework for multiple-provider authentication.
99
72
  email:
100
- - michael@intridea.com
101
73
  - sferik@gmail.com
74
+ - michael@intridea.com
75
+ - bobbymcwho@gmail.com
102
76
  - tmilewski@gmail.com
103
77
  executables: []
104
78
  extensions: []
105
79
  extra_rdoc_files: []
106
80
  files:
107
- - ".github/FUNDING.yml"
108
- - ".github/ISSUE_TEMPLATE.md"
109
- - ".github/dependabot.yml"
110
- - ".github/workflows/jruby.yml"
111
- - ".github/workflows/main.yml"
112
- - ".github/workflows/truffle_ruby.yml"
113
- - ".gitignore"
114
- - ".rspec"
115
- - ".rubocop.yml"
116
- - ".yardopts"
117
- - Gemfile
81
+ - CHANGELOG.md
118
82
  - LICENSE.md
119
83
  - README.md
120
- - Rakefile
121
84
  - SECURITY.md
122
85
  - lib/omniauth.rb
123
86
  - lib/omniauth/auth_hash.rb
@@ -129,16 +92,24 @@ files:
129
92
  - lib/omniauth/key_store.rb
130
93
  - lib/omniauth/strategies/developer.rb
131
94
  - lib/omniauth/strategy.rb
95
+ - lib/omniauth/strategy/class_methods.rb
96
+ - lib/omniauth/strategy/fetchers.rb
97
+ - lib/omniauth/strategy/hosts.rb
98
+ - lib/omniauth/strategy/paths.rb
99
+ - lib/omniauth/strategy/test_mode.rb
132
100
  - lib/omniauth/test.rb
133
101
  - lib/omniauth/test/phony_session.rb
134
102
  - lib/omniauth/test/strategy_macros.rb
135
103
  - lib/omniauth/test/strategy_test_case.rb
136
104
  - lib/omniauth/version.rb
137
- - omniauth.gemspec
105
+ - sig/manifest.yaml
106
+ - sig/omniauth.rbs
138
107
  homepage: https://github.com/omniauth/omniauth
139
108
  licenses:
140
109
  - MIT
141
- metadata: {}
110
+ metadata:
111
+ changelog_uri: https://github.com/omniauth/omniauth/blob/master/CHANGELOG.md
112
+ rubygems_mfa_required: 'true'
142
113
  rdoc_options: []
143
114
  require_paths:
144
115
  - lib
@@ -146,14 +117,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
117
  requirements:
147
118
  - - ">="
148
119
  - !ruby/object:Gem::Version
149
- version: '2.2'
120
+ version: '2.5'
150
121
  required_rubygems_version: !ruby/object:Gem::Requirement
151
122
  requirements:
152
123
  - - ">="
153
124
  - !ruby/object:Gem::Version
154
- version: 1.3.5
125
+ version: '0'
155
126
  requirements: []
156
- rubygems_version: 3.6.9
127
+ rubygems_version: 4.0.20
157
128
  specification_version: 4
158
129
  summary: A generalized Rack framework for multiple-provider authentication.
159
130
  test_files: []
data/.github/FUNDING.yml DELETED
@@ -1,2 +0,0 @@
1
- github: bobbymcwho
2
- tidelift: rubygems/omniauth
@@ -1,20 +0,0 @@
1
- Please complete all sections.
2
-
3
- ### Configuration
4
-
5
- - Provider Gem: `omniauth-*`
6
- - Ruby Version: ``
7
- - Framework: ``
8
- - Platform: ``
9
-
10
- ### Expected Behavior
11
-
12
- Tell us what should happen.
13
-
14
- ### Actual Behavior
15
-
16
- Tell us what happens instead.
17
-
18
- ### Steps to Reproduce
19
-
20
- Please list all steps to reproduce the issue.
@@ -1,18 +0,0 @@
1
- # To get started with Dependabot version updates, you'll need to specify which
2
- # package ecosystems to update and where the package manifests are located.
3
- # Please see the documentation for all configuration options:
4
- # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
-
6
- version: 2
7
- updates:
8
- - package-ecosystem: bundler
9
- directory: '/'
10
- schedule:
11
- interval: weekly
12
- open-pull-requests-limit: 99
13
-
14
- - package-ecosystem: github-actions
15
- directory: '/'
16
- schedule:
17
- interval: daily
18
- open-pull-requests-limit: 99
@@ -1,28 +0,0 @@
1
- name: JRuby
2
- on:
3
- push:
4
- branches: [ master ]
5
- pull_request:
6
- branches: [ master ]
7
-
8
- jobs:
9
- test:
10
- runs-on: ${{ matrix.os }}-latest
11
- strategy:
12
- fail-fast: false
13
- matrix:
14
- os: [ubuntu, macos]
15
- jruby: [jruby, jruby-head]
16
- steps:
17
- - uses: actions/checkout@v3
18
- - name: Set up Ruby
19
- uses: ruby/setup-ruby@v1
20
- with:
21
- ruby-version: ${{ matrix.jruby }}
22
- bundler-cache: true
23
- env:
24
- JRUBY_OPTS: --debug
25
- - name: Run tests
26
- env:
27
- JRUBY_OPTS: --debug
28
- run: bundle exec rake
@@ -1,64 +0,0 @@
1
- # This workflow uses actions that are not certified by GitHub.
2
- # They are provided by a third-party and are governed by
3
- # separate terms of service, privacy policy, and support
4
- # documentation.
5
- # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
- # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
-
8
- name: Ruby
9
-
10
- on:
11
- push:
12
- branches: [ master ]
13
- pull_request:
14
- branches: [ master ]
15
-
16
- jobs:
17
- test:
18
- runs-on: ${{ matrix.os }}-latest
19
- strategy:
20
- fail-fast: false
21
- matrix:
22
- os: [ubuntu, macos]
23
- ruby: [2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3, 3.4, head, debug]
24
- exclude:
25
- - os: macos
26
- ruby: 2.5
27
- steps:
28
- - uses: actions/checkout@v3
29
- - name: Set up Ruby
30
- uses: ruby/setup-ruby@v1
31
- with:
32
- ruby-version: ${{ matrix.ruby }}
33
- bundler-cache: true
34
- - name: Run tests
35
- run: bundle exec rake
36
- frozen-string-compat:
37
- runs-on: ubuntu-latest
38
- steps:
39
- - uses: actions/checkout@v3
40
- - name: Set up Ruby
41
- uses: ruby/setup-ruby@v1
42
- with:
43
- ruby-version: 2.6
44
- bundler-cache: true
45
- - name: Run tests
46
- env:
47
- RUBYOPT: "--enable-frozen-string-literal"
48
- run: bundle exec rake
49
- coveralls:
50
- runs-on: ubuntu-latest
51
- steps:
52
- - uses: actions/checkout@v3
53
- - name: Set up Ruby
54
- uses: ruby/setup-ruby@v1
55
- with:
56
- ruby-version: 2.6
57
- bundler-cache: true
58
- - name: Run tests
59
- run: bundle exec rake
60
- - name: Coveralls GitHub Action
61
- uses: coverallsapp/github-action@v2
62
- with:
63
- github-token: ${{ secrets.github_token }}
64
- path-to-lcov: './coverage/lcov/omniauth.lcov'
@@ -1,24 +0,0 @@
1
- name: TruffleRuby
2
- on:
3
- push:
4
- branches: [ master ]
5
- pull_request:
6
- branches: [ master ]
7
-
8
- jobs:
9
- test:
10
- runs-on: ${{ matrix.os }}-latest
11
- strategy:
12
- fail-fast: false
13
- matrix:
14
- os: [ubuntu, macos]
15
- ruby: [truffleruby, truffleruby-head]
16
- steps:
17
- - uses: actions/checkout@v3
18
- - name: Set up Ruby
19
- uses: ruby/setup-ruby@v1
20
- with:
21
- ruby-version: ${{ matrix.ruby }}
22
- bundler-cache: true
23
- - name: Run tests
24
- run: bundle exec rake
data/.gitignore DELETED
@@ -1,14 +0,0 @@
1
- *.gem
2
- *~
3
- .bundle
4
- .rvmrc
5
- .yardoc
6
- Gemfile.lock
7
- Gemfile.*.lock
8
- coverage/*
9
- doc/*
10
- log/*
11
- measurement/*
12
- pkg/*
13
- .DS_Store
14
- .tool-versions
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- --order random
data/.rubocop.yml DELETED
@@ -1,69 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 2.2
3
-
4
- Layout/AccessModifierIndentation:
5
- EnforcedStyle: outdent
6
-
7
- Layout/AlignHash:
8
- Enabled: false
9
-
10
- Layout/DotPosition:
11
- EnforcedStyle: trailing
12
-
13
- Layout/SpaceInsideHashLiteralBraces:
14
- EnforcedStyle: no_space
15
-
16
- Lint/HandleExceptions:
17
- Enabled: false
18
-
19
- Metrics/BlockLength:
20
- Enabled: false
21
-
22
- Metrics/BlockNesting:
23
- Max: 2
24
-
25
- Metrics/LineLength:
26
- AllowURI: true
27
- Enabled: false
28
-
29
- Metrics/MethodLength:
30
- CountComments: false
31
- Max: 15
32
-
33
- Metrics/ParameterLists:
34
- Max: 4
35
- CountKeywordArgs: true
36
-
37
- Metrics/AbcSize:
38
- Enabled: false
39
-
40
- Style/CollectionMethods:
41
- PreferredMethods:
42
- map: 'collect'
43
- reduce: 'inject'
44
- find: 'detect'
45
- find_all: 'select'
46
-
47
- Style/Documentation:
48
- Enabled: false
49
-
50
- Style/DoubleNegation:
51
- Enabled: false
52
-
53
- Style/EachWithObject:
54
- Enabled: false
55
-
56
- Style/Encoding:
57
- Enabled: false
58
-
59
- Style/ExpandPathArguments:
60
- Enabled: false
61
-
62
- Style/HashSyntax:
63
- EnforcedStyle: hash_rockets
64
-
65
- Style/Lambda:
66
- Enabled: false
67
-
68
- Style/RaiseArgs:
69
- EnforcedStyle: compact
data/.yardopts DELETED
@@ -1,4 +0,0 @@
1
- --markup markdown
2
- --markup-provider maruku
3
- -
4
- LICENSE.md
data/Gemfile DELETED
@@ -1,24 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'jruby-openssl', '~> 0.10.5', platforms: :jruby
4
- gem 'rake', '>= 12.0'
5
- gem 'yard', '>= 0.9.11'
6
-
7
- group :development do
8
- gem 'benchmark-ips'
9
- gem 'kramdown'
10
- gem 'memory_profiler'
11
- gem 'pry'
12
- end
13
-
14
- group :test do
15
- gem 'cgi'
16
- gem 'coveralls_reborn', '~> 0.19.0', require: false
17
- gem 'rack-test'
18
- gem 'rspec', '~> 3.5'
19
- gem 'rack-freeze'
20
- gem 'rubocop', '>= 0.58.2', '< 0.69.0', platforms: %i[ruby_22 ruby_23 ruby_24]
21
- gem 'simplecov-lcov'
22
- end
23
-
24
- gemspec
data/Rakefile DELETED
@@ -1,53 +0,0 @@
1
- require 'bundler'
2
- Bundler::GemHelper.install_tasks
3
-
4
- require 'rspec/core/rake_task'
5
- RSpec::Core::RakeTask.new(:spec)
6
- task :test => :spec
7
-
8
- begin
9
- require 'rubocop/rake_task'
10
- RuboCop::RakeTask.new
11
- rescue LoadError
12
- task :rubocop do
13
- warn 'RuboCop is disabled'
14
- end
15
- end
16
-
17
- task :default => %i[spec rubocop]
18
-
19
- namespace :perf do
20
- task :setup do
21
- require 'omniauth'
22
- require 'rack/test'
23
- app = Rack::Builder.new do |b|
24
- b.use Rack::Session::Cookie, :secret => 'abc123'
25
- b.use OmniAuth::Strategies::Developer
26
- b.run lambda { |_env| [200, {}, ['Not Found']] }
27
- end.to_app
28
- @app = Rack::MockRequest.new(app)
29
-
30
- def call_app(path = ENV['GET_PATH'] || '/')
31
- result = @app.get(path)
32
- raise "Did not succeed #{result.body}" unless result.status == 200
33
-
34
- result
35
- end
36
- end
37
-
38
- task :ips => :setup do
39
- require 'benchmark/ips'
40
- Benchmark.ips do |x|
41
- x.report('ips') { call_app }
42
- end
43
- end
44
-
45
- task :mem => :setup do
46
- require 'memory_profiler'
47
- num = Integer(ENV['CNT'] || 1)
48
- report = MemoryProfiler.report do
49
- num.times { call_app }
50
- end
51
- report.pretty_print
52
- end
53
- end
data/omniauth.gemspec DELETED
@@ -1,26 +0,0 @@
1
- # coding: utf-8
2
-
3
- lib = File.expand_path('../lib', __FILE__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'omniauth/version'
6
-
7
- Gem::Specification.new do |spec|
8
- spec.add_dependency 'hashie', ['>= 3.4.6']
9
- spec.add_dependency 'rack', '>= 2.2.3'
10
- spec.add_development_dependency 'bundler', '~> 2.0'
11
- spec.add_dependency 'rack-protection'
12
- spec.add_dependency 'logger'
13
- spec.add_development_dependency 'rake', '~> 12.0'
14
- spec.authors = ['Michael Bleigh', 'Erik Michaels-Ober', 'Tom Milewski']
15
- spec.description = 'A generalized Rack framework for multiple-provider authentication.'
16
- spec.email = ['michael@intridea.com', 'sferik@gmail.com', 'tmilewski@gmail.com']
17
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.start_with?('spec/') }
18
- spec.homepage = 'https://github.com/omniauth/omniauth'
19
- spec.licenses = %w[MIT]
20
- spec.name = 'omniauth'
21
- spec.require_paths = %w[lib]
22
- spec.required_rubygems_version = '>= 1.3.5'
23
- spec.required_ruby_version = '>= 2.2'
24
- spec.summary = spec.description
25
- spec.version = OmniAuth::VERSION
26
- end