omniauth-auth0 3.0.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -1,12 +1,13 @@
1
1
  $LOAD_PATH.unshift File.expand_path(__dir__)
2
2
  $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
3
3
 
4
+ require 'multi_json'
4
5
  require 'simplecov'
5
6
  SimpleCov.start
6
7
 
7
8
  if ENV['CI'] == 'true'
8
- require 'codecov'
9
- SimpleCov.formatter = SimpleCov::Formatter::Codecov
9
+ require 'simplecov-cobertura'
10
+ SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
10
11
  end
11
12
 
12
13
  require 'rspec'
@@ -22,6 +23,8 @@ RSpec.configure do |config|
22
23
  config.include WebMock::API
23
24
  config.include Rack::Test::Methods
24
25
  config.extend OmniAuth::Test::StrategyMacros, type: :strategy
26
+ config.filter_run focus: true
27
+ config.run_all_when_everything_filtered = true
25
28
 
26
29
  def app
27
30
  @app || make_application
@@ -39,7 +42,8 @@ RSpec.configure do |config|
39
42
  configure do
40
43
  enable :sessions
41
44
  set :show_exceptions, false
42
- set :session_secret, 'TEST'
45
+ set :session_secret, '9771aff2c634257053c62ba072c54754bd2cc92739b37e81c3eda505da48c2ec'
46
+ set :session_store, Rack::Session::Cookie
43
47
  end
44
48
 
45
49
  use OmniAuth::Builder do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Auth0
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-19 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: omniauth-oauth2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.7'
33
+ version: '1'
34
34
  type: :runtime
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: '1.7'
40
+ version: '1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -65,21 +65,26 @@ extensions: []
65
65
  extra_rdoc_files: []
66
66
  files:
67
67
  - ".circleci/config.yml"
68
+ - ".devcontainer/devcontainer.json"
68
69
  - ".gemrelease"
69
70
  - ".github/CODEOWNERS"
71
+ - ".github/ISSUE_TEMPLATE/Bug Report.yml"
72
+ - ".github/ISSUE_TEMPLATE/Feature Request.yml"
70
73
  - ".github/ISSUE_TEMPLATE/config.yml"
71
- - ".github/ISSUE_TEMPLATE/feature_request.md"
72
- - ".github/ISSUE_TEMPLATE/report_a_bug.md"
73
74
  - ".github/PULL_REQUEST_TEMPLATE.md"
74
75
  - ".github/stale.yml"
76
+ - ".github/workflows/semgrep.yml"
75
77
  - ".gitignore"
76
78
  - ".rspec"
77
79
  - ".rubocop.yml"
80
+ - ".semgrepignore"
81
+ - ".shiprc"
78
82
  - ".snyk"
79
83
  - CHANGELOG.md
80
- - CODE_OF_CONDUCT.md
81
84
  - CONTRIBUTING.md
85
+ - EXAMPLES.md
82
86
  - Gemfile
87
+ - Gemfile.lock
83
88
  - Guardfile
84
89
  - LICENSE
85
90
  - README.md
@@ -94,6 +99,7 @@ files:
94
99
  - lib/omniauth/auth0/telemetry.rb
95
100
  - lib/omniauth/strategies/auth0.rb
96
101
  - omniauth-auth0.gemspec
102
+ - opslevel.yml
97
103
  - spec/omniauth/auth0/jwt_validator_spec.rb
98
104
  - spec/omniauth/auth0/telemetry_spec.rb
99
105
  - spec/omniauth/strategies/auth0_spec.rb
@@ -103,7 +109,7 @@ homepage: https://github.com/auth0/omniauth-auth0
103
109
  licenses:
104
110
  - MIT
105
111
  metadata: {}
106
- post_install_message:
112
+ post_install_message:
107
113
  rdoc_options: []
108
114
  require_paths:
109
115
  - lib
@@ -118,13 +124,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
124
  - !ruby/object:Gem::Version
119
125
  version: '0'
120
126
  requirements: []
121
- rubygems_version: 3.2.16
122
- signing_key:
127
+ rubygems_version: 3.4.10
128
+ signing_key:
123
129
  specification_version: 4
124
130
  summary: OmniAuth OAuth2 strategy for the Auth0 platform.
125
- test_files:
126
- - spec/omniauth/auth0/jwt_validator_spec.rb
127
- - spec/omniauth/auth0/telemetry_spec.rb
128
- - spec/omniauth/strategies/auth0_spec.rb
129
- - spec/resources/jwks.json
130
- - spec/spec_helper.rb
131
+ test_files: []
@@ -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:**
data/CODE_OF_CONDUCT.md DELETED
@@ -1,3 +0,0 @@
1
- # Code of Conduct
2
-
3
- Please see [Auth0's Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md) for information on contributing to this repo.