omniauth-auth0 3.1.0 → 3.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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.devcontainer/devcontainer.json +1 -1
  3. data/.github/CODEOWNERS +1 -1
  4. data/.github/ISSUE_TEMPLATE/Bug Report.yml +76 -0
  5. data/.github/ISSUE_TEMPLATE/Feature Request.yml +53 -0
  6. data/.github/ISSUE_TEMPLATE/config.yml +2 -2
  7. data/.github/actions/get-prerelease/action.yml +30 -0
  8. data/.github/actions/get-release-notes/action.yml +42 -0
  9. data/.github/actions/get-version/action.yml +21 -0
  10. data/.github/actions/release-create/action.yml +47 -0
  11. data/.github/actions/rl-scanner/action.yml +71 -0
  12. data/.github/actions/rubygems-publish/action.yml +30 -0
  13. data/.github/actions/setup/action.yml +28 -0
  14. data/.github/actions/tag-exists/action.yml +36 -0
  15. data/.github/dependabot.yml +13 -0
  16. data/.github/workflows/codeql.yml +53 -0
  17. data/.github/workflows/matrix.json +7 -0
  18. data/.github/workflows/publish.yml +33 -0
  19. data/.github/workflows/rl-scanner.yml +65 -0
  20. data/.github/workflows/ruby-release.yml +72 -0
  21. data/.github/workflows/snyk.yml +40 -0
  22. data/.github/workflows/test.yml +69 -0
  23. data/.shiprc +2 -1
  24. data/.version +1 -0
  25. data/CHANGELOG.md +20 -0
  26. data/EXAMPLES.md +19 -5
  27. data/Gemfile +4 -5
  28. data/Gemfile.lock +128 -91
  29. data/README.md +42 -1
  30. data/lib/omniauth/auth0/jwt_token.rb +38 -0
  31. data/lib/omniauth/auth0/jwt_validator.rb +19 -3
  32. data/lib/omniauth/strategies/auth0.rb +48 -14
  33. data/lib/omniauth-auth0/version.rb +1 -1
  34. data/omniauth-auth0.gemspec +1 -0
  35. data/spec/omniauth/auth0/jwt_token_spec.rb +87 -0
  36. data/spec/omniauth/auth0/jwt_validator_spec.rb +109 -31
  37. data/spec/omniauth/strategies/auth0_spec.rb +478 -230
  38. data/spec/spec_helper.rb +1 -0
  39. metadata +39 -14
  40. data/.circleci/config.yml +0 -63
  41. data/.gemrelease +0 -2
  42. data/.github/ISSUE_TEMPLATE/feature_request.md +0 -39
  43. data/.github/ISSUE_TEMPLATE/report_a_bug.md +0 -55
  44. data/.github/workflows/semgrep.yml +0 -24
data/spec/spec_helper.rb CHANGED
@@ -43,6 +43,7 @@ RSpec.configure do |config|
43
43
  enable :sessions
44
44
  set :show_exceptions, false
45
45
  set :session_secret, '9771aff2c634257053c62ba072c54754bd2cc92739b37e81c3eda505da48c2ec'
46
+ set :session_store, Rack::Session::Cookie
46
47
  end
47
48
 
48
49
  use OmniAuth::Builder do
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Auth0
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-08 00:00:00.000000000 Z
11
+ date: 2026-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jwt
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: omniauth
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -64,22 +78,36 @@ executables: []
64
78
  extensions: []
65
79
  extra_rdoc_files: []
66
80
  files:
67
- - ".circleci/config.yml"
68
81
  - ".devcontainer/devcontainer.json"
69
- - ".gemrelease"
70
82
  - ".github/CODEOWNERS"
83
+ - ".github/ISSUE_TEMPLATE/Bug Report.yml"
84
+ - ".github/ISSUE_TEMPLATE/Feature Request.yml"
71
85
  - ".github/ISSUE_TEMPLATE/config.yml"
72
- - ".github/ISSUE_TEMPLATE/feature_request.md"
73
- - ".github/ISSUE_TEMPLATE/report_a_bug.md"
74
86
  - ".github/PULL_REQUEST_TEMPLATE.md"
