oauth2 2.0.14 → 2.0.16
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 +84 -165
- data/CONTRIBUTING.md +36 -4
- data/FUNDING.md +2 -2
- data/README.md +191 -43
- data/SECURITY.md +3 -17
- data/lib/oauth2/access_token.rb +8 -6
- data/lib/oauth2/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +202 -23
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da97472c8338b07cf3f6022363d67d76766eaf2a321de6371d3549580115a636
|
4
|
+
data.tar.gz: 9fd1a0061596425903a1e820b3db93ea80e1b60fce9a5e3f0fc7fdbf3b075631
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36ee9469a338201a06e52ef7a6d3a7390bc6f72e4362a7a14e604e53550b35a3d2fe6f27f15ee66e6e6500a56da3963e009b005ba4ccf28db42ff98b0302f23b
|
7
|
+
data.tar.gz: ea6734018d8a32ce265a33f39d2151cb42dc8d2b76282e3788fdd4806dc719aa82c7052ffd5653e855e9a105004fa3cc6a7dc02fdf6265bd45cd12412b6cbbec
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -24,6 +24,57 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
24
24
|
### Fixed
|
25
25
|
### Security
|
26
26
|
|
27
|
+
## [2.0.16] - 2025-09-14
|
28
|
+
- TAG: [v2.0.16][2.0.16t]
|
29
|
+
- COVERAGE: 96.33% -- 394/409 lines in 14 files
|
30
|
+
- BRANCH COVERAGE: 86.49% -- 64/74 branches in 14 files
|
31
|
+
- 90.48% documented
|
32
|
+
### Added
|
33
|
+
- [gh!680—][gh!680]E2E example using mock test server added in v2.0.11 by @pboling
|
34
|
+
- mock-oauth2-server upgraded to v2.3.0
|
35
|
+
- https://github.com/navikt/mock-oauth2-server
|
36
|
+
- `docker compose -f docker-compose-ssl.yml up -d --wait`
|
37
|
+
- `ruby examples/e2e.rb`
|
38
|
+
- `docker compose -f docker-compose-ssl.yml down`
|
39
|
+
- mock server readiness wait is 90s
|
40
|
+
- override via E2E_WAIT_TIMEOUT
|
41
|
+
- [gh!676][gh!676], [gh!679][gh!679] - Apache SkyWalking Eyes dependency license check by @pboling
|
42
|
+
### Changed
|
43
|
+
- [gh!678][gh!678] - Many improvements to make CI more resilient (past/future proof) by @pboling
|
44
|
+
- [gh!681][gh!681] - Upgrade to kettle-dev v1.1.19
|
45
|
+
### Security
|
46
|
+
[gh!676]: https://github.com/ruby-oauth/oauth2/pull/676
|
47
|
+
[gh!678]: https://github.com/ruby-oauth/oauth2/pull/678
|
48
|
+
[gh!679]: https://github.com/ruby-oauth/oauth2/pull/679
|
49
|
+
[gh!680]: https://github.com/ruby-oauth/oauth2/pull/680
|
50
|
+
[gh!681]: https://github.com/ruby-oauth/oauth2/pull/681
|
51
|
+
|
52
|
+
## [2.0.15] - 2025-09-08
|
53
|
+
- TAG: [v2.0.15][2.0.15t]
|
54
|
+
- COVERAGE: 100.00% -- 519/519 lines in 14 files
|
55
|
+
- BRANCH COVERAGE: 100.00% -- 174/174 branches in 14 files
|
56
|
+
- 90.48% documented
|
57
|
+
### Added
|
58
|
+
- [gh!671][gh!671] - Complete documentation example for Instagram by @pboling
|
59
|
+
- .env.local.example for contributor happiness
|
60
|
+
- note lack of builds for JRuby 9.2, 9.3 & Truffleruby 22.3, 23.0
|
61
|
+
- [actions/runner - issues/2347][GHA-continue-on-error-ui]
|
62
|
+
- [community/discussions/15452][GHA-allow-failure]
|
63
|
+
- [gh!670][gh!670] - AccessToken: verb-dependent token transmission mode by @mrj
|
64
|
+
- e.g., Instagram GET=:query, POST/DELETE=:header
|
65
|
+
### Changed
|
66
|
+
- [gh!669][gh!669] - Upgrade to kettle-dev v1.1.9 by @pboling
|
67
|
+
### Fixed
|
68
|
+
- Remove accidentally duplicated lines, and fix typos in CHANGELOG.md
|
69
|
+
- point badge to the correct workflow for Ruby 2.3 (caboose.yml)
|
70
|
+
### Security
|
71
|
+
|
72
|
+
[gh!669]: https://github.com/ruby-oauth/oauth2/pull/669
|
73
|
+
[gh!670]: https://github.com/ruby-oauth/oauth2/pull/670
|
74
|
+
[gh!671]: https://github.com/ruby-oauth/oauth2/pull/671
|
75
|
+
[GHA-continue-on-error-ui]: https://github.com/actions/runner/issues/2347
|
76
|
+
[GHA-allow-failure]: https://github.com/orgs/community/discussions/15452
|
77
|
+
|
27
78
|
## [2.0.14] - 2025-08-31
|
28
79
|
- TAG: [v2.0.14][2.0.14t]
|
29
80
|
- COVERAGE: 100.00% -- 519/519 lines in 14 files
|
@@ -31,25 +82,25 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
31
82
|
- 90.48% documented
|
32
83
|
### Added
|
33
84
|
- improved documentation by @pboling
|
34
|
-
- [
|
35
|
-
- [
|
85
|
+
- [gh!665][gh!665] - Document Mutual TLS (mTLS) usage with example in README (connection_opts.ssl client_cert/client_key and auth_scheme: :tls_client_auth) by @pboling
|
86
|
+
- [gh!666][gh!666] - Document usage of flat query params using Faraday::FlatParamsEncoder, with example URI, in README by @pboling
|
36
87
|
- Spec: verify flat params are preserved with Faraday::FlatParamsEncoder (skips on Faraday without FlatParamsEncoder)
|
37
|
-
- [
|
88
|
+
- [gh!662][gh!662] - documentation notes in code comments and README highlighting OAuth 2.1 differences, with references, by @pboling
|
38
89
|
- PKCE required for auth code,
|
39
90
|
- exact redirect URI match,
|
40
91
|
- implicit/password grants omitted,
|
41
92
|
- avoid bearer tokens in query,
|
42
93
|
- refresh token guidance for public clients,
|
43
|
-
- simplified client definitions
|
44
|
-
- [
|
94
|
+
- simplified client definitions
|
95
|
+
- [gh!663][gh!663] - document how to implement an OIDC client with this gem in OIDC.md by @pboling
|
45
96
|
- also, list libraries built on top of the oauth2 gem that implement OIDC
|
46
|
-
- [
|
97
|
+
- [gh!664][gh!664] - README: Add example for JHipster UAA (Spring Cloud) password grant, converted from Postman/Net::HTTP by @pboling
|
47
98
|
|
48
|
-
[
|
49
|
-
[
|
50
|
-
[
|
51
|
-
[
|
52
|
-
[
|
99
|
+
[gh!662]: https://github.com/ruby-oauth/oauth2/pull/662
|
100
|
+
[gh!663]: https://github.com/ruby-oauth/oauth2/pull/663
|
101
|
+
[gh!664]: https://github.com/ruby-oauth/oauth2/pull/664
|
102
|
+
[gh!665]: https://github.com/ruby-oauth/oauth2/pull/665
|
103
|
+
[gh!666]: https://github.com/ruby-oauth/oauth2/pull/666
|
53
104
|
|
54
105
|
## [2.0.13] - 2025-08-30
|
55
106
|
- TAG: [v2.0.13][2.0.13t]
|
@@ -57,23 +108,23 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
57
108
|
- BRANCH COVERAGE: 100.00% -- 174/174 branches in 14 files
|
58
109
|
- 90.48% documented
|
59
110
|
### Added
|
60
|
-
- [
|
61
|
-
- [
|
62
|
-
- [
|
63
|
-
- [
|
64
|
-
- [
|
111
|
+
- [gh!656][gh!656] - Support revocation with URL-encoded parameters
|
112
|
+
- [gh!660][gh!660] - Inline yard documentation by @pboling
|
113
|
+
- [gh!660][gh!660] - Complete RBS types documentation by @pboling
|
114
|
+
- [gh!660][gh!660]- (more) Comprehensive documentation / examples by @pboling
|
115
|
+
- [gh!657][gh!657] - Updated documentation for org-rename by @pboling
|
65
116
|
- More funding links by @Aboling0
|
66
117
|
- Documentation: Added docs/OIDC.md with OIDC 1.0 overview, example, and references
|
67
118
|
### Changed
|
68
119
|
- Upgrade Code of Conduct to Contributor Covenant 2.1 by @pboling
|
69
|
-
- [
|
120
|
+
- [gh!660][gh!660] - Shrink post-install message by 4 lines by @pboling
|
70
121
|
### Fixed
|
71
|
-
- [
|
122
|
+
- [gh!660][gh!660] - Links in README (including link to HEAD documentation) by @pboling
|
72
123
|
### Security
|
73
124
|
|
74
|
-
[
|
75
|
-
[
|
76
|
-
[
|
125
|
+
[gh!660]: https://github.com/ruby-oauth/oauth2/pull/660
|
126
|
+
[gh!657]: https://github.com/ruby-oauth/oauth2/pull/657
|
127
|
+
[gh!656]: https://github.com/ruby-oauth/oauth2/pull/656
|
77
128
|
|
78
129
|
## [2.0.12] - 2025-05-31
|
79
130
|
- TAG: [v2.0.12][2.0.12t]
|
@@ -81,7 +132,7 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
81
132
|
- Branch Coverage: 100.0% (174 / 174)
|
82
133
|
- 80.00% documented
|
83
134
|
### Added
|
84
|
-
- [
|
135
|
+
- [gh!652][gh!652] - Support IETF rfc7515 JSON Web Signature - JWS by @mridang
|
85
136
|
- Support JWT `kid` for key discovery and management
|
86
137
|
- More Documentation by @pboling
|
87
138
|
- Documented Serialization Extensions
|
@@ -89,14 +140,11 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
89
140
|
- Documentation site @ https://oauth2.galtzo.com now complete
|
90
141
|
### Changed
|
91
142
|
- Updates to gemspec (email, funding url, post install message)
|
92
|
-
### Deprecated
|
93
|
-
### Removed
|
94
143
|
### Fixed
|
95
144
|
- Documentation Typos by @pboling
|
96
|
-
### Security
|
97
145
|
|
98
|
-
|
99
|
-
[
|
146
|
+
|
147
|
+
[gh!652]: https://github.com/ruby-oauth/oauth2/pull/652
|
100
148
|
|
101
149
|
## [2.0.11] - 2025-05-23
|
102
150
|
- TAG: [v2.0.11][2.0.11t]
|
@@ -104,11 +152,9 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
104
152
|
- BRANCH COVERAGE: 100.00% -- 172/172 branches in 14 files
|
105
153
|
- 80.00% documented
|
106
154
|
### Added
|
107
|
-
- [
|
108
|
-
- [gh651](https://github.com/ruby-oauth/oauth2/pull/651) - `:snaky_hash_klass` option (@pboling)
|
155
|
+
- [gh!651](https://github.com/ruby-oauth/oauth2/pull/651) - `:snaky_hash_klass` option (@pboling)
|
109
156
|
- More documentation
|
110
157
|
- Codeberg as ethical mirror (@pboling)
|
111
|
-
- https://codeberg.org/oauth-xx/oauth2
|
112
158
|
- https://codeberg.org/ruby-oauth/oauth2
|
113
159
|
- Don't check for cert if SKIP_GEM_SIGNING is set (@pboling)
|
114
160
|
- All runtime deps, including oauth-xx sibling gems, are now tested against HEAD (@pboling)
|
@@ -116,19 +162,15 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
116
162
|
- YARD config, GFM compatible with relative file links (@pboling)
|
117
163
|
- Documentation site on GitHub Pages (@pboling)
|
118
164
|
- [oauth2.galtzo.com](https://oauth2.galtzo.com)
|
119
|
-
- [!649](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/649) - Test compatibility with all key minor versions of Hashie v0, v1, v2, v3, v4, v5, HEAD (@pboling)
|
120
|
-
- [gh651](https://github.com/oauth-xx/oauth2/pull/651) - Mock OAuth2 server for testing (@pboling)
|
121
165
|
- [!649](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/649) - Test compatibility with all key minor versions of Hashie v0, v1, v2, v3, v4, v5, HEAD (@pboling)
|
122
|
-
- [
|
166
|
+
- [gh!651](https://github.com/ruby-oauth/oauth2/pull/651) - Mock OAuth2 server for testing (@pboling)
|
123
167
|
- https://github.com/navikt/mock-oauth2-server
|
124
168
|
### Changed
|
125
|
-
- [
|
126
|
-
- [gh651](https://github.com/ruby-oauth/oauth2/pull/651) - Upgraded to snaky_hash v2.0.3 (@pboling)
|
169
|
+
- [gh!651](https://github.com/ruby-oauth/oauth2/pull/651) - Upgraded to snaky_hash v2.0.3 (@pboling)
|
127
170
|
- Provides solution for serialization issues
|
128
171
|
- Updated `spec.homepage_uri` in gemspec to GitHub Pages YARD documentation site (@pboling)
|
129
172
|
### Fixed
|
130
|
-
- [
|
131
|
-
- [gh650](https://github.com/ruby-oauth/oauth2/pull/650) - Regression in return type of `OAuth2::Response#parsed` (@pboling)
|
173
|
+
- [gh!650](https://github.com/ruby-oauth/oauth2/pull/650) - Regression in return type of `OAuth2::Response#parsed` (@pboling)
|
132
174
|
- Incorrect documentation related to silencing warnings (@pboling)
|
133
175
|
|
134
176
|
## [2.0.10] - 2025-05-17
|
@@ -137,10 +179,6 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
137
179
|
- BRANCH COVERAGE: 100.00% -- 170/170 branches in 14 files
|
138
180
|
- 79.05% documented
|
139
181
|
### Added
|
140
|
-
- [gh!632](https://github.com/oauth-xx/oauth2/pull/632) - Added `funding.yml` (@Aboling0)
|
141
|
-
- [!635](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/635) - Added `.gitlab-ci.yml` (@jessieay)
|
142
|
-
- [#638](https://gitlab.com/oauth-xx/oauth2/-/issues/638) - Documentation of support for **ILO Fundamental Principles of Rights at Work** (@pboling)
|
143
|
-
- [!642](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/642) - 20-year certificate for signing gem releases, expires 2045-04-29 (@pboling)
|
144
182
|
- [gh!632](https://github.com/ruby-oauth/oauth2/pull/632) - Added `funding.yml` (@Aboling0)
|
145
183
|
- [!635](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/635) - Added `.gitlab-ci.yml` (@jessieay)
|
146
184
|
- [#638](https://gitlab.com/ruby-oauth/oauth2/-/issues/638) - Documentation of support for **ILO Fundamental Principles of Rights at Work** (@pboling)
|
@@ -150,47 +188,26 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
150
188
|
- news_uri
|
151
189
|
- mailing_list_uri
|
152
190
|
- SHA256 and SHA512 Checksums for release
|
153
|
-
- [!643](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/643) - Add `token_name` option (@pboling)
|
154
191
|
- [!643](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/643) - Add `token_name` option (@pboling)
|
155
192
|
- Specify the parameter name that identifies the access token
|
156
|
-
- [!645](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/645) - Add `OAuth2::OAUTH_DEBUG` constant, based on `ENV["OAUTH_DEBUG"] (@pboling)
|
157
|
-
- [!646](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/646) - Add `OAuth2.config.silence_extra_tokens_warning`, default: false (@pboling)
|
158
|
-
- [!647](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/647) - Add IETF RFC 7009 Token Revocation compliant (@pboling)
|
159
193
|
- [!645](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/645) - Add `OAuth2::OAUTH_DEBUG` constant, based on `ENV["OAUTH_DEBUG"] (@pboling)
|
160
194
|
- [!646](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/646) - Add `OAuth2.config.silence_extra_tokens_warning`, default: false (@pboling)
|
161
195
|
- [!647](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/647) - Add IETF RFC 7009 Token Revocation compliant (@pboling)
|
162
196
|
- `OAuth2::Client#revoke_token`
|
163
197
|
- `OAuth2::AccessToken#revoke`
|
164
198
|
- See: https://datatracker.ietf.org/doc/html/rfc7009
|
165
|
-
- [gh!644](https://github.com/oauth-xx/oauth2/pull/644), [gh!645](https://github.com/oauth-xx/oauth2/pull/645) - Added CITATION.cff (@Aboling0)
|
166
|
-
- [!648](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/648) - Improved documentation (@pboling)
|
167
199
|
- [gh!644](https://github.com/ruby-oauth/oauth2/pull/644), [gh!645](https://github.com/ruby-oauth/oauth2/pull/645) - Added CITATION.cff (@Aboling0)
|
168
200
|
- [!648](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/648) - Improved documentation (@pboling)
|
169
201
|
### Changed
|
170
202
|
- Default value of `OAuth2.config.silence_extra_tokens_warning` was `false`, now `true` (@pboling)
|
171
203
|
- Gem releases are now cryptographically signed, with a 20-year cert (@pboling)
|
172
204
|
- Allow linux distros to build release without signing, as their package managers sign independently
|
173
|
-
- [!647](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/647) - `OAuth2::AccessToken#refresh` now supports block param pass through (@pboling)
|
174
|
-
- [!647](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/647) - `OAuth2.config` is no longer writable (@pboling)
|
175
|
-
- [!647](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/647) - Errors raised by `OAuth2::AccessToken` are now always `OAuth2::Error` and have better metadata (@pboling)
|
176
205
|
- [!647](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/647) - `OAuth2::AccessToken#refresh` now supports block param pass through (@pboling)
|
177
206
|
- [!647](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/647) - `OAuth2.config` is no longer writable (@pboling)
|
178
207
|
- [!647](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/647) - Errors raised by `OAuth2::AccessToken` are now always `OAuth2::Error` and have better metadata (@pboling)
|
179
208
|
### Fixed
|
180
|
-
- [#95](https://gitlab.com/oauth-xx/oauth2/-/issues/95) - restoring an access token via `AccessToken#from_hash` (@pboling)
|
181
209
|
- [#95](https://gitlab.com/ruby-oauth/oauth2/-/issues/95) - restoring an access token via `AccessToken#from_hash` (@pboling)
|
182
210
|
- This was a 13 year old bug report. 😘
|
183
|
-
- [#619](https://gitlab.com/oauth-xx/oauth2/-/issues/619) - Internal options (like `snaky`, `raise_errors`, and `parse`) are no longer included in request (@pboling)
|
184
|
-
- [!633](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/633) - Spaces will now be encoded as `%20` instead of `+` (@nov.matake)
|
185
|
-
- [!634](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/634) - `CHANGELOG.md` documentation fix (@skuwa229)
|
186
|
-
- [!638](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/638) - fix `expired?` when `expires_in` is `0` (@disep)
|
187
|
-
- [!639](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/639) - Only instantiate `OAuth2::Error` if `raise_errors` option is `true` (@glytch2)
|
188
|
-
- [#639](https://gitlab.com/oauth-xx/oauth2/-/issues/639) - `AccessToken#to_hash` is now serializable, just a regular Hash (@pboling)
|
189
|
-
- [!640](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/640) - `README.md` documentation fix (@martinezcoder)
|
190
|
-
- [!641](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/641) - Do not include sensitive information in the `inspect` (@manuelvanrijn)
|
191
|
-
- [#641](https://gitlab.com/oauth-xx/oauth2/-/issues/641) - Made default JSON response parser more resilient (@pboling)
|
192
|
-
- [#645](https://gitlab.com/oauth-xx/oauth2/-/issues/645) - Response no longer becomes a snaky hash (@pboling)
|
193
|
-
- [gh!646](https://github.com/oauth-xx/oauth2/pull/646) - Change `require` to `require_relative` (improve performance) (@Aboling0)
|
194
211
|
- [#619](https://gitlab.com/ruby-oauth/oauth2/-/issues/619) - Internal options (like `snaky`, `raise_errors`, and `parse`) are no longer included in request (@pboling)
|
195
212
|
- [!633](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/633) - Spaces will now be encoded as `%20` instead of `+` (@nov.matake)
|
196
213
|
- [!634](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/634) - `CHANGELOG.md` documentation fix (@skuwa229)
|
@@ -214,35 +231,27 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
214
231
|
## [2.0.8] - 2022-09-01
|
215
232
|
- TAG: [v2.0.8][2.0.8t]
|
216
233
|
### Changed
|
217
|
-
- [!630](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/630) - Extract snaky_hash to external dependency (@pboling)
|
218
234
|
- [!630](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/630) - Extract snaky_hash to external dependency (@pboling)
|
219
235
|
### Added
|
220
|
-
- [!631](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/631) - New global configuration option OAuth2.config.silence_extra_tokens_warning (default: false) fixes [#628](https://gitlab.com/oauth-xx/oauth2/-/issues/628)
|
221
236
|
- [!631](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/631) - New global configuration option OAuth2.config.silence_extra_tokens_warning (default: false) fixes [#628](https://gitlab.com/ruby-oauth/oauth2/-/issues/628)
|
222
237
|
|
223
238
|
## [2.0.7] - 2022-08-22
|
224
239
|
- TAG: [v2.0.7][2.0.7t]
|
225
240
|
### Added
|
226
|
-
- [!629](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/629) - Allow POST of JSON to get token (@pboling, @terracatta)
|
227
241
|
- [!629](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/629) - Allow POST of JSON to get token (@pboling, @terracatta)
|
228
242
|
### Fixed
|
229
|
-
- [!626](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/626) - Fixes a regression in 2.0.6. Will now prefer the key order from the lookup, not the hash keys (@rickselby)
|
230
243
|
- [!626](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/626) - Fixes a regression in 2.0.6. Will now prefer the key order from the lookup, not the hash keys (@rickselby)
|
231
244
|
- Note: This fixes compatibility with `omniauth-oauth2` and AWS
|
232
|
-
- [!625](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/625) - Fixes the printed version in the post install message (@hasghari)
|
233
245
|
- [!625](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/625) - Fixes the printed version in the post install message (@hasghari)
|
234
246
|
|
235
247
|
## [2.0.6] - 2022-07-13
|
236
248
|
- TAG: [v2.0.6][2.0.6t]
|
237
249
|
### Fixed
|
238
|
-
- [!624](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/624) - Fixes a [regression](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/623) in v2.0.5, where an error would be raised in refresh_token flows due to (legitimate) lack of access_token (@pboling)
|
239
250
|
- [!624](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/624) - Fixes a [regression](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/623) in v2.0.5, where an error would be raised in refresh_token flows due to (legitimate) lack of access_token (@pboling)
|
240
251
|
|
241
252
|
## [2.0.5] - 2022-07-07
|
242
253
|
- TAG: [v2.0.5][2.0.5t]
|
243
254
|
### Fixed
|
244
|
-
- [!620](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/620) - Documentation improvements, to help with upgrading (@swanson)
|
245
|
-
- [!621](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/621) - Fixed [#528](https://gitlab.com/oauth-xx/oauth2/-/issues/528) and [#619](https://gitlab.com/oauth-xx/oauth2/-/issues/619) (@pboling)
|
246
255
|
- [!620](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/620) - Documentation improvements, to help with upgrading (@swanson)
|
247
256
|
- [!621](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/621) - Fixed [#528](https://gitlab.com/ruby-oauth/oauth2/-/issues/528) and [#619](https://gitlab.com/ruby-oauth/oauth2/-/issues/619) (@pboling)
|
248
257
|
- All data in responses is now returned, with the access token removed and set as `token`
|
@@ -254,28 +263,20 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
254
263
|
## [2.0.4] - 2022-07-01
|
255
264
|
- TAG: [v2.0.4][2.0.4t]
|
256
265
|
### Fixed
|
257
|
-
- [!618](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/618) - In some scenarios the `snaky` option default value was not applied (@pboling)
|
258
266
|
- [!618](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/618) - In some scenarios the `snaky` option default value was not applied (@pboling)
|
259
267
|
|
260
268
|
## [2.0.3] - 2022-06-28
|
261
269
|
- TAG: [v2.0.3][2.0.3t]
|
262
270
|
### Added
|
263
|
-
- [!611](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/611) - Proper deprecation warnings for `extract_access_token` argument (@pboling)
|
264
|
-
- [!612](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/612) - Add `snaky: false` option to skip conversion to `OAuth2::SnakyHash` (default: true) (@pboling)
|
265
271
|
- [!611](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/611) - Proper deprecation warnings for `extract_access_token` argument (@pboling)
|
266
272
|
- [!612](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/612) - Add `snaky: false` option to skip conversion to `OAuth2::SnakyHash` (default: true) (@pboling)
|
267
273
|
### Fixed
|
268
|
-
- [!608](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/608) - Wrap `Faraday::TimeoutError` in `OAuth2::TimeoutError` (@nbibler)
|
269
|
-
- [!615](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/615) - Fix support for requests with blocks, see `Faraday::Connection#run_request` (@pboling)
|
270
274
|
- [!608](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/608) - Wrap `Faraday::TimeoutError` in `OAuth2::TimeoutError` (@nbibler)
|
271
275
|
- [!615](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/615) - Fix support for requests with blocks, see `Faraday::Connection#run_request` (@pboling)
|
272
276
|
|
273
277
|
## [2.0.2] - 2022-06-24
|
274
278
|
- TAG: [v2.0.2][2.0.2t]
|
275
279
|
### Fixed
|
276
|
-
- [!604](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/604) - Wrap `Faraday::TimeoutError` in `OAuth2::TimeoutError` (@stanhu)
|
277
|
-
- [!606](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/606) - Ruby 2.7 deprecation warning fix: Move `access_token_class` parameter into `Client` constructor (@stanhu)
|
278
|
-
- [!607](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/607) - CHANGELOG correction, reference to `OAuth2::ConnectionError` (@zavan)
|
279
280
|
- [!604](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/604) - Wrap `Faraday::TimeoutError` in `OAuth2::TimeoutError` (@stanhu)
|
280
281
|
- [!606](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/606) - Ruby 2.7 deprecation warning fix: Move `access_token_class` parameter into `Client` constructor (@stanhu)
|
281
282
|
- [!607](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/607) - CHANGELOG correction, reference to `OAuth2::ConnectionError` (@zavan)
|
@@ -289,32 +290,6 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
289
290
|
## [2.0.0] - 2022-06-21
|
290
291
|
- TAG: [v2.0.0][2.0.0t]
|
291
292
|
### Added
|
292
|
-
- [!158](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/158), [!344](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/344) - Optionally pass raw response to parsers (@niels)
|
293
|
-
- [!190](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/190), [!332](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/332), [!334](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/334), [!335](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/335), [!360](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/360), [!426](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/426), [!427](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/427), [!461](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/461) - Documentation (@josephpage, @pboling, @meganemura, @joshRpowell, @elliotcm)
|
294
|
-
- [!220](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/220) - Support IETF rfc7523 JWT Bearer Tokens Draft 04+ (@jhmoore)
|
295
|
-
- [!298](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/298) - Set the response object on the access token on Client#get_token for debugging (@cpetschnig)
|
296
|
-
- [!305](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/305) - Option: `OAuth2::Client#get_token` - `:access_token_class` (`AccessToken`); user specified class to use for all calls to `get_token` (@styd)
|
297
|
-
- [!346](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/571) - Modern gem structure (@pboling)
|
298
|
-
- [!351](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/351) - Support Jruby 9k (@pboling)
|
299
|
-
- [!362](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/362) - Support SemVer release version scheme (@pboling)
|
300
|
-
- [!363](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/363) - New method `OAuth2::AccessToken#refresh!` same as old `refresh`, with backwards compatibility alias (@pboling)
|
301
|
-
- [!364](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/364) - Support `application/hal+json` format (@pboling)
|
302
|
-
- [!365](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/365) - Support `application/vnd.collection+json` format (@pboling)
|
303
|
-
- [!376](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/376) - _Documentation_: Example / Test for Google 2-legged JWT (@jhmoore)
|
304
|
-
- [!381](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/381) - Spec for extra header params on client credentials (@nikz)
|
305
|
-
- [!394](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/394) - Option: `OAuth2::AccessToken#initialize` - `:expires_latency` (`nil`); number of seconds by which AccessToken validity will be reduced to offset latency (@klippx)
|
306
|
-
- [!412](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/412) - Support `application/vdn.api+json` format (from jsonapi.org) (@david-christensen)
|
307
|
-
- [!413](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/413) - _Documentation_: License scan and report (@meganemura)
|
308
|
-
- [!442](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/442) - Option: `OAuth2::Client#initialize` - `:logger` (`::Logger.new($stdout)`) logger to use when OAUTH_DEBUG is enabled (for parity with `1-4-stable` branch) (@rthbound)
|
309
|
-
- [!494](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/494) - Support [OIDC 1.0 Private Key JWT](https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication); based on the OAuth JWT assertion specification [(RFC 7523)](https://tools.ietf.org/html/rfc7523) (@SteveyblamWork)
|
310
|
-
- [!549](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/549) - Wrap `Faraday::ConnectionFailed` in `OAuth2::ConnectionError` (@nikkypx)
|
311
|
-
- [!550](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/550) - Raise error if location header not present when redirecting (@stanhu)
|
312
|
-
- [!552](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/552) - Add missing `version.rb` require (@ahorek)
|
313
|
-
- [!553](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/553) - Support `application/problem+json` format (@janz93)
|
314
|
-
- [!560](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/560) - Support IETF rfc6749, section 2.3.1 - don't set auth params when `nil` (@bouk)
|
315
|
-
- [!571](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/571) - Support Ruby 3.1 (@pboling)
|
316
|
-
- [!575](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/575) - Support IETF rfc7231, section 7.1.2 - relative location in redirect (@pboling)
|
317
|
-
- [!581](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/581) - _Documentation_: of breaking changes (@pboling)
|
318
293
|
- [!158](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/158), [!344](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/344) - Optionally pass raw response to parsers (@niels)
|
319
294
|
- [!190](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/190), [!332](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/332), [!334](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/334), [!335](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/335), [!360](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/360), [!426](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/426), [!427](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/427), [!461](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/461) - Documentation (@josephpage, @pboling, @meganemura, @joshRpowell, @elliotcm)
|
320
295
|
- [!220](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/220) - Support IETF rfc7523 JWT Bearer Tokens Draft 04+ (@jhmoore)
|
@@ -342,16 +317,6 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
342
317
|
- [!575](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/575) - Support IETF rfc7231, section 7.1.2 - relative location in redirect (@pboling)
|
343
318
|
- [!581](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/581) - _Documentation_: of breaking changes (@pboling)
|
344
319
|
### Changed
|
345
|
-
- [!191](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/191) - **BREAKING**: Token is expired if `expired_at` time is `now` (@davestevens)
|
346
|
-
- [!312](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/312) - **BREAKING**: Set `:basic_auth` as default for `:auth_scheme` instead of `:request_body`. This was default behavior before 1.3.0. (@tetsuya, @wy193777)
|
347
|
-
- [!317](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/317) - _Dependency_: Upgrade `jwt` to 2.x.x (@travisofthenorth)
|
348
|
-
- [!338](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/338) - _Dependency_: Switch from `Rack::Utils.escape` to `CGI.escape` (@josephpage)
|
349
|
-
- [!339](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/339), [!368](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/368), [!424](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/424), [!479](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/479), [!493](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/493), [!539](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/539), [!542](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/542), [!553](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/553) - CI Updates, code coverage, linting, spelling, type fixes, New VERSION constant (@pboling, @josephpage, @ahorek)
|
350
|
-
- [!410](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/410) - **BREAKING**: Removed the ability to call .error from an OAuth2::Response object (@jhmoore)
|
351
|
-
- [!414](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/414) - Use Base64.strict_encode64 instead of custom internal logic (@meganemura)
|
352
|
-
- [!469](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/469) - **BREAKING**: Default value for option `OAuth2::Client` - `:authorize_url` removed leading slash to work with relative paths by default (`'oauth/authorize'`) (@ghost)
|
353
|
-
- [!469](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/469) - **BREAKING**: Default value for option `OAuth2::Client` - `:token_url` removed leading slash to work with relative paths by default (`'oauth/token'`) (@ghost)
|
354
|
-
- [!507](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/507), [!575](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/575) - **BREAKING**: Transform keys to snake case, always, by default (ultimately via `rash_alt` gem)
|
355
320
|
- [!191](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/191) - **BREAKING**: Token is expired if `expired_at` time is `now` (@davestevens)
|
356
321
|
- [!312](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/312) - **BREAKING**: Set `:basic_auth` as default for `:auth_scheme` instead of `:request_body`. This was default behavior before 1.3.0. (@tetsuya, @wy193777)
|
357
322
|
- [!317](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/317) - _Dependency_: Upgrade `jwt` to 2.x.x (@travisofthenorth)
|
@@ -365,29 +330,9 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
365
330
|
- Original keys will still work as previously, in most scenarios, thanks to `rash_alt` gem.
|
366
331
|
- However, this is a _breaking_ change if you rely on `response.parsed.to_h`, as the keys in the result will be snake case.
|
367
332
|
- As of version 2.0.4 you can turn key transformation off with the `snaky: false` option.
|
368
|
-
- [!576](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/576) - **BREAKING**: Stop rescuing parsing errors (@pboling)
|
369
|
-
- [!591](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/576) - _DEPRECATION_: `OAuth2::Client` - `:extract_access_token` option is deprecated
|
370
333
|
- [!576](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/576) - **BREAKING**: Stop rescuing parsing errors (@pboling)
|
371
334
|
- [!591](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/576) - _DEPRECATION_: `OAuth2::Client` - `:extract_access_token` option is deprecated
|
372
335
|
### Fixed
|
373
|
-
- [!158](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/158), [!344](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/344) - Handling of errors when using `omniauth-facebook` (@niels)
|
374
|
-
- [!294](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/294) - Fix: "Unexpected middleware set" issue with Faraday when `OAUTH_DEBUG=true` (@spectator, @gafrom)
|
375
|
-
- [!300](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/300) - _Documentation_: `Oauth2::Error` - Error codes are strings, not symbols (@NobodysNightmare)
|
376
|
-
- [!318](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/318), [!326](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/326), [!343](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/343), [!347](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/347), [!397](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/397), [!464](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/464), [!561](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/561), [!565](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/565) - _Dependency_: Support all versions of `faraday` (see [gemfiles/README.md][gemfiles/readme] for compatibility matrix with Ruby engines & versions) (@pboling, @raimondasv, @zacharywelch, @Fudoshiki, @ryogift, @sj26, @jdelStrother)
|
377
|
-
- [!322](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/322), [!331](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/331), [!337](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/337), [!361](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/361), [!371](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/371), [!377](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/377), [!383](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/383), [!392](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/392), [!395](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/395), [!400](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/400), [!401](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/401), [!403](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/403), [!415](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/415), [!567](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/567) - Updated Rubocop, Rubocop plugins and improved code style (@pboling, @bquorning, @lautis, @spectator)
|
378
|
-
- [!328](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/328) - _Documentation_: Homepage URL is SSL (@amatsuda)
|
379
|
-
- [!339](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/339), [!479](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/479) - Update testing infrastructure for all supported Rubies (@pboling and @josephpage)
|
380
|
-
- [!366](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/366) - **Security**: Fix logging to `$stdout` of request and response bodies via Faraday's logger and `ENV["OAUTH_DEBUG"] == 'true'` (@pboling)
|
381
|
-
- [!380](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/380) - Fix: Stop attempting to encode non-encodable objects in `Oauth2::Error` (@jhmoore)
|
382
|
-
- [!399](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/399) - Fix: Stop duplicating `redirect_uri` in `get_token` (@markus)
|
383
|
-
- [!410](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/410) - Fix: `SystemStackError` caused by circular reference between Error and Response classes (@jhmoore)
|
384
|
-
- [!460](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/460) - Fix: Stop throwing errors when `raise_errors` is set to `false`; analog of [!524](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/524) for `1-4-stable` branch (@joaolrpaulo)
|
385
|
-
- [!472](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/472) - **Security**: Add checks to enforce `client_secret` is *never* passed in authorize_url query params for `implicit` and `auth_code` grant types (@dfockler)
|
386
|
-
- [!482](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/482) - _Documentation_: Update last of `intridea` links to `oauth-xx` (@pboling)
|
387
|
-
- [!536](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/536) - **Security**: Compatibility with more (and recent) Ruby OpenSSL versions, Github Actions, Rubocop updated, analogous to [!535](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/535) on `1-4-stable` branch (@pboling)
|
388
|
-
- [!595](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/595) - Graceful handling of empty responses from `Client#get_token`, respecting `:raise_errors` config (@stanhu)
|
389
|
-
- [!596](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/596) - Consistency between `AccessToken#refresh` and `Client#get_token` named arguments (@stanhu)
|
390
|
-
- [!598](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/598) - Fix unparseable data not raised as error in `Client#get_token`, respecting `:raise_errors` config (@stanhu)
|
391
336
|
- [!158](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/158), [!344](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/344) - Handling of errors when using `omniauth-facebook` (@niels)
|
392
337
|
- [!294](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/294) - Fix: "Unexpected middleware set" issue with Faraday when `OAUTH_DEBUG=true` (@spectator, @gafrom)
|
393
338
|
- [!300](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/300) - _Documentation_: `Oauth2::Error` - Error codes are strings, not symbols (@NobodysNightmare)
|
@@ -407,12 +352,6 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
407
352
|
- [!596](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/596) - Consistency between `AccessToken#refresh` and `Client#get_token` named arguments (@stanhu)
|
408
353
|
- [!598](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/598) - Fix unparseable data not raised as error in `Client#get_token`, respecting `:raise_errors` config (@stanhu)
|
409
354
|
### Removed
|
410
|
-
- [!341](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/341) - Remove Rdoc & Jeweler related files (@josephpage)
|
411
|
-
- [!342](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/342) - **BREAKING**: Dropped support for Ruby 1.8 (@josephpage)
|
412
|
-
- [!539](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/539) - Remove reliance on globally included OAuth2 in tests, analog of [!538](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/538) for 1-4-stable (@anderscarling)
|
413
|
-
- [!566](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/566) - _Dependency_: Removed `wwtd` (@bquorning)
|
414
|
-
- [!589](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/589), [!593](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/593) - Remove support for expired MAC token draft spec (@stanhu)
|
415
|
-
- [!590](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/590) - _Dependency_: Removed `multi_json` (@stanhu)
|
416
355
|
- [!341](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/341) - Remove Rdoc & Jeweler related files (@josephpage)
|
417
356
|
- [!342](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/342) - **BREAKING**: Dropped support for Ruby 1.8 (@josephpage)
|
418
357
|
- [!539](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/539) - Remove reliance on globally included OAuth2 in tests, analog of [!538](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/538) for 1-4-stable (@anderscarling)
|
@@ -427,12 +366,10 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
427
366
|
|
428
367
|
## [1.4.10] - 2022-07-01
|
429
368
|
- TAG: [v1.4.10][1.4.10t]
|
430
|
-
- FIPS Compatibility [!587](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/587) (@akostadinov)
|
431
369
|
- FIPS Compatibility [!587](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/587) (@akostadinov)
|
432
370
|
|
433
371
|
## [1.4.9] - 2022-02-20
|
434
372
|
- TAG: [v1.4.9][1.4.9t]
|
435
|
-
- Fixes compatibility with Faraday v2 [572](https://gitlab.com/oauth-xx/oauth2/-/issues/572)
|
436
373
|
- Fixes compatibility with Faraday v2 [572](https://gitlab.com/ruby-oauth/oauth2/-/issues/572)
|
437
374
|
- Includes supported versions of Faraday in test matrix:
|
438
375
|
- Faraday ~> 2.2.0 with Ruby >= 2.6
|
@@ -444,34 +381,24 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
444
381
|
- TAG: [v1.4.8][1.4.8t]
|
445
382
|
- MFA is now required to push new gem versions (@pboling)
|
446
383
|
- README overhaul w/ new Ruby Version and Engine compatibility policies (@pboling)
|
447
|
-
- [!569](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/569) Backport fixes ([!561](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/561) by @ryogift), and add more fixes, to allow faraday 1.x and 2.x (@jrochkind)
|
448
384
|
- [!569](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/569) Backport fixes ([!561](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/561) by @ryogift), and add more fixes, to allow faraday 1.x and 2.x (@jrochkind)
|
449
385
|
- Improve Code Coverage tracking (Coveralls, CodeCov, CodeClimate), and enable branch coverage (@pboling)
|
450
386
|
- Add CodeQL, Security Policy, Funding info (@pboling)
|
451
387
|
- Added Ruby 3.1, jruby, jruby-head, truffleruby, truffleruby-head to build matrix (@pboling)
|
452
|
-
- [!543](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/543) - Support for more modern Open SSL libraries (@pboling)
|
453
388
|
- [!543](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/543) - Support for more modern Open SSL libraries (@pboling)
|
454
389
|
|
455
390
|
## [1.4.7] - 2021-03-19
|
456
391
|
- TAG: [v1.4.7][1.4.7t]
|
457
|
-
- [!541](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/541) - Backport fix to expires_at handling [!533](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/533) to 1-4-stable branch. (@dobon)
|
458
392
|
- [!541](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/541) - Backport fix to expires_at handling [!533](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/533) to 1-4-stable branch. (@dobon)
|
459
393
|
|
460
394
|
## [1.4.6] - 2021-03-19
|
461
395
|
- TAG: [v1.4.6][1.4.6t]
|
462
|
-
- [!540](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/540) - Add VERSION constant (@pboling)
|
463
|
-
- [!537](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/537) - Fix crash in OAuth2::Client#get_token (@anderscarling)
|
464
|
-
- [!538](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/538) - Remove reliance on globally included OAuth2 in tests, analogous to [!539](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/539) on main branch (@anderscarling)
|
465
396
|
- [!540](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/540) - Add VERSION constant (@pboling)
|
466
397
|
- [!537](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/537) - Fix crash in OAuth2::Client#get_token (@anderscarling)
|
467
398
|
- [!538](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/538) - Remove reliance on globally included OAuth2 in tests, analogous to [!539](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/539) on main branch (@anderscarling)
|
468
399
|
|
469
400
|
## [1.4.5] - 2021-03-18
|
470
401
|
- TAG: [v1.4.5][1.4.5t]
|
471
|
-
- [!535](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/535) - Compatibility with range of supported Ruby OpenSSL versions, Rubocop updates, Github Actions, analogous to [!536](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/536) on main branch (@pboling)
|
472
|
-
- [!518](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/518) - Add extract_access_token option to OAuth2::Client (@jonspalmer)
|
473
|
-
- [!507](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/507) - Fix camel case content type, response keys (@anvox)
|
474
|
-
- [!500](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/500) - Fix YARD documentation formatting (@olleolleolle)
|
475
402
|
- [!535](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/535) - Compatibility with range of supported Ruby OpenSSL versions, Rubocop updates, Github Actions, analogous to [!536](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/536) on main branch (@pboling)
|
476
403
|
- [!518](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/518) - Add extract_access_token option to OAuth2::Client (@jonspalmer)
|
477
404
|
- [!507](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/507) - Fix camel case content type, response keys (@anvox)
|
@@ -479,34 +406,22 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
479
406
|
|
480
407
|
## [1.4.4] - 2020-02-12
|
481
408
|
- TAG: [v1.4.4][1.4.4t]
|
482
|
-
- [!408](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/408) - Fixed expires_at for formatted time (@Lomey)
|
483
409
|
- [!408](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/408) - Fixed expires_at for formatted time (@Lomey)
|
484
410
|
|
485
411
|
## [1.4.3] - 2020-01-29
|
486
412
|
- TAG: [v1.4.3][1.4.3t]
|
487
|
-
- [!483](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/483) - add project metadata to gemspec (@orien)
|
488
|
-
- [!495](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/495) - support additional types of access token requests (@SteveyblamFreeagent, @thomcorley, @dgholz)
|
489
413
|
- [!483](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/483) - add project metadata to gemspec (@orien)
|
490
414
|
- [!495](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/495) - support additional types of access token requests (@SteveyblamFreeagent, @thomcorley, @dgholz)
|
491
415
|
- Adds support for private_key_jwt and tls_client_auth
|
492
|
-
- [!433](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/433) - allow field names with square brackets and numbers in params (@asm256)
|
493
416
|
- [!433](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/433) - allow field names with square brackets and numbers in params (@asm256)
|
494
417
|
|
495
418
|
## [1.4.2] - 2019-10-01
|
496
419
|
- TAG: [v1.4.2][1.4.2t]
|
497
|
-
- [!478](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/478) - support latest version of faraday & fix build (@pboling)
|
498
420
|
- [!478](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/478) - support latest version of faraday & fix build (@pboling)
|
499
421
|
- Officially support Ruby 2.6 and truffleruby
|
500
422
|
|
501
423
|
## [1.4.1] - 2018-10-13
|
502
424
|
- TAG: [v1.4.1][1.4.1t]
|
503
|
-
- [!417](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/417) - update jwt dependency (@thewoolleyman)
|
504
|
-
- [!419](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/419) - remove rubocop dependency (temporary, added back in [!423](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/423)) (@pboling)
|
505
|
-
- [!418](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/418) - update faraday dependency (@pboling)
|
506
|
-
- [!420](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/420) - update [oauth2.gemspec](https://gitlab.com/oauth-xx/oauth2/-/blob/1-4-stable/oauth2.gemspec) (@pboling)
|
507
|
-
- [!421](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/421) - fix [CHANGELOG.md](https://gitlab.com/oauth-xx/oauth2/-/blob/1-4-stable/CHANGELOG.md) for previous releases (@pboling)
|
508
|
-
- [!422](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/422) - update [LICENSE](https://gitlab.com/oauth-xx/oauth2/-/blob/1-4-stable/LICENSE) and [README.md](https://gitlab.com/oauth-xx/oauth2/-/blob/1-4-stable/README.md) (@pboling)
|
509
|
-
- [!423](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/423) - update [builds](https://travis-ci.org/oauth-xx/oauth2/builds), [Rakefile](https://gitlab.com/oauth-xx/oauth2/-/blob/1-4-stable/Rakefile) (@pboling)
|
510
425
|
- [!417](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/417) - update jwt dependency (@thewoolleyman)
|
511
426
|
- [!419](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/419) - remove rubocop dependency (temporary, added back in [!423](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/423)) (@pboling)
|
512
427
|
- [!418](https://gitlab.com/ruby-oauth/oauth2/-/merge_requests/418) - update faraday dependency (@pboling)
|
@@ -640,7 +555,11 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
640
555
|
|
641
556
|
[gemfiles/readme]: gemfiles/README.md
|
642
557
|
|
643
|
-
[Unreleased]: https://github.com/ruby-oauth/oauth2/compare/v2.0.
|
558
|
+
[Unreleased]: https://github.com/ruby-oauth/oauth2/compare/v2.0.16...HEAD
|
559
|
+
[2.0.16]: https://github.com/ruby-oauth/oauth2/compare/v2.0.15...v2.0.16
|
560
|
+
[2.0.16t]: https://github.com/ruby-oauth/oauth2/releases/tag/v2.0.16
|
561
|
+
[2.0.15]: https://github.com/ruby-oauth/oauth2/compare/v2.0.14...v2.0.15
|
562
|
+
[2.0.15t]: https://github.com/ruby-oauth/oauth2/releases/tag/v2.0.15
|
644
563
|
[2.0.14]: https://github.com/ruby-oauth/oauth2/compare/v2.0.13...v2.0.14
|
645
564
|
[2.0.14t]: https://github.com/ruby-oauth/oauth2/releases/tag/v2.0.14
|
646
565
|
[2.0.13]: https://github.com/ruby-oauth/oauth2/compare/v2.0.12...v2.0.13
|
data/CONTRIBUTING.md
CHANGED
@@ -22,6 +22,35 @@ Follow these instructions:
|
|
22
22
|
6. Make sure to add tests for it. This is important, so it doesn't break in a future release.
|
23
23
|
7. Create new Pull Request.
|
24
24
|
|
25
|
+
## Executables vs Rake tasks
|
26
|
+
|
27
|
+
Executables shipped by oauth2 can be used with or without generating the binstubs.
|
28
|
+
They will work when oauth2 is installed globally (i.e., `gem install oauth2`) and do not require that oauth2 be in your bundle.
|
29
|
+
|
30
|
+
- kettle-changelog
|
31
|
+
- kettle-commit-msg
|
32
|
+
- oauth2-setup
|
33
|
+
- kettle-dvcs
|
34
|
+
- kettle-pre-release
|
35
|
+
- kettle-readme-backers
|
36
|
+
- kettle-release
|
37
|
+
|
38
|
+
However, the rake tasks provided by oauth2 do require oauth2 to be added as a development dependency and loaded in your Rakefile.
|
39
|
+
See the full list of rake tasks in head of Rakefile
|
40
|
+
|
41
|
+
**Gemfile**
|
42
|
+
```ruby
|
43
|
+
group :development do
|
44
|
+
gem "oauth2", require: false
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
**Rakefile**
|
49
|
+
```ruby
|
50
|
+
# Rakefile
|
51
|
+
require "oauth2"
|
52
|
+
```
|
53
|
+
|
25
54
|
## Environment Variables for Local Development
|
26
55
|
|
27
56
|
Below are the primary environment variables recognized by stone_checksums (and its integrated tools). Unless otherwise noted, set boolean values to the string "true" to enable.
|
@@ -89,9 +118,10 @@ bundle exec rake test
|
|
89
118
|
|
90
119
|
### Spec organization (required)
|
91
120
|
|
92
|
-
- For each class or module under `lib/`, keep all of its unit tests in a single spec file under `spec/` that mirrors the path and file name
|
93
|
-
-
|
94
|
-
-
|
121
|
+
- One spec file per class/module. For each class or module under `lib/`, keep all of its unit tests in a single spec file under `spec/` that mirrors the path and file name exactly: `lib/oauth2/release_cli.rb` -> `spec/oauth2/release_cli_spec.rb`.
|
122
|
+
- Never add a second spec file for the same class/module. Examples of disallowed names: `*_more_spec.rb`, `*_extra_spec.rb`, `*_status_spec.rb`, or any other suffix that still targets the same class. If you find yourself wanting a second file, merge those examples into the canonical spec file for that class/module.
|
123
|
+
- Exception: Integration specs that intentionally span multiple classes. Place these under `spec/integration/` (or a clearly named integration folder), and do not directly mirror a single class. Name them after the scenario, not a class.
|
124
|
+
- Migration note: If a duplicate spec file exists, move all examples into the canonical file and delete the duplicate. Do not leave stubs or empty files behind.
|
95
125
|
|
96
126
|
## Lint It
|
97
127
|
|
@@ -146,7 +176,9 @@ NOTE: To build without signing the gem set `SKIP_GEM_SIGNING` to any value in th
|
|
146
176
|
|
147
177
|
#### Automated process
|
148
178
|
|
149
|
-
|
179
|
+
1. Update version.rb to contian the correct version-to-be-released.
|
180
|
+
2. Run `bundle exec kettle-changelog`.
|
181
|
+
3. Run `bundle exec kettle-release`.
|
150
182
|
|
151
183
|
#### Manual process
|
152
184
|
|