omniauth 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +18 -0
- data/.github/workflows/jruby.yml +3 -5
- data/.github/workflows/main.yml +8 -14
- data/.github/workflows/truffle_ruby.yml +2 -4
- data/Gemfile +1 -6
- data/README.md +2 -2
- data/lib/omniauth/form.rb +2 -1
- data/lib/omniauth/strategies/developer.rb +1 -1
- data/lib/omniauth/version.rb +1 -1
- data/lib/omniauth.rb +4 -0
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0de71776aec3f0b016291d25d87fed25bbfa49f5fcd0abcf0f7463be97111e92
|
4
|
+
data.tar.gz: dd52494efab1533e54f3a85ceab332db16e02ff6d633a00c99f52d7f089303ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16de198d83402c9613961994c0fe1f1c9fc709de6a546168830248c237e2fe61f0847e129f94a4bf51570cbb8beffa4e20b6542e23a342a17aa41bd8c2738200
|
7
|
+
data.tar.gz: f703bef08321f981909d950dba902989b5efb5d4c820b9f6b03c5695bbe56620e2656bfd75d527101ed3d7cdc78dd4c886f2e4991f12c01ea170e1ad900b3245
|
@@ -0,0 +1,18 @@
|
|
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
|
data/.github/workflows/jruby.yml
CHANGED
@@ -7,23 +7,21 @@ on:
|
|
7
7
|
|
8
8
|
jobs:
|
9
9
|
test:
|
10
|
-
runs-on:
|
10
|
+
runs-on: ${{ matrix.os }}-latest
|
11
11
|
strategy:
|
12
12
|
fail-fast: false
|
13
13
|
matrix:
|
14
14
|
os: [ubuntu, macos]
|
15
|
-
jruby: [jruby
|
15
|
+
jruby: [jruby, jruby-head]
|
16
16
|
steps:
|
17
|
-
- uses: actions/checkout@
|
17
|
+
- uses: actions/checkout@v3
|
18
18
|
- name: Set up Ruby
|
19
19
|
uses: ruby/setup-ruby@v1
|
20
20
|
with:
|
21
21
|
ruby-version: ${{ matrix.jruby }}
|
22
22
|
bundler-cache: true
|
23
|
-
- name: Install dependencies
|
24
23
|
env:
|
25
24
|
JRUBY_OPTS: --debug
|
26
|
-
run: bundle install
|
27
25
|
- name: Run tests
|
28
26
|
env:
|
29
27
|
JRUBY_OPTS: --debug
|
data/.github/workflows/main.yml
CHANGED
@@ -15,53 +15,47 @@ on:
|
|
15
15
|
|
16
16
|
jobs:
|
17
17
|
test:
|
18
|
-
runs-on:
|
18
|
+
runs-on: ${{ matrix.os }}-latest
|
19
19
|
strategy:
|
20
20
|
fail-fast: false
|
21
21
|
matrix:
|
22
22
|
os: [ubuntu, macos]
|
23
|
-
ruby: [2.5, 2.6, 2.7, '3.0', 3.1, head, debug]
|
23
|
+
ruby: [2.5, 2.6, 2.7, '3.0', 3.1, 3.2, head, debug]
|
24
24
|
steps:
|
25
|
-
- uses: actions/checkout@
|
25
|
+
- uses: actions/checkout@v3
|
26
26
|
- name: Set up Ruby
|
27
27
|
uses: ruby/setup-ruby@v1
|
28
28
|
with:
|
29
29
|
ruby-version: ${{ matrix.ruby }}
|
30
30
|
bundler-cache: true
|
31
|
-
- name: Install dependencies
|
32
|
-
run: bundle install
|
33
31
|
- name: Run tests
|
34
32
|
run: bundle exec rake
|
35
33
|
frozen-string-compat:
|
36
|
-
runs-on: ubuntu-
|
34
|
+
runs-on: ubuntu-latest
|
37
35
|
steps:
|
38
|
-
- uses: actions/checkout@
|
36
|
+
- uses: actions/checkout@v3
|
39
37
|
- name: Set up Ruby
|
40
38
|
uses: ruby/setup-ruby@v1
|
41
39
|
with:
|
42
40
|
ruby-version: 2.6
|
43
41
|
bundler-cache: true
|
44
|
-
- name: Install dependencies
|
45
|
-
run: bundle install
|
46
42
|
- name: Run tests
|
47
43
|
env:
|
48
44
|
RUBYOPT: "--enable-frozen-string-literal"
|
49
45
|
run: bundle exec rake
|
50
46
|
coveralls:
|
51
|
-
runs-on: ubuntu-
|
47
|
+
runs-on: ubuntu-latest
|
52
48
|
steps:
|
53
|
-
- uses: actions/checkout@
|
49
|
+
- uses: actions/checkout@v3
|
54
50
|
- name: Set up Ruby
|
55
51
|
uses: ruby/setup-ruby@v1
|
56
52
|
with:
|
57
53
|
ruby-version: 2.6
|
58
54
|
bundler-cache: true
|
59
|
-
- name: Install dependencies
|
60
|
-
run: bundle install
|
61
55
|
- name: Run tests
|
62
56
|
run: bundle exec rake
|
63
57
|
- name: Coveralls GitHub Action
|
64
|
-
uses: coverallsapp/github-action@
|
58
|
+
uses: coverallsapp/github-action@v2
|
65
59
|
with:
|
66
60
|
github-token: ${{ secrets.github_token }}
|
67
61
|
path-to-lcov: './coverage/lcov/omniauth.lcov'
|
@@ -7,20 +7,18 @@ on:
|
|
7
7
|
|
8
8
|
jobs:
|
9
9
|
test:
|
10
|
-
runs-on:
|
10
|
+
runs-on: ${{ matrix.os }}-latest
|
11
11
|
strategy:
|
12
12
|
fail-fast: false
|
13
13
|
matrix:
|
14
14
|
os: [ubuntu, macos]
|
15
15
|
ruby: [truffleruby, truffleruby-head]
|
16
16
|
steps:
|
17
|
-
- uses: actions/checkout@
|
17
|
+
- uses: actions/checkout@v3
|
18
18
|
- name: Set up Ruby
|
19
19
|
uses: ruby/setup-ruby@v1
|
20
20
|
with:
|
21
21
|
ruby-version: ${{ matrix.ruby }}
|
22
22
|
bundler-cache: true
|
23
|
-
- name: Install dependencies
|
24
|
-
run: bundle install
|
25
23
|
- name: Run tests
|
26
24
|
run: bundle exec rake
|
data/Gemfile
CHANGED
@@ -13,16 +13,11 @@ end
|
|
13
13
|
|
14
14
|
group :test do
|
15
15
|
gem 'coveralls_reborn', '~> 0.19.0', require: false
|
16
|
-
gem 'hashie', '>= 3.4.6', '~> 4.0.0', platforms: [:jruby_18]
|
17
|
-
gem 'json', '~> 2.3.0', platforms: %i[jruby_18 jruby_19 ruby_19]
|
18
|
-
gem 'mime-types', '~> 3.1', platforms: [:jruby_18]
|
19
16
|
gem 'rack-test'
|
20
|
-
gem 'rest-client', '~> 2.0.0', platforms: [:jruby_18]
|
21
17
|
gem 'rspec', '~> 3.5'
|
22
18
|
gem 'rack-freeze'
|
23
|
-
gem 'rubocop', '>= 0.58.2', '< 0.69.0', platforms: %i[
|
19
|
+
gem 'rubocop', '>= 0.58.2', '< 0.69.0', platforms: %i[ruby_22 ruby_23 ruby_24]
|
24
20
|
gem 'simplecov-lcov'
|
25
|
-
gem 'tins', '~> 1.13', platforms: %i[jruby_18 jruby_19 ruby_19]
|
26
21
|
end
|
27
22
|
|
28
23
|
gemspec
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
[coveralls]: https://coveralls.io/r/omniauth/omniauth
|
16
16
|
|
17
17
|
This is the documentation for the in-development branch of OmniAuth.
|
18
|
-
You can find the documentation for the latest stable release [here](https://github.com/omniauth/omniauth/tree/v2.1.
|
18
|
+
You can find the documentation for the latest stable release [here](https://github.com/omniauth/omniauth/tree/v2.1.2)
|
19
19
|
|
20
20
|
## An Introduction
|
21
21
|
OmniAuth is a library that standardizes multi-provider authentication for
|
@@ -252,7 +252,7 @@ improve code health, while paying the maintainers of the exact packages you use.
|
|
252
252
|
[Learn more.](https://tidelift.com/subscription/pkg/rubygems-omniauth?utm_source=undefined&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
253
253
|
|
254
254
|
## Supported Ruby Versions
|
255
|
-
OmniAuth is tested under 2.5, 2.6, 2.7, truffleruby, and JRuby.
|
255
|
+
OmniAuth is tested under 2.5, 2.6, 2.7, 3.0, 3.1, 3.2, truffleruby, and JRuby.
|
256
256
|
|
257
257
|
## Versioning
|
258
258
|
This library aims to adhere to [Semantic Versioning 2.0.0][semver]. Violations
|
data/lib/omniauth/form.rb
CHANGED
@@ -7,6 +7,7 @@ module OmniAuth
|
|
7
7
|
def initialize(options = {})
|
8
8
|
options[:title] ||= 'Authentication Info Required'
|
9
9
|
options[:header_info] ||= ''
|
10
|
+
options[:method] ||= 'post'
|
10
11
|
self.options = options
|
11
12
|
|
12
13
|
@html = +'' # unary + string allows it to be mutable if strings are frozen
|
@@ -75,7 +76,7 @@ module OmniAuth
|
|
75
76
|
</head>
|
76
77
|
<body>
|
77
78
|
<h1>#{title}</h1>
|
78
|
-
<form method='
|
79
|
+
<form method='#{options[:method]}' #{"action='#{options[:url]}' " if options[:url]}noValidate='noValidate'>
|
79
80
|
HTML
|
80
81
|
self
|
81
82
|
end
|
@@ -35,7 +35,7 @@ module OmniAuth
|
|
35
35
|
option :uid_field, :email
|
36
36
|
|
37
37
|
def request_phase
|
38
|
-
form = OmniAuth::Form.new(:title => 'User Info', :url => callback_path)
|
38
|
+
form = OmniAuth::Form.new(:title => 'User Info', :url => callback_path, :method => 'get')
|
39
39
|
options.fields.each do |field|
|
40
40
|
form.text_field field.to_s.capitalize.tr('_', ' '), field.to_s
|
41
41
|
end
|
data/lib/omniauth/version.rb
CHANGED
data/lib/omniauth.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bleigh
|
8
8
|
- Erik Michaels-Ober
|
9
9
|
- Tom Milewski
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-
|
13
|
+
date: 2023-12-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: hashie
|
@@ -93,6 +93,7 @@ extra_rdoc_files: []
|
|
93
93
|
files:
|
94
94
|
- ".github/FUNDING.yml"
|
95
95
|
- ".github/ISSUE_TEMPLATE.md"
|
96
|
+
- ".github/dependabot.yml"
|
96
97
|
- ".github/workflows/jruby.yml"
|
97
98
|
- ".github/workflows/main.yml"
|
98
99
|
- ".github/workflows/truffle_ruby.yml"
|
@@ -125,7 +126,7 @@ homepage: https://github.com/omniauth/omniauth
|
|
125
126
|
licenses:
|
126
127
|
- MIT
|
127
128
|
metadata: {}
|
128
|
-
post_install_message:
|
129
|
+
post_install_message:
|
129
130
|
rdoc_options: []
|
130
131
|
require_paths:
|
131
132
|
- lib
|
@@ -140,8 +141,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
141
|
- !ruby/object:Gem::Version
|
141
142
|
version: 1.3.5
|
142
143
|
requirements: []
|
143
|
-
rubygems_version: 3.
|
144
|
-
signing_key:
|
144
|
+
rubygems_version: 3.3.26
|
145
|
+
signing_key:
|
145
146
|
specification_version: 4
|
146
147
|
summary: A generalized Rack framework for multiple-provider authentication.
|
147
148
|
test_files: []
|