omniauth-auth0 2.2.0 → 2.4.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 463fae0687e0473a0918c9c2086f3b47a60ae1448fffa3b1157ec933784c1a1c
4
- data.tar.gz: d872be3b458dadf3752d58192059d6d350a90f7047de1e84b98137417880204d
3
+ metadata.gz: 6ad5a6389a6ed38fa4e1f63003ffac76c0450bfe06e21bda0fbd0d8c3044b1dc
4
+ data.tar.gz: 9c1638cc2f0681e8a258baeb4565a7bb9d3caef845f09b913374b258e51047dc
5
5
  SHA512:
6
- metadata.gz: 13efc37572c71bdd5184dd9888e48f2479e5e5d52c16f454c01c88834fc2f5dffa3488b13b8b0dc9bbe423d9aa750038c12693f85e83f3375482af8857788585
7
- data.tar.gz: 2240535e4f749e7ba47f587ca56ae9e1d5ee596e54391a969a5f282b852ab8f3a2970c99514014fada2d5a00b259144849e6e2db1ae559a8ab584753e4e7bce9
6
+ metadata.gz: 9008eb1eed6d50dd7f23943e5d1b8a5a2dc2364b2a249181cfd1a8768e347fb7b3611a4d4155fdbd58ee8938d4b0c4674f25ef665ffab5947632d83a88aa0a5f
7
+ data.tar.gz: 28523e968e72a6dd552fdf9615866ec46fc355e77cfd393005328be6033a875340e3badd6da8836f483a9bdee2cd371b061df5412f3caeb2c88ba1a619e1da67
@@ -2,7 +2,7 @@ version: 2.1
2
2
  jobs:
3
3
  run-tests:
4
4
  docker:
5
- - image: circleci/ruby:2.4.6-jessie
5
+ - image: circleci/ruby:2.5.7-buster
6
6
  steps:
7
7
  - checkout
8
8
  - restore_cache:
@@ -10,40 +10,13 @@ jobs:
10
10
  - gems-v2-{{ checksum "Gemfile.lock" }}
11
11
  - gems-v2-
12
12
  - run: bundle check || bundle install
13
- - persist_to_workspace:
14
- root: .
15
- paths:
16
- - Gemfile
17
- - Gemfile.lock
18
13
  - save_cache:
19
14
  key: gems-v2--{{ checksum "Gemfile.lock" }}
20
15
  paths:
21
16
  - vendor/bundle
22
17
  - run: bundle exec rake spec
23
- snyk:
24
- docker:
25
- - image: snyk/snyk-cli:rubygems
26
- steps:
27
- - attach_workspace:
28
- at: .
29
- - run: snyk test
30
- - run:
31
- command: |
32
- if [[ "${CIRCLE_BRANCH}" == "master" ]]
33
- then
34
- snyk monitor --org=auth0-sdks
35
- fi
36
- when: always
37
18
 
38
19
  workflows:
39
20
  tests:
40
21
  jobs:
41
22
  - run-tests