87
+ - ".github/actions/get-prerelease/action.yml"
88
+ - ".github/actions/get-release-notes/action.yml"
89
+ - ".github/actions/get-version/action.yml"
90
+ - ".github/actions/release-create/action.yml"
91
+ - ".github/actions/rl-scanner/action.yml"
92
+ - ".github/actions/rubygems-publish/action.yml"
93
+ - ".github/actions/setup/action.yml"
94
+ - ".github/actions/tag-exists/action.yml"
95
+ - ".github/dependabot.yml"
75
96
  - ".github/stale.yml"
76
- - ".github/workflows/semgrep.yml"
97
+ - ".github/workflows/codeql.yml"
98
+ - ".github/workflows/matrix.json"
99
+ - ".github/workflows/publish.yml"
100
+ - ".github/workflows/rl-scanner.yml"
101
+ - ".github/workflows/ruby-release.yml"
102
+ - ".github/workflows/snyk.yml"
103
+ - ".github/workflows/test.yml"
77
104
  - ".gitignore"
78
105
  - ".rspec"
79
106
  - ".rubocop.yml"
80
107
  - ".semgrepignore"
81
108
  - ".shiprc"
82
109
  - ".snyk"
110
+ - ".version"
83
111
  - CHANGELOG.md
84
112
  - CONTRIBUTING.md
85
113
  - EXAMPLES.md
@@ -95,11 +123,13 @@ files:
95
123
  - lib/omniauth-auth0.rb
96
124
  - lib/omniauth-auth0/version.rb
97
125
  - lib/omniauth/auth0/errors.rb
126
+ - lib/omniauth/auth0/jwt_token.rb
98
127
  - lib/omniauth/auth0/jwt_validator.rb
99
128
  - lib/omniauth/auth0/telemetry.rb
100
129
  - lib/omniauth/strategies/auth0.rb
101
130
  - omniauth-auth0.gemspec
102
131
  - opslevel.yml
132
+ - spec/omniauth/auth0/jwt_token_spec.rb
103
133
  - spec/omniauth/auth0/jwt_validator_spec.rb
104
134
  - spec/omniauth/auth0/telemetry_spec.rb
105
135
  - spec/omniauth/strategies/auth0_spec.rb
@@ -124,13 +154,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
154
  - !ruby/object:Gem::Version
125
155
  version: '0'
126
156
  requirements: []
127
- rubygems_version: 3.2.22
157
+ rubygems_version: 3.4.19
128
158
  signing_key:
129
159
  specification_version: 4
130
160
  summary: OmniAuth OAuth2 strategy for the Auth0 platform.
