auth0 4.9.0 → 4.14.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 858abdf1d6f43a1c046e45f1ad9c70df2115e96c75d78e135261dd3477e630d2
4
- data.tar.gz: bf9f13ae3f7cb4e6881a5852fe9a0f95f2dcb7b3b5181c72388c785a2fc6032b
3
+ metadata.gz: bc1dbd26961a59010e19ffa75076a5e28080735900aaaf4c9c8537656094809e
4
+ data.tar.gz: 27520c6efd37f253b532d6521b5e46599d9a093dd46500d46997ff3e7f9030ad
5
5
  SHA512:
6
- metadata.gz: f9e9da5fd0c9aadbead0bb27e2e587893bc7b32cf670fc5237e2ae9adf29fd8d0e315e0b1135f5a68c4d0acd0be7570a803155d1c6e2a32a73a7c7eaf4439694
7
- data.tar.gz: 6676874d86123b45e996228cfe3d019baae92ffb6ad1f319cde212bd23bb44480a4e7ac434ca034ad303d4290b712ed80eeb957e2bc75216b00cc2dd7a7d2cdd
6
+ metadata.gz: a95ccde21a047bd9689f04cb972caf49d7a1cfb409bb72275b0bd0464d6c75f29d1ddb2475ec377b619230c71dfa13f08543557c33a8fc93f40521c322b190d7
7
+ data.tar.gz: fe75df00376402b03ba921d0bd7bba8d1df3c725966f282bca92948ba18a7343a1c544edc2b722e98b963678d7469d884204e1579d3bf9056fa65574fd4df851
@@ -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,42 +10,14 @@ 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
- - .snyk
19
13
  - save_cache:
20
14
  key: gems-v2--{{ checksum "Gemfile.lock" }}
21
15
  paths:
22
16
  - vendor/bundle
23
17
  # Must define DOMAIN, CLIENT_ID, CLIENT_SECRET and MASTER_JWT env
24
18
  - run: bundle exec rake test
25
- snyk:
26
- docker:
27
- - image: snyk/snyk-cli:rubygems
28
- steps:
29
- - attach_workspace:
30
- at: .
31
- - run: snyk test
32
- - run:
33
- command: |
34
- if [[ "${CIRCLE_BRANCH}" == "master" ]]
35
- then
36
- snyk monitor --org=auth0-sdks
37
- fi
38
- when: always
39
19
 
40
20
  workflows:
41
21
  tests:
42
22
  jobs:
43
- - run-tests
44
- snyk:
45
- jobs:
46
- - run-tests
47
- - snyk:
48
- # Must define SNYK_TOKEN env
49
- context: snyk-env
50
- requires:
51
- - run-tests
23
+ - run-tests
@@ -0,0 +1,2 @@
1
+ DOMAIN=
2
+ CLIENT_ID=
@@ -1 +1 @@
1
- * @auth0/sdk-team-approvers
1
+ * @auth0/dx-sdks-approver
@@ -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! 🙇‍♂️
@@ -1,4 +1,6 @@
1
1
  inherit_from: .rubocop_todo.yml
2
+ require:
3
+ - rubocop-rails
2
4
  Rails:
3
5
  Enabled: true
4
6
  AllCops:
@@ -1,5 +1,70 @@
1
1
  # Change Log
2
2
 