42
- snyk:
43
- jobs:
44
- - run-tests
45
- - snyk:
46
- # Must define SNYK_TOKEN env
47
- context: snyk-env
48
- requires:
49
- - run-tests
@@ -0,0 +1 @@
1
+ * @auth0/dx-sdks-approver
@@ -29,4 +29,4 @@ Please describe how this can be tested by reviewers. Be specific about anything
29
29
  * [ ] I have read the [Auth0 contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
30
30
  * [ ] I have read the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
31
31
  * [ ] All existing and new tests complete without errors
32
- * [ ] All code quality tools/guidelines in the [CONTRIBUTING documentation](CONTRIBUTING.md) have been run/followed
32
+ * [ ] All code quality tools/guidelines in the [CONTRIBUTING documentation](https://github.com/auth0/omniauth-auth0/blob/master/CONTRIBUTING.md) have been run/followed
@@ -0,0 +1,20 @@
1
+ # Configuration for probot-stale - https://github.com/probot/stale
2
+
3
+ # Number of days of inactivity before an Issue or Pull Request becomes stale
4
+ daysUntilStale: 90
5
+
6
+ # Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7
+ daysUntilClose: 7
8
+
9
+ # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
10
+ exemptLabels: []
11
+
12
+ # Set to true to ignore issues with an assignee (defaults to false)
13
+ exemptAssignees: true
14
+
15
+ # Label to use when marking as stale
16
+ staleLabel: closed:stale
17
+
18
+ # Comment to post when marking as stale. Set to `false` to disable
19
+ markComment: >
20
+ This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇‍♂️
data/.snyk ADDED
@@ -0,0 +1,9 @@
1
+ # Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2
+ version: v1.13.5
3
+ # ignores vulnerabilities until expiry date; change duration by modifying expiry date
4
+ ignore:
5
+ SNYK-RUBY-OMNIAUTH-174820:
6
+ - '*':
7
+ reason: Not affected.
8
+ expires: 2020-01-01T00:00:00.000Z
9
+ patch: {}
@@ -1,5 +1,48 @@
1
1
  # Change Log
2
2
 
3
+ ## [v2.4.2](https://github.com/auth0/omniauth-auth0/tree/v2.4.2) (2021-01-19)
4
+
5
+ [Full Changelog](https://github.com/auth0/omniauth-auth0/compare/v2.4.1...v2.4.2)
6
+
7
+ **Fixed**
8
+ - Lock Omniauth to 1.9 in gemspec
9
+
10
+ ## [v2.4.1](https://github.com/auth0/omniauth-auth0/tree/v2.4.1) (2020-10-08)
11
+
12
+ [Full Changelog](https://github.com/auth0/omniauth-auth0/compare/v2.4.0...v2.4.1)
13
+
14
+ **Fixed**
15
+ - Verify the JWT Signature [\#109](https://github.com/auth0/omniauth-auth0/pull/109) ([jimmyjames](https://github.com/jimmyjames))
16
+
17
+
18
+ ## [v2.4.0](https://github.com/auth0/omniauth-auth0/tree/v2.4.0) (2020-09-22)
19
+
20
+ [Full Changelog](https://github.com/auth0/omniauth-auth0/compare/v2.3.1...v2.4.0)
21
+
22
+ **Security**
23
+ - Bump rack from 2.2.2 to 2.2.3 [\#107](https://github.com/auth0/omniauth-auth0/pull/107) ([dependabot](https://github.com/dependabot))
24
+ - Update dependencies [\#100](https://github.com/auth0/omniauth-auth0/pull/100) ([Albalmaceda](https://github.com/Albalmaceda))
25
+
26
+ **Added**
27
+ - Add support for screen_hint=signup param [\#103](https://github.com/auth0/omniauth-auth0/pull/103) ([bbean86](https://github.com/bbean86))
28
+ - Add support for `connection_scope` in params [\#99](https://github.com/auth0/omniauth-auth0/pull/99) ([felixclack](https://github.com/felixclack))
29
+
30
+
31
+ ## [v2.3.1](https://github.com/auth0/omniauth-auth0/tree/v2.3.1) (2020-03-27)
32
+
33
+ [Full Changelog](https://github.com/auth0/omniauth-auth0/compare/v2.3.0...v2.3.1)
34
+
35
+ **Fixed bugs:**
36
+
37
+ - Fixes dependency issue [\#97](https://github.com/auth0/omniauth-auth0/pull/97) ([davidpatrick](https://github.com/davidpatrick))
38
+ - Fix "NameError: uninitialized constant OmniAuth::Auth0::TokenValidationError" [\#96](https://github.com/auth0/omniauth-auth0/pull/96) ([stefanwork](https://github.com/stefanwork))
39
+
40
+ ## [v2.3.0](https://github.com/auth0/omniauth-auth0/tree/v2.3.0) (2020-03-06)
41
+ [Full Changelog](https://github.com/auth0/omniauth-auth0/compare/v2.2.0...v2.3.0)
42
+
43
+ **Added**
44
+ - Improved OIDC Compliance [\#92](https://github.com/auth0/omniauth-auth0/pull/92) ([davidpatrick](https://github.com/davidpatrick))
45
+
3
46
  ## [v2.2.0](https://github.com/auth0/omniauth-auth0/tree/v2.2.0) (2018-04-18)
4
47
  [Full Changelog](https://github.com/auth0/omniauth-auth0/compare/v2.1.0...v2.2.0)
5
48
 
@@ -1,33 +1,35 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-auth0 (2.2.0)
4
+ omniauth-auth0 (2.4.2)
5
+ omniauth (~> 1.9)
5
6
  omniauth-oauth2 (~> 1.5)
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
9
10
  specs:
10
- addressable (2.6.0)
11
- public_suffix (>= 2.0.2, < 4.0)
12
- ast (2.4.0)
13
- codecov (0.1.14)
14
- json
15
- simplecov
16
- url
17
- coderay (1.1.2)
18
- crack (0.4.3)
19
- safe_yaml (~> 1.0.0)
11
+ addressable (2.7.0)
12
+ public_suffix (>= 2.0.2, < 5.0)
13
+ ast (2.4.1)
14
+ codecov (0.3.0)
15
+ simplecov (>= 0.15, < 0.22)
16
+ coderay (1.1.3)
17
+ crack (0.4.5)
18
+ rexml
20
19
  daemons (1.3.1)
21
- diff-lcs (1.3)
22
- docile (1.3.1)
23
- dotenv (2.7.2)
20
+ diff-lcs (1.4.4)
21
+ docile (1.3.5)
22
+ dotenv (2.7.6)
24
23
  eventmachine (1.2.7)
25
- faraday (0.15.4)
24
+ faraday (1.3.0)
25
+ faraday-net_http (~> 1.0)
26
26
  multipart-post (>= 1.2, < 3)
27
- ffi (1.10.0)
27
+ ruby2_keywords
28
+ faraday-net_http (1.0.1)
29
+ ffi (1.14.2)
28
30
  formatador (0.2.5)
29
- gem-release (2.0.1)
30
- guard (2.15.0)
31
+ gem-release (2.2.0)
32
+ guard (2.16.2)
31
33
  formatador (>= 0.2.4)
32
34
  listen (>= 2.7, < 4.0)
33
35
  lumberjack (>= 1.0.12, < 2.0)
@@ -41,104 +43,107 @@ GEM
41
43
  guard (~> 2.1)
42
44
  guard-compat (~> 1.1)
43
45
  rspec (>= 2.99.0, < 4.0)
44
- hashdiff (0.3.8)
45
- hashie (3.6.0)
46
- jaro_winkler (1.5.2)
47
- json (2.2.0)
48
- jwt (2.1.0)
46
+ hashdiff (1.0.1)
47
+ hashie (4.1.0)
48
+ jwt (2.2.2)
49
49
  listen (3.1.5)
50
50
  rb-fsevent (~> 0.9, >= 0.9.4)
51
51
  rb-inotify (~> 0.9, >= 0.9.7)
52
52
  ruby_dep (~> 1.2)
53
- lumberjack (1.0.13)
54
- method_source (0.9.2)
55
- multi_json (1.13.1)
53
+ lumberjack (1.2.8)
54
+ method_source (1.0.0)
55
+ multi_json (1.15.0)
56
56
  multi_xml (0.6.0)
57
- multipart-post (2.0.0)
58
- mustermann (1.0.3)
57
+ multipart-post (2.1.1)
58
+ mustermann (1.1.1)
59
+ ruby2_keywords (~> 0.0.1)
59
60
  nenv (0.3.0)
60
- notiffany (0.1.1)
61
+ notiffany (0.1.3)
61
62
  nenv (~> 0.1)
62
63
  shellany (~> 0.0)
63
- oauth2 (1.4.1)
64
- faraday (>= 0.8, < 0.16.0)
64
+ oauth2 (1.4.4)
65
+ faraday (>= 0.8, < 2.0)
65
66
  jwt (>= 1.0, < 3.0)
66
67
  multi_json (~> 1.3)
67
68
  multi_xml (~> 0.5)
68
69
  rack (>= 1.2, < 3)
69
- omniauth (1.9.0)
70
- hashie (>= 3.4.6, < 3.7.0)
70
+ omniauth (1.9.1)
71
+ hashie (>= 3.4.6)
71
72
  rack (>= 1.6.2, < 3)
72
- omniauth-oauth2 (1.6.0)
73
- oauth2 (~> 1.1)
74
- omniauth (~> 1.9)
75
- parallel (1.17.0)
76
- parser (2.6.2.1)
77
- ast (~> 2.4.0)
78
- pry (0.12.2)
79
- coderay (~> 1.1.0)
80
- method_source (~> 0.9.0)
81
- psych (3.1.0)
82
- public_suffix (3.0.3)
83
- rack (2.0.7)
84
- rack-protection (2.0.5)
73
+ omniauth-oauth2 (1.7.1)
74
+ oauth2 (~> 1.4)
75
+ omniauth (>= 1.9, < 3)
76
+ parallel (1.20.1)
77
+ parser (3.0.0.0)
78
+ ast (~> 2.4.1)
79
+ pry (0.13.1)
80
+ coderay (~> 1.1)
81
+ method_source (~> 1.0)
82
+ public_suffix (4.0.6)
83
+ rack (2.2.3)
84
+ rack-protection (2.1.0)
85
85
  rack
86
86
  rack-test (1.1.0)
87
87
  rack (>= 1.0, < 3)
88
88
  rainbow (3.0.0)
89
- rake (12.3.2)
90
- rb-fsevent (0.10.3)
91
- rb-inotify (0.10.0)
89
+ rake (13.0.3)
90
+ rb-fsevent (0.10.4)
91
+ rb-inotify (0.10.1)
92
92
  ffi (~> 1.0)
93
- rspec (3.8.0)
94
- rspec-core (~> 3.8.0)
95
- rspec-expectations (~> 3.8.0)
96
- rspec-mocks (~> 3.8.0)
97
- rspec-core (3.8.0)
98
- rspec-support (~> 3.8.0)
99
- rspec-expectations (3.8.2)
93
+ regexp_parser (2.0.3)
94
+ rexml (3.2.4)
95
+ rspec (3.10.0)
96
+ rspec-core (~> 3.10.0)
97
+ rspec-expectations (~> 3.10.0)
98
+ rspec-mocks (~> 3.10.0)
99
+ rspec-core (3.10.1)
100
+ rspec-support (~> 3.10.0)
101
+ rspec-expectations (3.10.1)
100
102
  diff-lcs (>= 1.2.0, < 2.0)
101
- rspec-support (~> 3.8.0)
102
- rspec-mocks (3.8.0)
103
+ rspec-support (~> 3.10.0)
104
+ rspec-mocks (3.10.1)
103
105
  diff-lcs (>= 1.2.0, < 2.0)
104
- rspec-support (~> 3.8.0)
105
- rspec-support (3.8.0)
106
- rubocop (0.67.2)
107
- jaro_winkler (~> 1.5.1)
106
+ rspec-support (~> 3.10.0)
107
+ rspec-support (3.10.1)
108
+ rubocop (1.8.1)
108
109
  parallel (~> 1.10)
109
- parser (>= 2.5, != 2.5.1.1)
110
- psych (>= 3.1.0)
110
+ parser (>= 3.0.0.0)
111
111
  rainbow (>= 2.2.2, < 4.0)
112
+ regexp_parser (>= 1.8, < 3.0)
113
+ rexml
114
+ rubocop-ast (>= 1.2.0, < 2.0)
112
115
  ruby-progressbar (~> 1.7)
113
- unicode-display_width (>= 1.4.0, < 1.6)
114
- ruby-progressbar (1.10.0)
116
+ unicode-display_width (>= 1.4.0, < 3.0)
117
+ rubocop-ast (1.4.0)
118
+ parser (>= 2.7.1.5)
119
+ ruby-progressbar (1.11.0)
120
+ ruby2_keywords (0.0.4)
115
121
  ruby_dep (1.5.0)
116
- safe_yaml (1.0.5)
117
122
  shellany (0.0.1)
118
123
  shotgun (0.9.2)
119
124
  rack (>= 1.0)
120
- simplecov (0.16.1)
125
+ simplecov (0.21.2)
121
126
  docile (~> 1.1)
122
- json (>= 1.8, < 3)
123
- simplecov-html (~> 0.10.0)
124
- simplecov-html (0.10.2)
125
- sinatra (2.0.5)
127
+ simplecov-html (~> 0.11)
128
+ simplecov_json_formatter (~> 0.1)
129
+ simplecov-html (0.12.3)
130
+ simplecov_json_formatter (0.1.2)
131
+ sinatra (2.1.0)
126
132
  mustermann (~> 1.0)
127
- rack (~> 2.0)
128
- rack-protection (= 2.0.5)
133
+ rack (~> 2.2)
134
+ rack-protection (= 2.1.0)
129
135
  tilt (~> 2.0)
130
- thin (1.7.2)
136
+ thin (1.8.0)
131
137
  daemons (~> 1.0, >= 1.0.9)
132
138
  eventmachine (~> 1.0, >= 1.0.4)
133
139
  rack (>= 1, < 3)
134
- thor (0.20.3)
135
- tilt (2.0.9)
136
- unicode-display_width (1.5.0)
137
- url (0.3.2)
138
- webmock (3.5.1)
140
+ thor (1.0.1)
141
+ tilt (2.0.10)
142
+ unicode-display_width (2.0.0)
143
+ webmock (3.11.1)
139
144
  addressable (>= 2.3.6)
140
145
  crack (>= 0.3.2)
141
- hashdiff
146
+ hashdiff (>= 0.4.0, < 2.0.0)
142
147
 
143
148
  PLATFORMS
144
149
  ruby
data/README.md CHANGED
@@ -1,11 +1,14 @@
1
1
  # OmniAuth Auth0
2
2
 
3
- An [OmniAuth](https://github.com/intridea/omniauth) strategy for authenticating with [Auth0](https://auth0.com). This strategy is based on the [OmniAuth OAuth2](https://github.com/omniauth/omniauth-oauth2) strategy.
3
+ An [OmniAuth](https://github.com/intridea/omniauth) strategy for authenticating with [Auth0](https://auth0.com). This strategy is based on the [OmniAuth OAuth2](https://github.com/omniauth/omniauth-oauth2) strategy.
4
+
5
+ > :warning: **Important security note:** This solution uses a 3rd party library with an unresolved [security issue(s)](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-9284). Please review the details of the vulnerability, including [Auth0](https://github.com/auth0/omniauth-auth0/issues/82 ) and other recommended [mitigations](https://github.com/omniauth/omniauth/wiki/Resolving-CVE-2015-9284), before implementing the solution.
4
6
 
5
7
  [![CircleCI](https://img.shields.io/circleci/project/github/auth0/omniauth-auth0/master.svg)](https://circleci.com/gh/auth0/omniauth-auth0)
6
8
  [![codecov](https://codecov.io/gh/auth0/omniauth-auth0/branch/master/graph/badge.svg)](https://codecov.io/gh/auth0/omniauth-auth0)
7
9
  [![Gem Version](https://badge.fury.io/rb/omniauth-auth0.svg)](https://badge.fury.io/rb/omniauth-auth0)
8
10
  [![MIT licensed](https://img.shields.io/dub/l/vibe-d.svg?style=flat)](https://github.com/auth0/omniauth-auth0/blob/master/LICENSE)
11
+ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fauth0%2Fomniauth-auth0.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fauth0%2Fomniauth-auth0?ref=badge_shield)
9
12
 
10
13
  ## Table of Contents
11
14
 
@@ -31,13 +34,19 @@ Add the following line to your `Gemfile`:
31
34
  gem 'omniauth-auth0'
32
35
  ```
33
36
 
37
+ If you're using this strategy with Rails, also add the following for CSRF protection:
38
+
39
+ ```ruby
40
+ gem 'omniauth-rails_csrf_protection'
41
+ ```
42
+
34
43
  Then install:
35
44
 
36
45
  ```bash
37
46
  $ bundle install
38
47
  ```
39
48
 
40
- See our [contributing guide](CONTRIBUTING.md) for information on local installation for development.
49
+ See our [contributing guide](CONTRIBUTING.md) for information on local installation for development.
41
50
 
42
51
  ## Getting Started
43
52
 
@@ -55,7 +64,7 @@ All of these tasks and more are covered in our [Ruby on Rails Quickstart](https:
55
64
  To send additional parameters during login, you can specify them when you register the provider:
56
65
 
57
66
  ```ruby
58
- provider
67
+ provider
59
68
  :auth0,
60
69
  ENV['AUTH0_CLIENT_ID'],
61
70
  ENV['AUTH0_CLIENT_SECRET'],
@@ -63,19 +72,13 @@ provider
63
72
  {
64
73
  authorize_params: {
65
74
  scope: 'openid read:users write:order',
66
- audience: 'https://mydomain/api'
75
+ audience: 'https://mydomain/api',
76
+ max_age: 3600 # time in seconds authentication is valid
67
77
  }
68
78
  }
69
79
  ```
70
80
 
71
- ... which will tell the strategy to send those parameters on every Auth request.
72
-
73
- Or you can do it for a specific authentication request by adding them to the query parameters of the redirect URL. Allowed parameters are `connection` and `prompt`:
74
-
75
- ```ruby
76
- redirect_to '/auth/auth0?connection=google-oauth2'
77
- redirect_to '/auth/auth0?prompt=none'
78
- ```
81
+ ... which will tell the strategy to send those parameters on every authentication request.
79
82
 
80
83
  ### Authentication hash
81
84
 
@@ -119,6 +122,17 @@ The Auth0 strategy will provide the standard OmniAuth hash attributes:
119
122
  }
120
123
  ```
121
124
 
125
+ ### Query Parameter Options
126
+
127
+ In some scenarios, you may need to pass specific query parameters to `/authorize`. The following parameters are available to enable this:
128
+
129
+ - `connection`
130
+ - `connection_scope`
131
+ - `prompt`
132
+ - `screen_hint` (only relevant to New Universal Login Experience)
133
+
134
+ Simply pass these query parameters to your OmniAuth redirect endpoint to enable their behavior.
135
+
122
136
  ## Contribution
123
137
 
124
138
  We appreciate feedback and contribution to this repo! Before you get started, please see the following:
@@ -129,10 +143,9 @@ We appreciate feedback and contribution to this repo! Before you get started, pl
129
143
 
130
144
  ## Support + Feedback
131
145
 
132
-
133
146
  - Use [Community](https://community.auth0.com/) for usage, questions, specific cases.
134
147
  - Use [Issues](https://github.com/auth0/omniauth-auth0/issues) here for code-level support and bug reports.
135
- - Paid customers can use [Support](https://support.auth0.com/) to submit a trouble ticket for production-affecting issues.
148
+ - Paid customers can use [Support](https://support.auth0.com/) to submit a trouble ticket for production-affecting issues.
136
149
 
137
150
  ## Vulnerability Reporting
138
151
 
@@ -154,3 +167,6 @@ Auth0 helps you to easily:
154
167
  ## License
155
168
 
156
169
  The OmniAuth Auth0 strategy is licensed under MIT - [LICENSE](LICENSE)
170
+
171
+
172
+ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fauth0%2Fomniauth-auth0.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fauth0%2Fomniauth-auth0?ref=badge_large)