omniauth-jwt2 0.1.0 → 0.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
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +62 -0
- data/CITATION.cff +20 -0
- data/CODE_OF_CONDUCT.md +134 -0
- data/CONTRIBUTING.md +272 -0
- data/FUNDING.md +74 -0
- data/LICENSE.md +17 -0
- data/README.md +500 -58
- data/RUBOCOP.md +71 -0
- data/SECURITY.md +21 -0
- data/certs/pboling.pem +27 -0
- data/lib/omniauth/jwt/version.rb +6 -3
- data/lib/omniauth/jwt.rb +2 -1
- data/lib/omniauth/jwt2/version.rb +10 -0
- data/lib/omniauth/jwt2.rb +10 -0
- data/lib/omniauth/strategies/jwt.rb +31 -9
- data/sig/omniauth/jwt/version.rbs +8 -0
- data/sig/omniauth/jwt2/version.rbs +8 -0
- data.tar.gz.sig +0 -0
- metadata +263 -58
- metadata.gz.sig +0 -0
- data/.github/FUNDING.yml +0 -11
- data/.github/dependabot.yml +0 -2
- data/.github/workflows/ancient.yml +0 -53
- data/.github/workflows/ci.yml +0 -59
- data/.github/workflows/coverage.yml +0 -91
- data/.github/workflows/legacy.yml +0 -54
- data/.github/workflows/style.yml +0 -43
- data/.gitignore +0 -18
- data/.rspec +0 -2
- data/.rubocop.yml +0 -2
- data/.rubocop_gradual.lock +0 -39
- data/.simplecov +0 -2
- data/.tool-versions +0 -1
- data/Gemfile +0 -17
- data/Guardfile +0 -8
- data/LICENSE.txt +0 -23
- data/Rakefile +0 -23
- data/gemfiles/ancient.gemfile +0 -20
- data/gemfiles/contexts/coverage.gemfile +0 -2
- data/gemfiles/contexts/debug.gemfile +0 -6
- data/gemfiles/contexts/style.gemfile +0 -5
- data/gemfiles/contexts/testing.gemfile +0 -8
- data/gemfiles/coverage.gemfile +0 -20
- data/gemfiles/legacy.gemfile +0 -26
- data/gemfiles/style.gemfile +0 -20
- data/gemfiles/vanilla.gemfile +0 -20
- data/omniauth-jwt2.gemspec +0 -41
- data/spec/lib/omniauth/strategies/jwt_spec.rb +0 -213
- data/spec/spec_helper.rb +0 -64
- data/spec/support/hash.rb +0 -9
- data/spec/support/next_instance_of.rb +0 -43
data/.github/FUNDING.yml
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# These are supported funding model platforms
|
|
2
|
-
|
|
3
|
-
github: [pboling] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
|
4
|
-
patreon: galtzo # Replace with a single Patreon username
|
|
5
|
-
open_collective: # Replace with a single Open Collective username
|
|
6
|
-
ko_fi: pboling # Replace with a single Ko-fi username
|
|
7
|
-
tidelift: rubygems/omniauth-jwt2 # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
|
8
|
-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
-
liberapay: pboling # Replace with a single Liberapay username
|
|
10
|
-
issuehunt: pboling # Replace with a single IssueHunt username
|
|
11
|
-
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
data/.github/dependabot.yml
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
name: Ancient Ruby Support
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- 'main'
|
|
7
|
-
tags:
|
|
8
|
-
- '!*' # Do not execute on tags
|
|
9
|
-
pull_request:
|
|
10
|
-
branches:
|
|
11
|
-
- '*'
|
|
12
|
-
# Allow manually triggering the workflow.
|
|
13
|
-
workflow_dispatch:
|
|
14
|
-
|
|
15
|
-
# Cancels all previous workflow runs for the same branch that have not yet completed.
|
|
16
|
-
concurrency:
|
|
17
|
-
# The concurrency group contains the workflow name and the branch name.
|
|
18
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
|
19
|
-
cancel-in-progress: true
|
|
20
|
-
|
|
21
|
-
jobs:
|
|
22
|
-
test:
|
|
23
|
-
name: Ruby ${{ matrix.ruby }}
|
|
24
|
-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
|
|
25
|
-
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
|
26
|
-
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
|
27
|
-
strategy:
|
|
28
|
-
fail-fast: false
|
|
29
|
-
matrix:
|
|
30
|
-
experimental: [false]
|
|
31
|
-
rubygems:
|
|
32
|
-
- "2.7.11"
|
|
33
|
-
bundler:
|
|
34
|
-
- none
|
|
35
|
-
gemfile:
|
|
36
|
-
- ancient
|
|
37
|
-
ruby:
|
|
38
|
-
- "2.3.8"
|
|
39
|
-
- "2.2.10"
|
|
40
|
-
runs-on: ubuntu-20.04
|
|
41
|
-
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
|
|
42
|
-
steps:
|
|
43
|
-
- name: Checkout
|
|
44
|
-
uses: actions/checkout@v4
|
|
45
|
-
- name: Setup Ruby & Bundle
|
|
46
|
-
uses: ruby/setup-ruby@v1
|
|
47
|
-
with:
|
|
48
|
-
ruby-version: ${{ matrix.ruby }}
|
|
49
|
-
rubygems: ${{ matrix.rubygems }}
|
|
50
|
-
bundler: ${{ matrix.bundler }}
|
|
51
|
-
bundler-cache: true
|
|
52
|
-
- name: Run tests
|
|
53
|
-
run: bundle exec rspec
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
name: Omniauth JWT Tests
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- 'main'
|
|
7
|
-
tags:
|
|
8
|
-
- '!*' # Do not execute on tags
|
|
9
|
-
pull_request:
|
|
10
|
-
branches:
|
|
11
|
-
- '*'
|
|
12
|
-
# Allow manually triggering the workflow.
|
|
13
|
-
workflow_dispatch:
|
|
14
|
-
|
|
15
|
-
# Cancels all previous workflow runs for the same branch that have not yet completed.
|
|
16
|
-
concurrency:
|
|
17
|
-
# The concurrency group contains the workflow name and the branch name.
|
|
18
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
|
19
|
-
cancel-in-progress: true
|
|
20
|
-
|
|
21
|
-
jobs:
|
|
22
|
-
build:
|
|
23
|
-
runs-on: ubuntu-latest
|
|
24
|
-
name: Ruby ${{ matrix.ruby }}
|
|
25
|
-
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
|
26
|
-
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
|
27
|
-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
|
|
28
|
-
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
|
|
29
|
-
strategy:
|
|
30
|
-
fail-fast: false
|
|
31
|
-
matrix:
|
|
32
|
-
experimental: [false]
|
|
33
|
-
rubygems:
|
|
34
|
-
- latest
|
|
35
|
-
bundler:
|
|
36
|
-
- latest
|
|
37
|
-
gemfile:
|
|
38
|
-
- vanilla
|
|
39
|
-
ruby:
|
|
40
|
-
- "2.7"
|
|
41
|
-
- "3.0"
|
|
42
|
-
- "3.1"
|
|
43
|
-
- "3.2"
|
|
44
|
-
exclude:
|
|
45
|
-
# Vanilla + 3.2 is effectively run by coverage workflow
|
|
46
|
-
- gemfile: vanilla
|
|
47
|
-
ruby: "3.2"
|
|
48
|
-
steps:
|
|
49
|
-
- name: Checkout
|
|
50
|
-
uses: actions/checkout@v4
|
|
51
|
-
- name: Setup Ruby & Bundle
|
|
52
|
-
uses: ruby/setup-ruby@v1
|
|
53
|
-
with:
|
|
54
|
-
ruby-version: ${{ matrix.ruby }}
|
|
55
|
-
rubygems: ${{ matrix.rubygems }}
|
|
56
|
-
bundler: ${{ matrix.bundler }}
|
|
57
|
-
bundler-cache: true
|
|
58
|
-
- name: Tests
|
|
59
|
-
run: bundle exec rspec
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
name: Code Coverage
|
|
2
|
-
|
|
3
|
-
env:
|
|
4
|
-
K_SOUP_COV_MIN_BRANCH: 85
|
|
5
|
-
K_SOUP_COV_MIN_LINE: 87
|
|
6
|
-
|
|
7
|
-
on:
|
|
8
|
-
push:
|
|
9
|
-
branches:
|
|
10
|
-
- 'main'
|
|
11
|
-
tags:
|
|
12
|
-
- '!*' # Do not execute on tags
|
|
13
|
-
pull_request:
|
|
14
|
-
branches:
|
|
15
|
-
- '*'
|
|
16
|
-
# Allow manually triggering the workflow.
|
|
17
|
-
workflow_dispatch:
|
|
18
|
-
|
|
19
|
-
# Cancels all previous workflow runs for the same branch that have not yet completed.
|
|
20
|
-
concurrency:
|
|
21
|
-
# The concurrency group contains the workflow name and the branch name.
|
|
22
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
|
23
|
-
cancel-in-progress: true
|
|
24
|
-
|
|
25
|
-
jobs:
|
|
26
|
-
test:
|
|
27
|
-
name: Specs with Coverage - Ruby ${{ matrix.ruby }}
|
|
28
|
-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
|
|
29
|
-
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
|
30
|
-
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
|
31
|
-
CI_CODECOV: true
|
|
32
|
-
COVER_ALL: true
|
|
33
|
-
strategy:
|
|
34
|
-
fail-fast: false
|
|
35
|
-
matrix:
|
|
36
|
-
experimental: [false]
|
|
37
|
-
rubygems:
|
|
38
|
-
- latest
|
|
39
|
-
bundler:
|
|
40
|
-
- latest
|
|
41
|
-
gemfile:
|
|
42
|
-
- coverage
|
|
43
|
-
ruby:
|
|
44
|
-
- "3.2"
|
|
45
|
-
|
|
46
|
-
runs-on: ubuntu-latest
|
|
47
|
-
steps:
|
|
48
|
-
- name: Checkout
|
|
49
|
-
uses: actions/checkout@v4
|
|
50
|
-
|
|
51
|
-
- name: Setup Ruby & Bundle
|
|
52
|
-
uses: ruby/setup-ruby@v1
|
|
53
|
-
with:
|
|
54
|
-
ruby-version: ${{ matrix.ruby }}
|
|
55
|
-
rubygems: ${{ matrix.rubygems }}
|
|
56
|
-
bundler: ${{ matrix.bundler }}
|
|
57
|
-
bundler-cache: true
|
|
58
|
-
|
|
59
|
-
- name: Run RSpec tests
|
|
60
|
-
run: |
|
|
61
|
-
bundle exec rspec
|
|
62
|
-
|
|
63
|
-
- name: Code Coverage Summary Report
|
|
64
|
-
uses: irongut/CodeCoverageSummary@v1.3.0
|
|
65
|
-
if: ${{ github.event_name == 'pull_request' }}
|
|
66
|
-
with:
|
|
67
|
-
filename: ./coverage/coverage.xml
|
|
68
|
-
badge: true
|
|
69
|
-
fail_below_min: true
|
|
70
|
-
format: markdown
|
|
71
|
-
hide_branch_rate: false
|
|
72
|
-
hide_complexity: true
|
|
73
|
-
indicators: true
|
|
74
|
-
output: both
|
|
75
|
-
# https://github.com/irongut/CodeCoverageSummary#thresholds
|
|
76
|
-
thresholds: "75 85"
|
|
77
|
-
continue-on-error: ${{ matrix.experimental != 'false' }}
|
|
78
|
-
|
|
79
|
-
- name: Add Coverage PR Comment
|
|
80
|
-
uses: marocchino/sticky-pull-request-comment@v2
|
|
81
|
-
if: ${{ github.event_name == 'pull_request' }}
|
|
82
|
-
with:
|
|
83
|
-
recreate: true
|
|
84
|
-
path: code-coverage-results.md
|
|
85
|
-
continue-on-error: ${{ matrix.experimental != 'false' }}
|
|
86
|
-
|
|
87
|
-
- name: Coveralls
|
|
88
|
-
uses: coverallsapp/github-action@master
|
|
89
|
-
with:
|
|
90
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
91
|
-
continue-on-error: ${{ matrix.experimental != 'false' }}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
name: Legacy Ruby Support
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- 'main'
|
|
7
|
-
tags:
|
|
8
|
-
- '!*' # Do not execute on tags
|
|
9
|
-
pull_request:
|
|
10
|
-
branches:
|
|
11
|
-
- '*'
|
|
12
|
-
# Allow manually triggering the workflow.
|
|
13
|
-
workflow_dispatch:
|
|
14
|
-
|
|
15
|
-
# Cancels all previous workflow runs for the same branch that have not yet completed.
|
|
16
|
-
concurrency:
|
|
17
|
-
# The concurrency group contains the workflow name and the branch name.
|
|
18
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
|
19
|
-
cancel-in-progress: true
|
|
20
|
-
|
|
21
|
-
jobs:
|
|
22
|
-
test:
|
|
23
|
-
name: Ruby ${{ matrix.ruby }}
|
|
24
|
-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
|
|
25
|
-
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
|
26
|
-
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
|
27
|
-
strategy:
|
|
28
|
-
fail-fast: false
|
|
29
|
-
matrix:
|
|
30
|
-
experimental: [false]
|
|
31
|
-
rubygems:
|
|
32
|
-
- "2.7.11"
|
|
33
|
-
bundler:
|
|
34
|
-
- none
|
|
35
|
-
gemfile:
|
|
36
|
-
- legacy
|
|
37
|
-
ruby:
|
|
38
|
-
- "2.6"
|
|
39
|
-
- "2.5"
|
|
40
|
-
- "2.4"
|
|
41
|
-
runs-on: ubuntu-20.04
|
|
42
|
-
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
|
|
43
|
-
steps:
|
|
44
|
-
- name: Checkout
|
|
45
|
-
uses: actions/checkout@v4
|
|
46
|
-
- name: Setup Ruby & Bundle
|
|
47
|
-
uses: ruby/setup-ruby@v1
|
|
48
|
-
with:
|
|
49
|
-
ruby-version: ${{ matrix.ruby }}
|
|
50
|
-
rubygems: ${{ matrix.rubygems }}
|
|
51
|
-
bundler: ${{ matrix.bundler }}
|
|
52
|
-
bundler-cache: true
|
|
53
|
-
- name: Run tests
|
|
54
|
-
run: bundle exec rspec
|
data/.github/workflows/style.yml
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
name: Code Style
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- 'main'
|
|
7
|
-
tags:
|
|
8
|
-
- '!*' # Do not execute on tags
|
|
9
|
-
pull_request:
|
|
10
|
-
branches:
|
|
11
|
-
- '*'
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
rubocop:
|
|
15
|
-
name: RuboCop
|
|
16
|
-
strategy:
|
|
17
|
-
fail-fast: false
|
|
18
|
-
matrix:
|
|
19
|
-
experimental: [false]
|
|
20
|
-
rubygems:
|
|
21
|
-
- latest
|
|
22
|
-
bundler:
|
|
23
|
-
- latest
|
|
24
|
-
gemfile:
|
|
25
|
-
- style
|
|
26
|
-
ruby:
|
|
27
|
-
- "3.2"
|
|
28
|
-
|
|
29
|
-
runs-on: ubuntu-latest
|
|
30
|
-
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
|
31
|
-
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
|
32
|
-
steps:
|
|
33
|
-
- name: Checkout
|
|
34
|
-
uses: actions/checkout@v4
|
|
35
|
-
- name: Setup Ruby & Bundle
|
|
36
|
-
uses: ruby/setup-ruby@v1
|
|
37
|
-
with:
|
|
38
|
-
ruby-version: ${{ matrix.ruby }}
|
|
39
|
-
rubygems: ${{ matrix.rubygems }}
|
|
40
|
-
bundler: ${{ matrix.bundler }}
|
|
41
|
-
bundler-cache: true
|
|
42
|
-
- name: Run RuboCop Gradual
|
|
43
|
-
run: bundle exec rake rubocop_gradual:check
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
data/.rubocop_gradual.lock
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lib/omniauth/strategies/jwt.rb:543932255": [
|
|
3
|
-
[60, 9, 76, "Lint/RescueException: Avoid rescuing the `Exception` class. Perhaps you meant to rescue `StandardError`?", 967033479]
|
|
4
|
-
],
|
|
5
|
-
"omniauth-jwt2.gemspec:998952283": [
|
|
6
|
-
[18, 16, 16, "Packaging/GemspecGit: Avoid using git to produce lists of files. Downstreams often need to build your package in an environment that does not have git (on purpose). Use some pure Ruby alternative, like `Dir` or `Dir.glob`.", 1973161220]
|
|
7
|
-
],
|
|
8
|
-
"spec/lib/omniauth/strategies/jwt_spec.rb:2698313308": [
|
|
9
|
-
[3, 1, 34, "RSpec/FilePath: Spec path should end with `omni_auth/strategies/jwt*_spec.rb`.", 1935033905],
|
|
10
|
-
[3, 1, 34, "RSpec/SpecFilePathFormat: Spec path should end with `omni_auth/strategies/jwt*_spec.rb`.", 1935033905],
|
|
11
|
-
[12, 13, 25, "RSpec/DescribedClass: Use `described_class` instead of `OmniAuth::Strategies::JWT`.", 2234488924],
|
|
12
|
-
[19, 11, 15, "RSpec/ContextWording: Context description should match /^when\\b/, /^with\\b/, or /^without\\b/.", 391893083],
|
|
13
|
-
[20, 5, 42, "RSpec/MultipleExpectations: Example has too many expectations [2/1].", 4106660663],
|
|
14
|
-
[29, 11, 16, "RSpec/ContextWording: Context description should match /^when\\b/, /^with\\b/, or /^without\\b/.", 1409468707],
|
|
15
|
-
[51, 7, 51, "RSpec/MultipleExpectations: Example has too many expectations [2/1].", 4149552871],
|
|
16
|
-
[51, 7, 531, "RSpec/ExampleLength: Example has too many lines. [6/5]", 2143440997],
|
|
17
|
-
[91, 3, 3512, "RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [10/5]", 2363831099],
|
|
18
|
-
[110, 7, 7, "RSpec/NamedSubject: Name your test subject if you need to reference it explicitly.", 1892732441],
|
|
19
|
-
[111, 7, 7, "RSpec/NamedSubject: Name your test subject if you need to reference it explicitly.", 1892732441],
|
|
20
|
-
[116, 9, 6, "RSpec/ExpectInHook: Do not use `expect` in `before` hook", 1179768986],
|
|
21
|
-
[116, 9, 20, "RSpec/StubbedMock: Prefer `allow` over `expect` when configuring a response.", 2951559342],
|
|
22
|
-
[116, 33, 7, "RSpec/MessageSpies: Prefer `have_received` for setting message expectations. Setup `rack_request` as a spy using `allow` or `instance_spy`.", 1384559950],
|
|
23
|
-
[130, 5, 56, "Performance/RedundantMerge: Use `algos[OpenSSL::PKey::EC] = %w[ES256 ES384 ES512]` instead of `algos.merge!(OpenSSL::PKey::EC => %w[ES256 ES384 ES512])`.", 2983772293],
|
|
24
|
-
[133, 9, 846, "RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [10/5]", 3520352246],
|
|
25
|
-
[152, 22, 7, "RSpec/NamedSubject: Name your test subject if you need to reference it explicitly.", 1892732441],
|
|
26
|
-
[160, 5, 310, "RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [10/5]", 3501674141],
|
|
27
|
-
[160, 13, 28, "RSpec/ContextWording: Context description should match /^when\\b/, /^with\\b/, or /^without\\b/.", 1877551307],
|
|
28
|
-
[170, 18, 7, "RSpec/NamedSubject: Name your test subject if you need to reference it explicitly.", 1892732441],
|
|
29
|
-
[174, 5, 515, "RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [10/5]", 1246671601],
|
|
30
|
-
[185, 9, 7, "RSpec/NamedSubject: Name your test subject if you need to reference it explicitly.", 1892732441],
|
|
31
|
-
[189, 18, 7, "RSpec/NamedSubject: Name your test subject if you need to reference it explicitly.", 1892732441],
|
|
32
|
-
[193, 5, 537, "RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [10/5]", 3770030886],
|
|
33
|
-
[205, 9, 7, "RSpec/NamedSubject: Name your test subject if you need to reference it explicitly.", 1892732441],
|
|
34
|
-
[209, 18, 7, "RSpec/NamedSubject: Name your test subject if you need to reference it explicitly.", 1892732441]
|
|
35
|
-
],
|
|
36
|
-
"spec/support/hash.rb:812296649": [
|
|
37
|
-
[2, 3, 110, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 3570181400]
|
|
38
|
-
]
|
|
39
|
-
}
|
data/.simplecov
DELETED
data/.tool-versions
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ruby 2.3.8
|
data/Gemfile
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
source "https://rubygems.org"
|
|
2
|
-
|
|
3
|
-
# Specify your gem's dependencies in omniauth-jwt.gemspec
|
|
4
|
-
gemspec
|
|
5
|
-
|
|
6
|
-
# Development dependencies that rely on Ruby version >=
|
|
7
|
-
# Style
|
|
8
|
-
eval_gemfile "gemfiles/contexts/style.gemfile"
|
|
9
|
-
|
|
10
|
-
# Coverage
|
|
11
|
-
eval_gemfile "gemfiles/contexts/coverage.gemfile"
|
|
12
|
-
|
|
13
|
-
# Testing
|
|
14
|
-
eval_gemfile "gemfiles/contexts/testing.gemfile"
|
|
15
|
-
|
|
16
|
-
# Debug
|
|
17
|
-
eval_gemfile "gemfiles/contexts/debug.gemfile"
|
data/Guardfile
DELETED
data/LICENSE.txt
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2013 Michael Bleigh
|
|
2
|
-
Copyright (c) 2023 Peter Boling of railsbling.com
|
|
3
|
-
|
|
4
|
-
MIT License
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
7
|
-
a copy of this software and associated documentation files (the
|
|
8
|
-
"Software"), to deal in the Software without restriction, including
|
|
9
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
10
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
11
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
12
|
-
the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be
|
|
15
|
-
included in all copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
18
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
19
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
20
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
21
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
22
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
23
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
require "bundler/gem_tasks"
|
|
2
|
-
|
|
3
|
-
require "rspec/core/rake_task"
|
|
4
|
-
RSpec::Core::RakeTask.new(:spec)
|
|
5
|
-
|
|
6
|
-
desc "alias test task to spec"
|
|
7
|
-
task test: :spec
|
|
8
|
-
|
|
9
|
-
begin
|
|
10
|
-
require "kettle-soup-cover"
|
|
11
|
-
Kettle::Soup::Cover.install_tasks
|
|
12
|
-
rescue LoadError
|
|
13
|
-
# NOOP
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
begin
|
|
17
|
-
require "rubocop/lts"
|
|
18
|
-
Rubocop::Lts.install_tasks
|
|
19
|
-
rescue LoadError
|
|
20
|
-
# NOOP
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
task default: :spec
|
data/gemfiles/ancient.gemfile
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|
4
|
-
|
|
5
|
-
source "https://rubygems.org"
|
|
6
|
-
|
|
7
|
-
# Gemfile is only for local development.
|
|
8
|
-
# On CI we only need the gemspecs' dependencies (including development dependencies).
|
|
9
|
-
# Exceptions, if any, will be found in gemfiles/*
|
|
10
|
-
|
|
11
|
-
# Testing
|
|
12
|
-
gem "rack", "~> 2.1.4.3" # ruby 2.2.2
|
|
13
|
-
gem "json", "~> 2.5.1" # ruby 2.0
|
|
14
|
-
|
|
15
|
-
# Debugging
|
|
16
|
-
eval_gemfile "contexts/debug.gemfile"
|
|
17
|
-
|
|
18
|
-
gemspec path: "../"
|
|
19
|
-
|
|
20
|
-
gem "omniauth", "< 2"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# Testing
|
|
2
|
-
gem "ed25519", "~> 1.3" # ruby 2.4
|
|
3
|
-
gem "json", "~> 2.6", ">= 2.6.3" # ruby 2.3
|
|
4
|
-
gem "openssl", ">= 2.0" # ruby 2.3, v3.0 is >= 2.6, v3.2 is >= 2.7
|
|
5
|
-
gem "openssl-signature_algorithm", "~> 1.3" # ruby 2.4
|
|
6
|
-
gem "rack", "~> 3.0", ">= 3.0.8" # ruby 2.4
|
|
7
|
-
gem "rack-session", "~> 2.0" # ruby 2.4
|
|
8
|
-
gem "rspec-block_is_expected", "~> 1.0", ">= 1.0.5" # ruby 1.8.7
|
data/gemfiles/coverage.gemfile
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|
4
|
-
|
|
5
|
-
source "https://rubygems.org"
|
|
6
|
-
|
|
7
|
-
# Gemfile is only for local development.
|
|
8
|
-
# On CI we only need the gemspecs' dependencies (including development dependencies).
|
|
9
|
-
# Exceptions, if any, will be found in gemfiles/*
|
|
10
|
-
|
|
11
|
-
# Coverage
|
|
12
|
-
eval_gemfile "contexts/coverage.gemfile"
|
|
13
|
-
|
|
14
|
-
# Testing
|
|
15
|
-
eval_gemfile "contexts/testing.gemfile"
|
|
16
|
-
|
|
17
|
-
# Debugging
|
|
18
|
-
eval_gemfile "contexts/debug.gemfile"
|
|
19
|
-
|
|
20
|
-
gemspec path: "../"
|
data/gemfiles/legacy.gemfile
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|
4
|
-
|
|
5
|
-
source "https://rubygems.org"
|
|
6
|
-
|
|
7
|
-
# Gemfile is only for local development.
|
|
8
|
-
# On CI we only need the gemspecs' dependencies (including development dependencies).
|
|
9
|
-
# Exceptions, if any, will be found in gemfiles/*
|
|
10
|
-
|
|
11
|
-
# Testing
|
|
12
|
-
gem "rspec", "~> 3.12" # ruby *
|
|
13
|
-
gem "rack-test", "~> 2.1" # ruby 2.0
|
|
14
|
-
gem "rack" # ruby 2.4
|
|
15
|
-
gem "rack-session", "< 2", github: "pboling/rack-session", branch: "fix-missing-rack-session" # ruby < 2.4
|
|
16
|
-
gem "json" # ruby 2.3
|
|
17
|
-
gem "openssl" # ruby 2.3
|
|
18
|
-
gem "openssl-signature_algorithm" # ruby 2.4
|
|
19
|
-
gem "ed25519" # ruby 2.4
|
|
20
|
-
|
|
21
|
-
# Debugging
|
|
22
|
-
eval_gemfile "contexts/debug.gemfile"
|
|
23
|
-
|
|
24
|
-
gemspec path: "../"
|
|
25
|
-
|
|
26
|
-
gem "omniauth", "< 2"
|
data/gemfiles/style.gemfile
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|
4
|
-
|
|
5
|
-
source "https://rubygems.org"
|
|
6
|
-
|
|
7
|
-
# Gemfile is only for local development.
|
|
8
|
-
# On CI we only need the gemspecs' dependencies (including development dependencies).
|
|
9
|
-
# Exceptions, if any, will be found in gemfiles/*
|
|
10
|
-
|
|
11
|
-
# Coverage
|
|
12
|
-
eval_gemfile "contexts/coverage.gemfile"
|
|
13
|
-
|
|
14
|
-
# Style
|
|
15
|
-
eval_gemfile "contexts/style.gemfile"
|
|
16
|
-
|
|
17
|
-
# Debugging
|
|
18
|
-
eval_gemfile "contexts/debug.gemfile"
|
|
19
|
-
|
|
20
|
-
gemspec path: "../"
|
data/gemfiles/vanilla.gemfile
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|
4
|
-
|
|
5
|
-
source "https://rubygems.org"
|
|
6
|
-
|
|
7
|
-
# Gemfile is only for local development.
|
|
8
|
-
# On CI we only need the gemspecs' dependencies (including development dependencies).
|
|
9
|
-
# Exceptions, if any, will be found in gemfiles/*
|
|
10
|
-
|
|
11
|
-
# Coverage
|
|
12
|
-
eval_gemfile "contexts/coverage.gemfile"
|
|
13
|
-
|
|
14
|
-
# Testing
|
|
15
|
-
eval_gemfile "contexts/testing.gemfile"
|
|
16
|
-
|
|
17
|
-
# Debugging
|
|
18
|
-
eval_gemfile "contexts/debug.gemfile"
|
|
19
|
-
|
|
20
|
-
gemspec path: "../"
|
data/omniauth-jwt2.gemspec
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# Get the GEMFILE_VERSION without *require* "my_gem/version", for code coverage accuracy
|
|
2
|
-
# See: https://github.com/simplecov-ruby/simplecov/issues/557#issuecomment-825171399
|
|
3
|
-
load "lib/omniauth/jwt/version.rb"
|
|
4
|
-
gem_version = Omniauth::JWT::Version::VERSION
|
|
5
|
-
Omniauth::JWT::Version.send(:remove_const, :VERSION)
|
|
6
|
-
|
|
7
|
-
Gem::Specification.new do |spec|
|
|
8
|
-
spec.name = "omniauth-jwt2"
|
|
9
|
-
spec.version = gem_version
|
|
10
|
-
spec.authors = ["Michael Bleigh", "Robin Ward", "Peter Boling"]
|
|
11
|
-
spec.email = ["mbleigh@mbleigh.com", "robin.ward@gmail.com", "peter.boling@gmail.com"]
|
|
12
|
-
spec.description = "An OmniAuth strategy to accept JWT-based single sign-on."
|
|
13
|
-
spec.summary = "An OmniAuth strategy to accept JWT-based single sign-on."
|
|
14
|
-
spec.homepage = "http://github.com/pboling/omniauth-jwt2"
|
|
15
|
-
spec.license = "MIT"
|
|
16
|
-
spec.required_ruby_version = ">= 2.2"
|
|
17
|
-
|
|
18
|
-
spec.files = %x(git ls-files).split($/)
|
|
19
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
20
|
-
spec.require_paths = ["lib"]
|
|
21
|
-
|
|
22
|
-
# TODO: Since this gem supports Ruby >= 2.2 we need to ensure no gems are
|
|
23
|
-
# added here that require a newer version. Once this gem progresses to
|
|
24
|
-
# only support non-EOL Rubies, all dependencies can be listed in this
|
|
25
|
-
# gemspec, and the gemfiles/* pattern can be dispensed with.
|
|
26
|
-
spec.add_dependency("jwt", "~> 2.2", ">= 2.2.1") # ruby 2.1
|
|
27
|
-
spec.add_dependency("omniauth", ">= 1.1") # ruby 2.2
|
|
28
|
-
|
|
29
|
-
# Utilities
|
|
30
|
-
spec.add_dependency("version_gem", "~> 1.1", ">= 1.1.3") # ruby 2.2
|
|
31
|
-
spec.add_development_dependency("rake", "~> 13.0") # ruby 2.2, v13.1 is >= 2.3
|
|
32
|
-
|
|
33
|
-
# Hot reload
|
|
34
|
-
spec.add_development_dependency("guard", "~> 2.18", ">= 2.18.1") # ruby 1.9.3
|
|
35
|
-
spec.add_development_dependency("guard-rspec", "~> 4.7", ">= 4.7.3") # ruby *
|
|
36
|
-
|
|
37
|
-
# Testing
|
|
38
|
-
spec.add_development_dependency("rack-test", "~> 2.1") # ruby 2.0
|
|
39
|
-
spec.add_development_dependency("rspec", "~> 3.12") # ruby *
|
|
40
|
-
spec.add_development_dependency("rspec-pending_for", "~> 0.1") # ruby *
|
|
41
|
-
end
|