3
+ ## [v4.14.0](https://github.com/auth0/ruby-auth0/tree/v4.14.0) (2020-07-20)
4
+
5
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v4.13.0...v4.14.0)
6
+
7
+ **Deprecated**
8
+
9
+ - Deprecate mgmt v1 calls [\#230](https://github.com/auth0/ruby-auth0/pull/230) ([davidpatrick](https://github.com/davidpatrick))
10
+
11
+ **Removed**
12
+
13
+ - Remove iat claim value check [\#229](https://github.com/auth0/ruby-auth0/pull/229) ([lbalmaceda](https://github.com/lbalmaceda))
14
+
15
+ **Fixed**
16
+
17
+ - Handle missing reset header [\#228](https://github.com/auth0/ruby-auth0/pull/228) ([Widcket](https://github.com/Widcket))
18
+
19
+ ## [v4.13.0](https://github.com/auth0/ruby-auth0/tree/v4.13.0) (2020-06-18)
20
+
21
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v4.12.0...v4.13.0)
22
+
23
+ **Added**
24
+
25
+ - Add prompts endpoints [\#205](https://github.com/auth0/ruby-auth0/pull/205) ([unhappychoice](https://github.com/unhappychoice))
26
+
27
+ **Fixed**
28
+
29
+ - Fix missing to_json [\#212](https://github.com/auth0/ruby-auth0/pull/212) ([qortex](https://github.com/qortex))
30
+
31
+ ## [v4.12.0](https://github.com/auth0/ruby-auth0/tree/v4.12.0) (2020-06-10)
32
+
33
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v4.11.0...v4.12.0)
34
+
35
+ **Added**
36
+
37
+ - Improve OIDC compliance [SDK-987] [\#225](https://github.com/auth0/ruby-auth0/pull/225) ([Widcket](https://github.com/Widcket))
38
+
39
+ **Security**
40
+
41
+ - Bump activesupport from 6.0.3 to 6.0.3.1 [\#221](https://github.com/auth0/ruby-auth0/pull/221) ([dependabot[bot]](https://github.com/apps/dependabot))
42
+ - Bump actionpack from 6.0.3 to 6.0.3.1 [\#220](https://github.com/auth0/ruby-auth0/pull/220) ([dependabot[bot]](https://github.com/apps/dependabot))
43
+
44
+ ## [v4.11.0](https://github.com/auth0/ruby-auth0/tree/v4.11.0) (2020-05-06)
45
+
46
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v4.10.0...v4.11.0)
47
+
48
+ **Added**
49
+
50
+ - [SDK-1542] Add client secret to Passwordless flow since it is now required [\#217](https://github.com/auth0/ruby-auth0/pull/217) ([stevehobbsdev](https://github.com/stevehobbsdev))
51
+
52
+ ## [v4.10.0](https://github.com/auth0/ruby-auth0/tree/v4.10.0) (2020-04-23)
53
+
54
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v4.9.0...v4.10.0)
55
+
56
+ **Added**
57
+
58
+ - Added support for name\_filter parameter \[SDK-1607\] [\#214](https://github.com/auth0/ruby-auth0/pull/214) ([Widcket](https://github.com/Widcket))
59
+ - Pass client\_id, audience at Auth0::Api::V2::ClientGrants\#client\_grants [\#209](https://github.com/auth0/ruby-auth0/pull/209) ([hkdnet](https://github.com/hkdnet))
60
+ - Add rubocop-rails [\#200](https://github.com/auth0/ruby-auth0/pull/200) ([tknzk](https://github.com/tknzk))
61
+
62
+ **Security**
63
+
64
+ - Update rack requirement from ~\> 1.6.4 to ~\> 2.1.2 [\#206](https://github.com/auth0/ruby-auth0/pull/206) ([dependabot[bot]](https://github.com/apps/dependabot))
65
+ - Update rake requirement from ~\> 10.4 to ~\> 13.0 [\#207](https://github.com/auth0/ruby-auth0/pull/207) ([dependabot[bot]](https://github.com/apps/dependabot))
66
+ - Update dependencies and CI script [\#210](https://github.com/auth0/ruby-auth0/pull/210) ([lbalmaceda](https://github.com/lbalmaceda))
67
+
3
68
  ## [v4.9.0](https://github.com/auth0/ruby-auth0/tree/v4.9.0) (2019-09-25)
4
69
  [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v4.8.0...v4.9.0)
5
70
 
@@ -1,3 +1,15 @@
1
+ # Releasing the gem
2
+
3
+ ## Credentials set up
4
+
5
+ Make sure you have access in https://rubygems.org/gems/auth0/ and that your Ruby Gems tokens are set in `~/.gem/credentials`.
6
+
7
+ In order to generate the required changelog entry, define an environment variable `GITHUB_READ_TOKEN` with a Github API token that has READ access to `repo:public_repo`. You can generate a Github API Token [here](https://github.com/settings/tokens/new?description=GitHub%20Changelog%20Generator%20token).
8
+
9
+ Create a new Github Milestone with the version name prefixed with `v`. i.e. `v4.10.2`. Assign every Issue and Pull Request to be included on this release to that Milestone, and tag them with the `CH:xxxxxx` labels, depending on the type of change fixed or introduced there.
10
+
11
+ Finally, follow the next steps:
12
+
1
13
  ```bash
2
14
  # Install gems for exec commands
3
15
  bundle install
@@ -45,3 +57,5 @@ git push origin vX.X.X
45
57
  # Rubygems token can be updated in ~/.gem/credentials
46
58
  bundle exec gem release
47
59
  ```
60
+
61
+ The steps above were tested with Ruby `v2.5.7`.
data/Gemfile CHANGED
@@ -7,6 +7,7 @@ group :development do
7
7
  gem 'terminal-notifier-guard', require: false unless ENV['CIRCLECI']
8
8
  gem 'coveralls', require: false
9
9
  gem 'rubocop', require: false
10
+ gem 'rubocop-rails', require: false
10
11
  gem 'yard', require: false
11
12
  end
12
13
 
@@ -1,21 +1,44 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- auth0 (4.9.0)
4
+ auth0 (4.14.0)
5
+ jwt (~> 2.2.0)
5
6
  rest-client (~> 2.0.0)
7
+ zache (~> 0.12.0)
6
8
 
7
9
  GEM
8
10
  remote: https://rubygems.org/
9
11
  specs:
12
+ actionpack (6.0.3.2)
13
+ actionview (= 6.0.3.2)
14
+ activesupport (= 6.0.3.2)
15
+ rack (~> 2.0, >= 2.0.8)
16
+ rack-test (>= 0.6.3)
17
+ rails-dom-testing (~> 2.0)
18
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
19
+ actionview (6.0.3.2)
20
+ activesupport (= 6.0.3.2)
21
+ builder (~> 3.1)
22
+ erubi (~> 1.4)
23
+ rails-dom-testing (~> 2.0)
24
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
+ activesupport (6.0.3.2)
26
+ concurrent-ruby (~> 1.0, >= 1.0.2)
27
+ i18n (>= 0.7, < 2)
28
+ minitest (~> 5.1)
29
+ tzinfo (~> 1.1)
30
+ zeitwerk (~> 2.2, >= 2.2.2)
10
31
  addressable (2.7.0)
11
32
  public_suffix (>= 2.0.2, < 5.0)
12
- ast (2.4.0)
13
- codecov (0.1.14)
33
+ ast (2.4.1)
34
+ builder (3.2.4)
35
+ codecov (0.2.2)
36
+ colorize
14
37
  json
15
38
  simplecov
16
- url
17
- coderay (1.1.2)
18
- concurrent-ruby (1.1.5)
39
+ coderay (1.1.3)
40
+ colorize (0.8.1)
41
+ concurrent-ruby (1.1.6)
19
42
  coveralls (0.7.1)
20
43
  multi_json (~> 1.3)
21
44
  rest-client
@@ -24,22 +47,25 @@ GEM
24
47
  thor
25
48
  crack (0.4.3)
26
49
  safe_yaml (~> 1.0.0)
27
- diff-lcs (1.3)
50
+ crass (1.0.6)
51
+ diff-lcs (1.4.4)
28
52
  docile (1.3.2)
29
53
  domain_name (0.5.20190701)
30
54
  unf (>= 0.0.5, < 1.0.0)
31
- dotenv (2.0.1)
32
- dotenv-rails (2.0.1)
33
- dotenv (= 2.0.1)
55
+ dotenv (2.7.6)
56
+ dotenv-rails (2.7.6)
57
+ dotenv (= 2.7.6)
58
+ railties (>= 3.2)
59
+ erubi (1.9.0)
34
60
  faker (1.9.6)
35
61
  i18n (>= 0.7)
36
- ffi (1.11.1)
62
+ ffi (1.13.1)
37
63
  formatador (0.2.5)
38
- fuubar (2.4.1)
64
+ fuubar (2.5.0)
39
65
  rspec-core (~> 3.0)
40
66
  ruby-progressbar (~> 1.4)
41
67
  gem-release (0.7.4)
42
- guard (2.15.1)
68
+ guard (2.16.2)
43
69
  formatador (>= 0.2.4)
44
70
  listen (>= 2.7, < 4.0)
45
71
  lumberjack (>= 1.0.12, < 2.0)
@@ -53,96 +79,127 @@ GEM
53
79
  guard (~> 2.1)
54
80
  guard-compat (~> 1.1)
55
81
  rspec (>= 2.99.0, < 4.0)
56
- hashdiff (1.0.0)
82
+ hashdiff (1.0.1)
57
83
  http-cookie (1.0.3)
58
84
  domain_name (~> 0.5)
59
- i18n (1.6.0)
85
+ i18n (1.8.4)
60
86
  concurrent-ruby (~> 1.0)
61
- jaro_winkler (1.5.3)
62
- json (2.2.0)
63
- listen (3.1.5)
64
- rb-fsevent (~> 0.9, >= 0.9.4)
65
- rb-inotify (~> 0.9, >= 0.9.7)
66
- ruby_dep (~> 1.2)
67
- lumberjack (1.0.13)
87
+ json (2.3.1)
88
+ jwt (2.2.1)
89
+ listen (3.2.1)
90
+ rb-fsevent (~> 0.10, >= 0.10.3)
91
+ rb-inotify (~> 0.9, >= 0.9.10)
92
+ loofah (2.6.0)
93
+ crass (~> 1.0.2)
94
+ nokogiri (>= 1.5.9)
95
+ lumberjack (1.2.6)
68
96
  method_source (0.8.2)
69
- mime-types (3.3)
97
+ mime-types (3.3.1)
70
98
  mime-types-data (~> 3.2015)
71
- mime-types-data (3.2019.0904)
72
- multi_json (1.13.1)
99
+ mime-types-data (3.2020.0512)
100
+ mini_portile2 (2.4.0)
101
+ minitest (5.14.1)
102
+ multi_json (1.15.0)
73
103
  nenv (0.3.0)
74
104
  netrc (0.11.0)
105
+ nokogiri (1.10.10)
106
+ mini_portile2 (~> 2.4.0)
75
107
  notiffany (0.1.3)
76
108
  nenv (~> 0.1)
77
109
  shellany (~> 0.0)
78
- parallel (1.17.0)
79
- parser (2.6.4.1)
80
- ast (~> 2.4.0)
110
+ parallel (1.19.2)
111
+ parser (2.7.1.4)
112
+ ast (~> 2.4.1)
81
113
  pry (0.10.4)
82
114
  coderay (~> 1.1.0)
83
115
  method_source (~> 0.8.1)
84
116
  slop (~> 3.4)
85
117
  pry-nav (0.2.4)
86
118
  pry (>= 0.9.10, < 0.11.0)
87
- public_suffix (4.0.1)
88
- rack (1.6.11)
119
+ public_suffix (4.0.5)
120
+ rack (2.1.4)
89
121
  rack-test (0.8.3)
90
122
  rack (>= 1.0, < 3)
123
+ rails-dom-testing (2.0.3)
124
+ activesupport (>= 4.2.0)
125
+ nokogiri (>= 1.6)
126
+ rails-html-sanitizer (1.3.0)
127
+ loofah (~> 2.3)
128
+ railties (6.0.3.2)
129
+ actionpack (= 6.0.3.2)
130
+ activesupport (= 6.0.3.2)
131
+ method_source
132
+ rake (>= 0.8.7)
133
+ thor (>= 0.20.3, < 2.0)
91
134
  rainbow (3.0.0)
92
- rake (10.5.0)
93
- rb-fsevent (0.10.3)
94
- rb-inotify (0.10.0)
135
+ rake (13.0.1)
136
+ rb-fsevent (0.10.4)
137
+ rb-inotify (0.10.1)
95
138
  ffi (~> 1.0)
139
+ regexp_parser (1.7.1)
96
140
  rest-client (2.0.2)
97
141
  http-cookie (>= 1.0.2, < 2.0)
98
142
  mime-types (>= 1.16, < 4.0)
99
143
  netrc (~> 0.8)
100
- rspec (3.8.0)
101
- rspec-core (~> 3.8.0)
102
- rspec-expectations (~> 3.8.0)
103
- rspec-mocks (~> 3.8.0)
104
- rspec-core (3.8.2)
105
- rspec-support (~> 3.8.0)
106
- rspec-expectations (3.8.4)
144
+ rexml (3.2.4)
145
+ rspec (3.9.0)
146
+ rspec-core (~> 3.9.0)
147
+ rspec-expectations (~> 3.9.0)
148
+ rspec-mocks (~> 3.9.0)
149
+ rspec-core (3.9.2)
150
+ rspec-support (~> 3.9.3)
151
+ rspec-expectations (3.9.2)
107
152
  diff-lcs (>= 1.2.0, < 2.0)
108
- rspec-support (~> 3.8.0)
109
- rspec-mocks (3.8.1)
153
+ rspec-support (~> 3.9.0)
154
+ rspec-mocks (3.9.1)
110
155
  diff-lcs (>= 1.2.0, < 2.0)
111
- rspec-support (~> 3.8.0)
112
- rspec-support (3.8.2)
113
- rubocop (0.74.0)
114
- jaro_winkler (~> 1.5.1)
156
+ rspec-support (~> 3.9.0)
157
+ rspec-support (3.9.3)
158
+ rubocop (0.88.0)
115
159
  parallel (~> 1.10)
116
- parser (>= 2.6)
160
+ parser (>= 2.7.1.1)
117
161
  rainbow (>= 2.2.2, < 4.0)
162
+ regexp_parser (>= 1.7)
163
+ rexml
164
+ rubocop-ast (>= 0.1.0, < 1.0)
118
165
  ruby-progressbar (~> 1.7)
119
- unicode-display_width (>= 1.4.0, < 1.7)
166
+ unicode-display_width (>= 1.4.0, < 2.0)
167
+ rubocop-ast (0.2.0)
168
+ parser (>= 2.7.0.1)
169
+ rubocop-rails (2.7.0)
170
+ activesupport (>= 4.2.0)
171
+ rack (>= 1.1)
172
+ rubocop (>= 0.87.0)
120
173
  ruby-progressbar (1.10.1)
121
- ruby_dep (1.5.0)
122
174
  safe_yaml (1.0.5)
123
175
  shellany (0.0.1)
124
- simplecov (0.17.1)
176
+ simplecov (0.18.5)
125
177
  docile (~> 1.1)
126
- json (>= 1.8, < 3)
127
- simplecov-html (~> 0.10.0)
128
- simplecov-html (0.10.2)
178
+ simplecov-html (~> 0.11)
179
+ simplecov-html (0.12.2)
129
180
  slop (3.6.0)
181
+ sync (0.5.0)
130
182
  term-ansicolor (1.7.1)
131
183
  tins (~> 1.0)
132
184
  terminal-notifier-guard (1.7.0)
133
- thor (0.20.3)
134
- tins (1.21.1)
185
+ thor (1.0.1)
186
+ thread_safe (0.3.6)
187
+ tins (1.25.0)
188
+ sync
189
+ tzinfo (1.2.7)
190
+ thread_safe (~> 0.1)
135
191
  unf (0.1.4)
136
192
  unf_ext
137
- unf_ext (0.0.7.6)
138
- unicode-display_width (1.6.0)
139
- url (0.3.2)
140
- vcr (5.0.0)
141
- webmock (3.7.5)
193
+ unf_ext (0.0.7.7)
194
+ unicode-display_width (1.7.0)
195
+ vcr (6.0.0)
196
+ webmock (3.8.3)
142
197
  addressable (>= 2.3.6)
143
198
  crack (>= 0.3.2)
144
199
  hashdiff (>= 0.4.0, < 2.0.0)
145
- yard (0.9.20)
200
+ yard (0.9.25)
201
+ zache (0.12.0)
202
+ zeitwerk (2.4.0)
146
203
 
147
204
  PLATFORMS
148
205
  ruby
@@ -158,11 +215,12 @@ DEPENDENCIES
158
215
  guard-rspec (~> 4.5)
159
216
  pry (~> 0.10)
160
217
  pry-nav (~> 0.2.4)
161
- rack (~> 1.6.4)
218
+ rack (~> 2.1.2)
162
219
  rack-test (~> 0.6)
163
- rake (~> 10.4)
220
+ rake (~> 13.0)
164
221
  rspec (~> 3.1, >= 3.1.0)
165
222
  rubocop
223
+ rubocop-rails
166
224
  simplecov
167
225
  terminal-notifier-guard
168
226
  vcr