131
- test_files:
132
- - spec/omniauth/auth0/jwt_validator_spec.rb
133
- - spec/omniauth/auth0/telemetry_spec.rb
134
- - spec/omniauth/strategies/auth0_spec.rb
135
- - spec/resources/jwks.json
136
- - spec/spec_helper.rb
161
+ test_files: []
data/.circleci/config.yml DELETED
@@ -1,63 +0,0 @@
1
- version: 2.1
2
- orbs:
3
- ship: auth0/ship@0
4
- codecov: codecov/codecov@3
5
-
6
- matrix_rubyversions: &matrix_rubyversions
7
- matrix:
8
- parameters:
9
- rubyversion: ["2.7", "3.0", "3.1"]
10
- # Default version of ruby to use for lint and publishing
11
- default_rubyversion: &default_rubyversion "2.7"
12
-
13
- executors:
14
- ruby:
15
- parameters:
16
- rubyversion:
17
- type: string
18
- default: *default_rubyversion
19
- docker:
20
- - image: cimg/ruby:<< parameters.rubyversion >>
21
-
22
- jobs:
23
- run-tests:
24
- parameters:
25
- rubyversion:
26
- type: string
27
- default: *default_rubyversion
28
- executor:
29
- name: ruby
30
- rubyversion: "<< parameters.rubyversion >>"
31
- steps:
32
- - checkout
33
- - restore_cache:
34
- keys:
35
- - gems-v2-{{ checksum "Gemfile" }}
36
- - gems-v2-
37
- - run: |
38
- echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
39
- source $BASH_ENV
40
- gem install bundler
41
- bundle check || bundle install
42
- - save_cache:
43
- key: gems-v2--{{ checksum "Gemfile" }}
44
- paths:
45
- - vendor/bundle
46
- - run: bundle exec rake spec
47
- - codecov/upload
48
-
49
- workflows:
50
- tests:
51
- jobs:
52
- - run-tests:
53
- <<: *matrix_rubyversions
54
- - ship/ruby-publish:
55
- context:
56
- - publish-rubygems
57
- - publish-gh
58
- filters:
59
- branches:
60
- only:
61
- - master
62
- requires:
63
- - run-tests
data/.gemrelease DELETED
@@ -1,2 +0,0 @@
1
- bump:
2
- tag: true
@@ -1,39 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea or a feature for this project
4
- title: ''
5
- labels: feature request
6
- assignees: ''
7
- ---
8
-
9
- <!--
10
- **Please do not report security vulnerabilities here**. The Responsible Disclosure Program (https://auth0.com/whitehat) details the procedure for disclosing security issues.
11
-
12
- Thank you in advance for helping us to improve this library! Your attention to detail here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community (https://community.auth0.com/) or Auth0 Support (https://support.auth0.com/). Finally, to avoid duplicates, please search existing Issues before submitting one here.
13
-
14
- By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct (https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
15
- -->
16
-
17
- ### Describe the problem you'd like to have solved
18
-
19
- <!--
20
- > A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
21
- -->
22
-
23
- ### Describe the ideal solution
24
-
25
- <!--
26
- > A clear and concise description of what you want to happen.
27
- -->
28
-
29
- ## Alternatives and current work-arounds
30
-
31
- <!--
32
- > A clear and concise description of any alternatives you've considered or any work-arounds that are currently in place.
33
- -->
34
-
35
- ### Additional information, if any
36
-
37
- <!--
38
- > Add any other context or screenshots about the feature request here.
39
- -->
@@ -1,55 +0,0 @@
1
- ---
2
- name: Report a bug
3
- about: Have you found a bug or issue? Create a bug report for this SDK
4
- title: ''
5
- labels: bug report
6
- assignees: ''
7
- ---
8
-
9
- <!--
10
- **Please do not report security vulnerabilities here**. The Responsible Disclosure Program (https://auth0.com/whitehat) details the procedure for disclosing security issues.
11
-
12
- Thank you in advance for helping us to improve this library! Please read through the template below and answer all relevant questions. Your additional work here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community (https://community.auth0.com/) or Auth0 Support (https://support.auth0.com/). Finally, to avoid duplicates, please search existing Issues before submitting one here.
13
-
14
- By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct (https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
15
- -->
16
-
17
- ### Describe the problem
18
-
19
- <!--
20
- > Provide a clear and concise description of the issue
21
- -->
22
-
23
- ### What was the expected behavior?
24
-
25
- <!--
26
- > Tell us about the behavior you expected to see
27
- -->
28
-
29
- ### Reproduction
30
- <!--
31
- > Detail the steps taken to reproduce this error, and whether this issue can be reproduced consistently or if it is intermittent.
32
- > **Note**: If clear, reproducable steps or the smallest sample app demonstrating misbehavior cannot be provided, we may not be able to follow up on this bug report.
33
-
34
- > Where possible, please include:
35
- >
36
- > - The smallest possible sample app that reproduces the undesirable behavior
37
- > - Log files (redact/remove sensitive information)
38
- > - Application settings (redact/remove sensitive information)
39
- > - Screenshots
40
- -->
41
-
42
- - Step 1..
43
- - Step 2..
44
- - ...
45
-
46
- ### Environment
47
-
48
- <!--
49
- > Please provide the following:
50
- -->
51
-
52
- - **Version of this library used:**
53
- - **Which framework are you using, if applicable:**
54
- - **Other modules/plugins/libraries that might be involved:**
55
- - **Any other relevant information you think would be useful:**
@@ -1,24 +0,0 @@
1
- name: Semgrep
2
-
3
- on:
4
- pull_request: {}
5
-
6
- push:
7
- branches: ["master", "main"]
8
-
9
- schedule:
10
- - cron: '30 0 1,15 * *'
11
-
12
- jobs:
13
- semgrep:
14
- name: Scan
15
- runs-on: ubuntu-latest
16
- container:
17
- image: returntocorp/semgrep
18
- if: (github.actor != 'dependabot[bot]')
19
- steps:
20
- - uses: actions/checkout@v3
21
-
22
- - run: semgrep ci
23
- env:
24
- SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}