omniauth-multi-provider 0.2.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +72 -0
- data/.github/CODEOWNERS +1 -0
- data/.rubocop.yml +10 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +8 -0
- data/Gemfile +2 -0
- data/README.md +1 -1
- data/Rakefile +2 -0
- data/bin/console +1 -0
- data/lib/omni_auth/multi_provider/handler.rb +3 -1
- data/lib/omni_auth/multi_provider/version.rb +3 -1
- data/lib/omni_auth/multi_provider.rb +2 -0
- data/lib/omniauth-multi-provider.rb +2 -2
- data/omniauth-multi-provider.gemspec +10 -7
- metadata +35 -20
- data/.travis.yml +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c63cd5912ccfd4f409dfdd7d88024c6c868b02e689e1300edf5f57cfa10fedfe
|
4
|
+
data.tar.gz: 675c8fcfce2ba43d48dc907730b1856e06059b5bda9cab1d209abbc453ae3756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ab2fbf5e48dbf2758bc3bcca567b3466e1a2dc32484ef92f428ccfa2160649a35a74210053c840bb4a26da07e2d6df5928dd02d568a4f2dbf44667e09e4173f
|
7
|
+
data.tar.gz: 5f7d070d50bdf0480ae803276cf0e50b1bf05aba1209e553dba19a85329dd590fe17bddc51fa9e63427f8587f1ac67b56ac9e3120c95879f67152e558cc1a7aa
|
@@ -0,0 +1,72 @@
|
|
1
|
+
version: 2.1
|
2
|
+
jobs:
|
3
|
+
lint:
|
4
|
+
docker:
|
5
|
+
- image: salsify/ruby_ci:2.7.7
|
6
|
+
working_directory: ~/omniauth-multi-provider
|
7
|
+
steps:
|
8
|
+
- checkout
|
9
|
+
- restore_cache:
|
10
|
+
keys:
|
11
|
+
- v1-gems-ruby-2.7.7-{{ checksum "omniauth-multi-provider.gemspec" }}-{{ checksum "Gemfile" }}
|
12
|
+
- v1-gems-ruby-2.7.7-
|
13
|
+
- run:
|
14
|
+
name: Install Gems
|
15
|
+
command: |
|
16
|
+
if ! bundle check --path=vendor/bundle; then
|
17
|
+
bundle install --path=vendor/bundle --jobs=4 --retry=3
|
18
|
+
bundle clean
|
19
|
+
fi
|
20
|
+
- save_cache:
|
21
|
+
key: v1-gems-ruby-2.7.7-{{ checksum "omniauth-multi-provider.gemspec" }}-{{ checksum "Gemfile" }}
|
22
|
+
paths:
|
23
|
+
- "vendor/bundle"
|
24
|
+
- "gemfiles/vendor/bundle"
|
25
|
+
- run:
|
26
|
+
name: Run Rubocop
|
27
|
+
command: bundle exec rubocop --config .rubocop.yml
|
28
|
+
test:
|
29
|
+
parameters:
|
30
|
+
ruby_version:
|
31
|
+
type: string
|
32
|
+
docker:
|
33
|
+
- image: salsify/ruby_ci:<< parameters.ruby_version >>
|
34
|
+
environment:
|
35
|
+
CIRCLE_TEST_REPORTS: "test-results"
|
36
|
+
working_directory: ~/omniauth-multi-provider
|
37
|
+
steps:
|
38
|
+
- checkout
|
39
|
+
- restore_cache:
|
40
|
+
keys:
|
41
|
+
- v1-gems-ruby-<< parameters.ruby_version >>-{{ checksum "omniauth-multi-provider.gemspec" }}-{{ checksum "Gemfile" }}
|
42
|
+
- v1-gems-ruby-<< parameters.ruby_version >>-
|
43
|
+
- run:
|
44
|
+
name: Install Gems
|
45
|
+
command: |
|
46
|
+
if ! bundle check --path=vendor/bundle; then
|
47
|
+
bundle install --path=vendor/bundle --jobs=4 --retry=3
|
48
|
+
bundle clean
|
49
|
+
fi
|
50
|
+
- save_cache:
|
51
|
+
key: v1-gems-ruby-<< parameters.ruby_version >>-{{ checksum "omniauth-multi-provider.gemspec" }}-{{ checksum "Gemfile" }}
|
52
|
+
paths:
|
53
|
+
- "vendor/bundle"
|
54
|
+
- "gemfiles/vendor/bundle"
|
55
|
+
- run:
|
56
|
+
name: Run Tests
|
57
|
+
command: |
|
58
|
+
bundle exec rspec --format RspecJunitFormatter --out $CIRCLE_TEST_REPORTS/rspec/junit.xml --format progress spec
|
59
|
+
- store_test_results:
|
60
|
+
path: "test-results"
|
61
|
+
workflows:
|
62
|
+
build:
|
63
|
+
jobs:
|
64
|
+
- lint
|
65
|
+
- test:
|
66
|
+
matrix:
|
67
|
+
parameters:
|
68
|
+
ruby_version:
|
69
|
+
- "2.7.7"
|
70
|
+
- "3.0.5"
|
71
|
+
- "3.1.3"
|
72
|
+
- "3.2.0"
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
* @jturkel @atsheehan
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.6.6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# omniauth-multi-provider
|
2
2
|
|
3
|
+
## v0.4.0
|
4
|
+
- Drop support for Ruby 2.6
|
5
|
+
- Add support for Ruby 3.1 and 3.2
|
6
|
+
|
7
|
+
## v0.3.0
|
8
|
+
- Drop support for Ruby < 2.6.
|
9
|
+
- Add support for Ruby 3.0.
|
10
|
+
|
3
11
|
## v0.2.1
|
4
12
|
- Update gemspec for minimum Ruby version of 2.1.
|
5
13
|
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -55,7 +55,7 @@ end
|
|
55
55
|
The basic configuration of OmniAuth looks something like this:
|
56
56
|
|
57
57
|
```ruby
|
58
|
-
# config/omniauth.rb
|
58
|
+
# config/initializers/omniauth.rb
|
59
59
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
60
60
|
OmniAuth::MultiProvider.register(self,
|
61
61
|
provider_name: :saml,
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module OmniAuth
|
2
4
|
module MultiProvider
|
3
5
|
class Handler
|
@@ -62,7 +64,7 @@ module OmniAuth
|
|
62
64
|
def add_identity_provider_options(strategy, env, identity_provider_id)
|
63
65
|
identity_provider_options = identity_provider_options_generator.call(identity_provider_id, env) || {}
|
64
66
|
strategy.options.merge!(identity_provider_options)
|
65
|
-
rescue => e
|
67
|
+
rescue StandardError => e
|
66
68
|
result = strategy.fail!(:invalid_identity_provider, e)
|
67
69
|
throw :warden, result
|
68
70
|
end
|
@@ -1,5 +1,6 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'omni_auth/multi_provider/version'
|
5
6
|
|
@@ -18,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
18
19
|
# Set 'allowed_push_post' to control where this gem can be published.
|
19
20
|
if spec.respond_to?(:metadata)
|
20
21
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
22
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
21
23
|
else
|
22
24
|
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
|
23
25
|
end
|
@@ -27,13 +29,14 @@ Gem::Specification.new do |spec|
|
|
27
29
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
28
30
|
spec.require_paths = ['lib']
|
29
31
|
|
30
|
-
spec.required_ruby_version = '>= 2.
|
32
|
+
spec.required_ruby_version = '>= 2.7'
|
31
33
|
|
32
34
|
spec.add_dependency 'omniauth'
|
33
35
|
|
34
|
-
spec.add_development_dependency 'bundler', '~>
|
35
|
-
spec.add_development_dependency 'rake', '~> 10.0'
|
36
|
-
spec.add_development_dependency 'rspec', '~> 3.4'
|
37
|
-
spec.add_development_dependency 'salsify_rubocop', '~> 0.45.0'
|
36
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
38
37
|
spec.add_development_dependency 'overcommit'
|
38
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
39
|
+
spec.add_development_dependency 'rspec', '~> 3.8'
|
40
|
+
spec.add_development_dependency 'rspec_junit_formatter'
|
41
|
+
spec.add_development_dependency 'salsify_rubocop', '~> 1.43.0'
|
39
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-multi-provider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Salsify, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -30,58 +30,58 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: overcommit
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '13.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '13.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: '3.8'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: '3.8'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rspec_junit_formatter
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: salsify_rubocop
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.43.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.43.0
|
97
111
|
description: OmniAuth support for multiple providers of an authentication strategy
|
98
112
|
email:
|
99
113
|
- engineering@salsify.com
|
@@ -103,13 +117,14 @@ executables:
|
|
103
117
|
extensions: []
|
104
118
|
extra_rdoc_files: []
|
105
119
|
files:
|
120
|
+
- ".circleci/config.yml"
|
121
|
+
- ".github/CODEOWNERS"
|
106
122
|
- ".gitignore"
|
107
123
|
- ".overcommit.yml"
|
108
124
|
- ".rspec"
|
109
125
|
- ".rubocop.yml"
|
110
126
|
- ".ruby-gemset"
|
111
127
|
- ".ruby-version"
|
112
|
-
- ".travis.yml"
|
113
128
|
- CHANGELOG.md
|
114
129
|
- Gemfile
|
115
130
|
- LICENSE.txt
|
@@ -127,6 +142,7 @@ licenses:
|
|
127
142
|
- MIT
|
128
143
|
metadata:
|
129
144
|
allowed_push_host: https://rubygems.org
|
145
|
+
rubygems_mfa_required: 'true'
|
130
146
|
post_install_message:
|
131
147
|
rdoc_options: []
|
132
148
|
require_paths:
|
@@ -135,15 +151,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
135
151
|
requirements:
|
136
152
|
- - ">="
|
137
153
|
- !ruby/object:Gem::Version
|
138
|
-
version: '2.
|
154
|
+
version: '2.7'
|
139
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
156
|
requirements:
|
141
157
|
- - ">="
|
142
158
|
- !ruby/object:Gem::Version
|
143
159
|
version: '0'
|
144
160
|
requirements: []
|
145
|
-
|
146
|
-
rubygems_version: 2.6.13
|
161
|
+
rubygems_version: 3.3.26
|
147
162
|
signing_key:
|
148
163
|
specification_version: 4
|
149
164
|
summary: OmniAuth support for multiple providers of an authentication strategy
|