omniauth 2.1.0 → 2.1.1
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.
- checksums.yaml +4 -4
- data/.github/workflows/jruby.yml +30 -0
- data/.github/workflows/main.yml +1 -23
- data/.github/workflows/truffle_ruby.yml +26 -0
- data/README.md +15 -3
- data/SECURITY.md +1 -0
- data/lib/omniauth/strategy.rb +1 -0
- data/lib/omniauth/version.rb +1 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cb3de3ad6a305065fef63ef3a4344db5bcb3b27694b9283b34df9b60db53071
|
4
|
+
data.tar.gz: 2f2534e820313a07c1ff46e515b9e07124de20324df8c76735dd121c17c02bf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e05402733493a06ee4e3c26b30431d0a89c4883350ce4cedad9af29151d6310f0a106f79291c4d634ba955e4618b9be7c796942b08adcee4b6730396f1c1a7af
|
7
|
+
data.tar.gz: 052fca22fac4152907799ab29e112230ad972f227e49616f5537c12a4d000e702c1bbb3b184f0ee29f09a96a1d7a6fe4dbd82e32c5e167269048979993236f3f
|
@@ -0,0 +1,30 @@
|
|
1
|
+
name: JRuby
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [ master ]
|
5
|
+
pull_request:
|
6
|
+
branches: [ master ]
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
test:
|
10
|
+
runs-on: ubuntu-18.04
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
matrix:
|
14
|
+
os: [ubuntu, macos]
|
15
|
+
jruby: [jruby] # TODO: Add back jruby-head once we figure out why there's a bundler mismatch
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v2
|
18
|
+
- name: Set up Ruby
|
19
|
+
uses: ruby/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: ${{ matrix.jruby }}
|
22
|
+
bundler-cache: true
|
23
|
+
- name: Install dependencies
|
24
|
+
env:
|
25
|
+
JRUBY_OPTS: --debug
|
26
|
+
run: bundle install
|
27
|
+
- name: Run tests
|
28
|
+
env:
|
29
|
+
JRUBY_OPTS: --debug
|
30
|
+
run: bundle exec rake
|
data/.github/workflows/main.yml
CHANGED
@@ -20,7 +20,7 @@ jobs:
|
|
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, head, debug]
|
24
24
|
steps:
|
25
25
|
- uses: actions/checkout@v2
|
26
26
|
- name: Set up Ruby
|
@@ -32,28 +32,6 @@ jobs:
|
|
32
32
|
run: bundle install
|
33
33
|
- name: Run tests
|
34
34
|
run: bundle exec rake
|
35
|
-
test-jruby:
|
36
|
-
runs-on: ubuntu-18.04
|
37
|
-
strategy:
|
38
|
-
fail-fast: false
|
39
|
-
matrix:
|
40
|
-
os: [ubuntu, macos]
|
41
|
-
jruby: [jruby] # TODO: Add back jruby-head once we figure out why there's a bundler mismatch
|
42
|
-
steps:
|
43
|
-
- uses: actions/checkout@v2
|
44
|
-
- name: Set up Ruby
|
45
|
-
uses: ruby/setup-ruby@v1
|
46
|
-
with:
|
47
|
-
ruby-version: ${{ matrix.jruby }}
|
48
|
-
bundler-cache: true
|
49
|
-
- name: Install dependencies
|
50
|
-
env:
|
51
|
-
JRUBY_OPTS: --debug
|
52
|
-
run: bundle install
|
53
|
-
- name: Run tests
|
54
|
-
env:
|
55
|
-
JRUBY_OPTS: --debug
|
56
|
-
run: bundle exec rake
|
57
35
|
frozen-string-compat:
|
58
36
|
runs-on: ubuntu-18.04
|
59
37
|
steps:
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: TruffleRuby
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [ master ]
|
5
|
+
pull_request:
|
6
|
+
branches: [ master ]
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
test:
|
10
|
+
runs-on: ubuntu-18.04
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
matrix:
|
14
|
+
os: [ubuntu, macos]
|
15
|
+
ruby: [truffleruby, truffleruby-head]
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v2
|
18
|
+
- name: Set up Ruby
|
19
|
+
uses: ruby/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: ${{ matrix.ruby }}
|
22
|
+
bundler-cache: true
|
23
|
+
- name: Install dependencies
|
24
|
+
run: bundle install
|
25
|
+
- name: Run tests
|
26
|
+
run: bundle exec rake
|
data/README.md
CHANGED
@@ -1,16 +1,21 @@
|
|
1
1
|
# OmniAuth: Standardized Multi-Provider Authentication
|
2
2
|
|
3
3
|
[][gem]
|
4
|
-
[][githubactions]
|
5
|
+
[][githubactionstruffle]
|
6
|
+
[][githubactionsjruby]
|
5
7
|
[][codeclimate]
|
6
8
|
[][coveralls]
|
7
9
|
|
8
10
|
[gem]: https://rubygems.org/gems/omniauth
|
9
|
-
[
|
11
|
+
[githubactions]: https://github.com/omniauth/omniauth/actions/workflows/main.yml
|
12
|
+
[githubactionstruffle]: https://github.com/omniauth/omniauth/actions/workflows/truffle_ruby.yml
|
13
|
+
[githubactionsjruby]: https://github.com/omniauth/omniauth/actions/workflows/jruby.yml
|
10
14
|
[codeclimate]: https://codeclimate.com/github/omniauth/omniauth
|
11
15
|
[coveralls]: https://coveralls.io/r/omniauth/omniauth
|
12
16
|
|
13
|
-
This is the documentation for
|
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.1)
|
14
19
|
|
15
20
|
## An Introduction
|
16
21
|
OmniAuth is a library that standardizes multi-provider authentication for
|
@@ -97,6 +102,13 @@ environment information on the callback request. It is entirely up to
|
|
97
102
|
you how you want to implement the particulars of your application's
|
98
103
|
authentication flow.
|
99
104
|
|
105
|
+
## rack_csrf
|
106
|
+
|
107
|
+
`omniauth` is not OOTB-compatible with [rack_csrf](https://github.com/baldowl/rack_csrf). In order to do so, the following code needs to be added to the application bootstrapping code:
|
108
|
+
|
109
|
+
```ruby
|
110
|
+
OmniAuth::AuthenticityTokenProtection.default_options(key: "csrf.token", authenticity_param: "_csrf")
|
111
|
+
```
|
100
112
|
|
101
113
|
## Rails (without Devise)
|
102
114
|
To get started, add the following gems
|
data/SECURITY.md
CHANGED
data/lib/omniauth/strategy.rb
CHANGED
data/lib/omniauth/version.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.1
|
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:
|
13
|
+
date: 2023-01-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: hashie
|
@@ -93,7 +93,9 @@ extra_rdoc_files: []
|
|
93
93
|
files:
|
94
94
|
- ".github/FUNDING.yml"
|
95
95
|
- ".github/ISSUE_TEMPLATE.md"
|
96
|
+
- ".github/workflows/jruby.yml"
|
96
97
|
- ".github/workflows/main.yml"
|
98
|
+
- ".github/workflows/truffle_ruby.yml"
|
97
99
|
- ".gitignore"
|
98
100
|
- ".rspec"
|
99
101
|
- ".rubocop.yml"
|
@@ -123,7 +125,7 @@ homepage: https://github.com/omniauth/omniauth
|
|
123
125
|
licenses:
|
124
126
|
- MIT
|
125
127
|
metadata: {}
|
126
|
-
post_install_message:
|
128
|
+
post_install_message:
|
127
129
|
rdoc_options: []
|
128
130
|
require_paths:
|
129
131
|
- lib
|
@@ -138,8 +140,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
140
|
- !ruby/object:Gem::Version
|
139
141
|
version: 1.3.5
|
140
142
|
requirements: []
|
141
|
-
rubygems_version: 3.
|
142
|
-
signing_key:
|
143
|
+
rubygems_version: 3.1.6
|
144
|
+
signing_key:
|
143
145
|
specification_version: 4
|
144
146
|
summary: A generalized Rack framework for multiple-provider authentication.
|
145
147
|
test_files: []
|