oauth2 1.4.10 → 1.4.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +73 -88
- data/CONTRIBUTING.md +27 -1
- data/LICENSE +1 -1
- data/README.md +95 -77
- data/SECURITY.md +12 -6
- data/lib/oauth2/version.rb +1 -1
- metadata +38 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5379c78dd69a32791b1666a5043d412d8131fa091f475a0d72c72174d2bbbdb
|
4
|
+
data.tar.gz: cd05652aaac76e61d897026a47238b11f9c4037e9b8561575d65bb882bc6e449
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3c87c1c747af12a7864e5b2fdd8ad35c6eac00a7f97a2cb5feb52dcc897c9c1501b409fd80852b9deb311b143bc3d2fceabb2fc902e2a05442d81cc8d373571
|
7
|
+
data.tar.gz: 2cd3ffb9e5e76fc1ed95a040a9821b4abef44fe4e1d9e279bee0fb6126145e01804ddbdeec94135c426f3e6a75991ec282020eb12180166e9d6610a1595b3027
|
data/CHANGELOG.md
CHANGED
@@ -1,16 +1,17 @@
|
|
1
|
-
#
|
1
|
+
# Changelog
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
-
## unreleased
|
4
|
+
## [unreleased]
|
5
5
|
|
6
|
+
## [1.4.11] - 2022-09-16
|
7
|
+
- Complete migration to main branch as default (@pboling)
|
8
|
+
- Complete migration to Gitlab, updating all links, and references in VCS-managed files (@pboling)
|
6
9
|
|
7
10
|
## [1.4.10] - 2022-07-01
|
8
|
-
|
9
|
-
- FIPS Compatibility [#587](https://github.com/oauth-xx/oauth2/pull/587) (@akostadinov)
|
11
|
+
- FIPS Compatibility [#587](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/587) (@akostadinov)
|
10
12
|
|
11
13
|
## [1.4.9] - 2022-02-20
|
12
|
-
|
13
|
-
- Fixes compatibility with Faraday v2 [#572](https://github.com/oauth-xx/oauth2/issues/572)
|
14
|
+
- Fixes compatibility with Faraday v2 [572](https://gitlab.com/oauth-xx/oauth2/-/issues/572)
|
14
15
|
- Includes supported versions of Faraday in test matrix:
|
15
16
|
- Faraday ~> 2.2.0 with Ruby >= 2.6
|
16
17
|
- Faraday ~> 1.10 with Ruby >= 2.4
|
@@ -18,57 +19,49 @@ All notable changes to this project will be documented in this file.
|
|
18
19
|
- Add Windows and MacOS to test matrix
|
19
20
|
|
20
21
|
## [1.4.8] - 2022-02-18
|
21
|
-
|
22
22
|
- MFA is now required to push new gem versions (@pboling)
|
23
23
|
- README overhaul w/ new Ruby Version and Engine compatibility policies (@pboling)
|
24
|
-
- [#569](https://
|
24
|
+
- [#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)
|
25
25
|
- Improve Code Coverage tracking (Coveralls, CodeCov, CodeClimate), and enable branch coverage (@pboling)
|
26
26
|
- Add CodeQL, Security Policy, Funding info (@pboling)
|
27
27
|
- Added Ruby 3.1, jruby, jruby-head, truffleruby, truffleruby-head to build matrix (@pboling)
|
28
|
-
- [#543](https://
|
28
|
+
- [#543](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/543) - Support for more modern Open SSL libraries (@pboling)
|
29
29
|
|
30
30
|
## [1.4.7] - 2021-03-19
|
31
|
-
|
32
|
-
- [#541](https://github.com/oauth-xx/oauth2/pull/541) - Backport fix to expires_at handling [#533](https://github.com/oauth-xx/oauth2/pull/533) to 1-4-stable branch. (@dobon)
|
31
|
+
- [#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)
|
33
32
|
|
34
33
|
## [1.4.6] - 2021-03-19
|
35
|
-
|
36
|
-
- [#
|
37
|
-
- [#
|
38
|
-
- [#538](https://github.com/oauth-xx/oauth2/pull/538) - Remove reliance on globally included OAuth2 in tests for version 1.4 (@anderscarling)
|
34
|
+
- [#540](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/540) - Add VERSION constant (@pboling)
|
35
|
+
- [#537](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/537) - Fix crash in OAuth2::Client#get_token (@anderscarling)
|
36
|
+
- [#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)
|
39
37
|
|
40
38
|
## [1.4.5] - 2021-03-18
|
41
|
-
|
42
|
-
- [#
|
43
|
-
- [#
|
44
|
-
- [#
|
45
|
-
- [#500](https://github.com/oauth-xx/oauth2/pull/500) - Fix YARD documentation formatting (@olleolleolle)
|
39
|
+
- [#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)
|
40
|
+
- [#518](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/518) - Add extract_access_token option to OAuth2::Client (@jonspalmer)
|
41
|
+
- [#507](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/507) - Fix camel case content type, response keys (@anvox)
|
42
|
+
- [#500](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/500) - Fix YARD documentation formatting (@olleolleolle)
|
46
43
|
|
47
44
|
## [1.4.4] - 2020-02-12
|
48
|
-
|
49
|
-
- [#408](https://github.com/oauth-xx/oauth2/pull/408) - Fixed expires_at for formatted time (@Lomey)
|
45
|
+
- [#408](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/408) - Fixed expires_at for formatted time (@Lomey)
|
50
46
|
|
51
47
|
## [1.4.3] - 2020-01-29
|
52
|
-
|
53
|
-
- [#
|
54
|
-
- [#495](https://github.com/oauth-xx/oauth2/pull/495) - support additional types of access token requests (@SteveyblamFreeagent, @thomcorley, @dgholz)
|
48
|
+
- [#483](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/483) - add project metadata to gemspec (@orien)
|
49
|
+
- [#495](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/495) - support additional types of access token requests (@SteveyblamFreeagent, @thomcorley, @dgholz)
|
55
50
|
- Adds support for private_key_jwt and tls_client_auth
|
56
|
-
- [#433](https://
|
51
|
+
- [#433](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/433) - allow field names with square brackets and numbers in params (@asm256)
|
57
52
|
|
58
53
|
## [1.4.2] - 2019-10-01
|
59
|
-
|
60
|
-
-
|
61
|
-
- officially support Ruby 2.6 and truffleruby
|
54
|
+
- [#478](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/478) - support latest version of faraday & fix build (@pboling)
|
55
|
+
- Officially support Ruby 2.6 and truffleruby
|
62
56
|
|
63
57
|
## [1.4.1] - 2018-10-13
|
64
|
-
|
65
|
-
- [#
|
66
|
-
- [#
|
67
|
-
- [#
|
68
|
-
- [#
|
69
|
-
- [#
|
70
|
-
- [#
|
71
|
-
- [#423](https://github.com/oauth-xx/oauth2/pull/423) - update [builds](https://travis-ci.org/oauth-xx/oauth2/builds), [Rakefile](https://github.com/oauth-xx/oauth2/blob/1-4-stable/Rakefile) (@pboling)
|
58
|
+
- [#417](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/417) - update jwt dependency (@thewoolleyman)
|
59
|
+
- [#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)
|
60
|
+
- [#418](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/418) - update faraday dependency (@pboling)
|
61
|
+
- [#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)
|
62
|
+
- [#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)
|
63
|
+
- [#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)
|
64
|
+
- [#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)
|
72
65
|
- officially document supported Rubies
|
73
66
|
* Ruby 1.9.3
|
74
67
|
* Ruby 2.0.0
|
@@ -88,19 +81,16 @@ All notable changes to this project will be documented in this file.
|
|
88
81
|
[jruby-9.2]: https://www.jruby.org/2018/05/24/jruby-9-2-0-0.html
|
89
82
|
|
90
83
|
## [1.4.0] - 2017-06-09
|
91
|
-
|
92
84
|
- Drop Ruby 1.8.7 support (@sferik)
|
93
85
|
- Fix some RuboCop offenses (@sferik)
|
94
86
|
- _Dependency_: Remove Yardstick (@sferik)
|
95
87
|
- _Dependency_: Upgrade Faraday to 0.12 (@sferik)
|
96
88
|
|
97
89
|
## [1.3.1] - 2017-03-03
|
98
|
-
|
99
90
|
- Add support for Ruby 2.4.0 (@pschambacher)
|
100
91
|
- _Dependency_: Upgrade Faraday to Faraday 0.11 (@mcfiredrill, @rhymes, @pschambacher)
|
101
92
|
|
102
93
|
## [1.3.0] - 2016-12-28
|
103
|
-
|
104
94
|
- Add support for header-based authentication to the `Client` so it can be used across the library (@bjeanes)
|
105
95
|
- Default to header-based authentication when getting a token from an authorisation code (@maletor)
|
106
96
|
- **Breaking**: Allow an `auth_scheme` (`:basic_auth` or `:request_body`) to be set on the client, defaulting to `:request_body` to maintain backwards compatibility (@maletor, @bjeanes)
|
@@ -110,32 +100,27 @@ All notable changes to this project will be documented in this file.
|
|
110
100
|
- Add support for Faraday 0.10 (@rhymes)
|
111
101
|
|
112
102
|
## [1.2.0] - 2016-07-01
|
113
|
-
|
114
103
|
- Properly handle encoding of error responses (so we don't blow up, for example, when Google's response includes a ∞) (@Motoshi-Nishihira)
|
115
104
|
- Make a copy of the options hash in `AccessToken#from_hash` to avoid accidental mutations (@Linuus)
|
116
105
|
- Use `raise` rather than `fail` to throw exceptions (@sferik)
|
117
106
|
|
118
107
|
## [1.1.0] - 2016-01-30
|
119
|
-
|
120
108
|
- Various refactors (eliminating `Hash#merge!` usage in `AccessToken#refresh!`, use `yield` instead of `#call`, freezing mutable objects in constants, replacing constants with class variables) (@sferik)
|
121
109
|
- Add support for Rack 2, and bump various other dependencies (@sferik)
|
122
110
|
|
123
111
|
## [1.0.0] - 2014-07-09
|
124
|
-
|
125
112
|
### Added
|
126
113
|
- Add an implementation of the MAC token spec.
|
127
|
-
|
128
114
|
### Fixed
|
129
115
|
- Fix Base64.strict_encode64 incompatibility with Ruby 1.8.7.
|
130
116
|
|
131
117
|
## [0.5.0] - 2011-07-29
|
132
|
-
|
133
118
|
### Changed
|
134
|
-
-
|
135
|
-
-
|
136
|
-
-
|
137
|
-
-
|
138
|
-
-
|
119
|
+
- *breaking* `oauth_token` renamed to `oauth_bearer`.
|
120
|
+
- *breaking* `authorize_path` Client option renamed to `authorize_url`.
|
121
|
+
- *breaking* `access_token_path` Client option renamed to `token_url`.
|
122
|
+
- *breaking* `access_token_method` Client option renamed to `token_method`.
|
123
|
+
- *breaking* `web_server` renamed to `auth_code`.
|
139
124
|
|
140
125
|
## [0.4.1] - 2011-04-20
|
141
126
|
|
@@ -163,41 +148,41 @@ All notable changes to this project will be documented in this file.
|
|
163
148
|
|
164
149
|
## [0.0.4] + [0.0.3] + [0.0.2] + [0.0.1] - 2010-04-22
|
165
150
|
|
166
|
-
|
167
|
-
[0.0.
|
168
|
-
[0.0.
|
169
|
-
[0.0.
|
170
|
-
[0.0.
|
171
|
-
[0.0.
|
172
|
-
[0.0.
|
173
|
-
[0.0.
|
174
|
-
[0.0.
|
175
|
-
[0.0.
|
176
|
-
[0.0.
|
177
|
-
[0.0.
|
178
|
-
[0.0.
|
179
|
-
[0.0
|
180
|
-
[0.1.
|
181
|
-
[0.
|
182
|
-
[0.
|
183
|
-
[0.
|
184
|
-
[0.4.
|
185
|
-
[0.
|
186
|
-
[0.
|
187
|
-
[1.
|
188
|
-
[1.
|
189
|
-
[1.
|
190
|
-
[1.3.
|
191
|
-
[1.
|
192
|
-
[1.4.
|
193
|
-
[1.4.
|
194
|
-
[1.4.
|
195
|
-
[1.4.
|
196
|
-
[1.4.
|
197
|
-
[1.4.
|
198
|
-
[1.4.
|
199
|
-
[1.4.
|
200
|
-
[1.4.
|
201
|
-
[1.4.
|
202
|
-
[1.4.
|
203
|
-
[unreleased]: https://
|
151
|
+
[0.0.1]: https://gitlab.com/oauth-xx/oauth2/-/compare/311d9f4...v0.0.1
|
152
|
+
[0.0.2]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.0.1...v0.0.2
|
153
|
+
[0.0.3]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.0.2...v0.0.3
|
154
|
+
[0.0.4]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.0.3...v0.0.4
|
155
|
+
[0.0.5]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.0.4...v0.0.5
|
156
|
+
[0.0.6]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.0.5...v0.0.6
|
157
|
+
[0.0.7]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.0.6...v0.0.7
|
158
|
+
[0.0.8]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.0.7...v0.0.8
|
159
|
+
[0.0.9]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.0.8...v0.0.9
|
160
|
+
[0.0.10]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.0.9...v0.0.10
|
161
|
+
[0.0.11]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.0.10...v0.0.11
|
162
|
+
[0.0.12]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.0.11...v0.0.12
|
163
|
+
[0.0.13]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.0.12...v0.0.13
|
164
|
+
[0.1.0]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.0.13...v0.1.0
|
165
|
+
[0.1.1]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.1.0...v0.1.1
|
166
|
+
[0.2.0]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.1.1...v0.2.0
|
167
|
+
[0.3.0]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.2.0...v0.3.0
|
168
|
+
[0.4.0]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.3.0...v0.4.0
|
169
|
+
[0.4.1]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.4.0...v0.4.1
|
170
|
+
[0.5.0]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.4.1...v0.5.0
|
171
|
+
[1.0.0]: https://gitlab.com/oauth-xx/oauth2/-/compare/v0.9.4...v1.0.0
|
172
|
+
[1.1.0]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.0.0...v1.1.0
|
173
|
+
[1.2.0]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.1.0...v1.2.0
|
174
|
+
[1.3.0]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.2.0...v1.3.0
|
175
|
+
[1.3.1]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.3.0...v1.3.1
|
176
|
+
[1.4.0]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.3.1...v1.4.0
|
177
|
+
[1.4.1]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.4.0...v1.4.1
|
178
|
+
[1.4.2]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.4.1...v1.4.2
|
179
|
+
[1.4.3]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.4.2...v1.4.3
|
180
|
+
[1.4.4]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.4.3...v1.4.4
|
181
|
+
[1.4.5]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.4.4...v1.4.5
|
182
|
+
[1.4.6]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.4.5...v1.4.6
|
183
|
+
[1.4.7]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.4.6...v1.4.7
|
184
|
+
[1.4.8]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.4.7...v1.4.8
|
185
|
+
[1.4.9]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.4.8...v1.4.9
|
186
|
+
[1.4.10]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.4.9...v1.4.10
|
187
|
+
[1.4.11]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.4.10...v1.4.11
|
188
|
+
[unreleased]: https://gitlab.com/oauth-xx/oauth2/-/compare/v1.4.11...HEAD
|
data/CONTRIBUTING.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
-
##
|
1
|
+
## Contributing
|
2
|
+
|
3
|
+
Bug reports and pull requests are welcome on GitHub at [https://gitlab.com/oauth-xx/oauth2][source]
|
4
|
+
. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
|
5
|
+
the [code of conduct][conduct].
|
6
|
+
|
7
|
+
To submit a patch, please fork the project and create a patch with tests. Once you're happy with it send a pull request!
|
8
|
+
|
9
|
+
## Detailed instructions on Submitting a Pull Request
|
2
10
|
1. [Fork the repository.][fork]
|
3
11
|
2. [Create a topic branch.][branch]
|
4
12
|
3. Add specs for your unimplemented feature or bug fix.
|
@@ -16,3 +24,21 @@
|
|
16
24
|
[fork]: http://help.github.com/fork-a-repo/
|
17
25
|
[branch]: http://learn.github.com/p/branching.html
|
18
26
|
[pr]: http://help.github.com/send-pull-requests/
|
27
|
+
|
28
|
+
## Contributors
|
29
|
+
|
30
|
+
[![Contributors](https://contrib.rocks/image?repo=oauth-xx/oauth2)][contributors]
|
31
|
+
|
32
|
+
Made with [contributors-img][contrib-rocks].
|
33
|
+
|
34
|
+
[comment]: <> (Following links are used by README, CONTRIBUTING)
|
35
|
+
|
36
|
+
[conduct]: https://gitlab.com/oauth-xx/oauth2/-/blob/main/CODE_OF_CONDUCT.md
|
37
|
+
|
38
|
+
[contrib-rocks]: https://contrib.rocks
|
39
|
+
|
40
|
+
[contributors]: https://gitlab.com/oauth-xx/oauth2/-/graphs/main
|
41
|
+
|
42
|
+
[comment]: <> (Following links are used by README, CONTRIBUTING, Homepage)
|
43
|
+
|
44
|
+
[source]: https://gitlab.com/oauth-xx/oauth2
|
data/LICENSE
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
MIT License
|
2
2
|
|
3
3
|
Copyright (c) 2011 - 2013 Michael Bleigh and Intridea, Inc.
|
4
|
-
Copyright (c) 2017 - 2022 oauth-xx organization, https://
|
4
|
+
Copyright (c) 2017 - 2022 oauth-xx organization, https://gitlab.com/oauth-xx
|
5
5
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
<p align="center">
|
2
|
-
<a href="http://oauth.net/2/" target="_blank" rel="noopener
|
3
|
-
<img src="https://github.com/oauth-xx/oauth2/raw/
|
2
|
+
<a href="http://oauth.net/2/" target="_blank" rel="noopener">
|
3
|
+
<img src="https://github.com/oauth-xx/oauth2/raw/main/docs/images/logo/oauth2-logo-124px.png?raw=true" alt="OAuth 2.0 Logo by Chris Messina, CC BY-SA 3.0">
|
4
4
|
</a>
|
5
|
-
<a href="https://www.ruby-lang.org/" target="_blank" rel="noopener
|
6
|
-
<img width="124px" src="https://github.com/oauth-xx/oauth2/raw/
|
5
|
+
<a href="https://www.ruby-lang.org/" target="_blank" rel="noopener">
|
6
|
+
<img width="124px" src="https://github.com/oauth-xx/oauth2/raw/main/docs/images/logo/ruby-logo-198px.svg?raw=true" alt="Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5">
|
7
7
|
</a>
|
8
8
|
</p>
|
9
9
|
|
@@ -19,7 +19,7 @@ See the sibling `oauth` gem for OAuth 1.0 implementations in Ruby.
|
|
19
19
|
[supported-only-for-critical-enterprise-security-issues](#oauth2-for-enterprise) `1-4-stable`
|
20
20
|
branch. Please do not use this, and instead upgrade to version 2! ⚠️⚠️⚠️
|
21
21
|
|
22
|
-
No further releases of 1.x series are planned! [Version 2](https://
|
22
|
+
No further releases of 1.x series are planned! [Version 2](https://gitlab.com/oauth-xx/oauth2/#what-is-new-for-v20) has *tons* of improvements!
|
23
23
|
|
24
24
|
If you must continue using 1.4.x please consider purchasing an open source security maintenance contract from [Tidelift][tidelift-ref].
|
25
25
|
|
@@ -29,26 +29,27 @@ If you must continue using 1.4.x please consider purchasing an open source secur
|
|
29
29
|
* [OAuth 1.0 sibling gem][sibling-gem]
|
30
30
|
|
31
31
|
[oauth2-spec]: https://oauth.net/2/
|
32
|
-
[sibling-gem]: https://
|
32
|
+
[sibling-gem]: https://gitlab.com/oauth-xx/oauth
|
33
33
|
|
34
34
|
## Release Documentation
|
35
35
|
|
36
36
|
<details>
|
37
37
|
<summary>1.4.x Readmes</summary>
|
38
38
|
|
39
|
-
| Version | Release Date | Readme
|
40
|
-
|
41
|
-
| 1.4.
|
42
|
-
| 1.4.
|
43
|
-
| 1.4.
|
44
|
-
| 1.4.
|
45
|
-
| 1.4.
|
46
|
-
| 1.4.
|
47
|
-
| 1.4.
|
48
|
-
| 1.4.
|
49
|
-
| 1.4.
|
50
|
-
| 1.4.
|
51
|
-
| 1.4.
|
39
|
+
| Version | Release Date | Readme |
|
40
|
+
|---------|--------------|-------------------------------------------------------------|
|
41
|
+
| 1.4.11 | Sep 16, 2022 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.4.11/README.md |
|
42
|
+
| 1.4.10 | Jul 1, 2022 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.4.10/README.md |
|
43
|
+
| 1.4.9 | Feb 20, 2022 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.4.9/README.md |
|
44
|
+
| 1.4.8 | Feb 18, 2022 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.4.8/README.md |
|
45
|
+
| 1.4.7 | Mar 19, 2021 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.4.7/README.md |
|
46
|
+
| 1.4.6 | Mar 19, 2021 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.4.6/README.md |
|
47
|
+
| 1.4.5 | Mar 18, 2021 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.4.5/README.md |
|
48
|
+
| 1.4.4 | Feb 12, 2020 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.4.4/README.md |
|
49
|
+
| 1.4.3 | Jan 29, 2020 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.4.3/README.md |
|
50
|
+
| 1.4.2 | Oct 1, 2019 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.4.2/README.md |
|
51
|
+
| 1.4.1 | Oct 13, 2018 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.4.1/README.md |
|
52
|
+
| 1.4.0 | Jun 9, 2017 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.4.0/README.md |
|
52
53
|
</details>
|
53
54
|
|
54
55
|
<details>
|
@@ -56,8 +57,8 @@ If you must continue using 1.4.x please consider purchasing an open source secur
|
|
56
57
|
|
57
58
|
| Version | Release Date | Readme |
|
58
59
|
|----------|--------------|----------------------------------------------------------|
|
59
|
-
| 1.3.1 | Mar 3, 2017 | https://
|
60
|
-
| 1.3.0 | Dec 27, 2016 | https://
|
60
|
+
| 1.3.1 | Mar 3, 2017 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.3.1/README.md |
|
61
|
+
| 1.3.0 | Dec 27, 2016 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.3.0/README.md |
|
61
62
|
</details>
|
62
63
|
|
63
64
|
<details>
|
@@ -65,12 +66,14 @@ If you must continue using 1.4.x please consider purchasing an open source secur
|
|
65
66
|
|
66
67
|
| Version | Release Date | Readme |
|
67
68
|
|----------|--------------|----------------------------------------------------------|
|
68
|
-
| 1.2.0 | Jun 30, 2016 | https://
|
69
|
-
| 1.1.0 | Jan 30, 2016 | https://
|
70
|
-
| 1.0.0 | May 23, 2014 | https://
|
71
|
-
| < 1.0.0 | Find here | https://
|
69
|
+
| 1.2.0 | Jun 30, 2016 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.2.0/README.md |
|
70
|
+
| 1.1.0 | Jan 30, 2016 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.1.0/README.md |
|
71
|
+
| 1.0.0 | May 23, 2014 | https://gitlab.com/oauth-xx/oauth2/-/blob/v1.0.0/README.md |
|
72
|
+
| < 1.0.0 | Find here | https://gitlab.com/oauth-xx/oauth2/-/tags |
|
72
73
|
</details>
|
73
74
|
|
75
|
+
## Status
|
76
|
+
|
74
77
|
<!--
|
75
78
|
Numbering rows and badges in each row as a visual "database" lookup,
|
76
79
|
as the table is extremely dense, and it can be very difficult to find anything
|
@@ -93,17 +96,20 @@ badge #s:
|
|
93
96
|
🖐
|
94
97
|
🧮
|
95
98
|
📗
|
99
|
+
|
100
|
+
appended indicators:
|
101
|
+
♻️ - URL needs to be updated from SASS integration. Find / Replace is insufficient.
|
96
102
|
-->
|
97
103
|
|
98
|
-
| | Project | oauth2
|
99
|
-
|
100
|
-
| 1️⃣ | name, license, docs | [![RubyGems.org][⛳️name-img]][⛳️gem] [![License: MIT][🖇src-license-img]][🖇src-license] [![FOSSA][🏘fossa-img]][🏘fossa] [![RubyDoc.info][🚎yard-img]][🚎yard] [![InchCI][🖐inch-ci-img]][🚎yard]
|
101
|
-
| 2️⃣ | version & activity | [![Gem Version][⛳️version-img]][⛳️gem] [![Total Downloads][🖇DL-total-img]][⛳️gem] [![Download Rank][🏘DL-rank-img]][⛳️gem] [![Source Code][🚎src-home-img]][🚎src-home]
|
102
|
-
| 3️⃣ | maintanence & linting | [![Maintainability][⛳cclim-maint-img]][⛳cclim-maint] [![Helpers][🖇triage-help-img]][🖇triage-help] [![Depfu][🏘depfu-img]][🏘depfu] [![Contributors][🚎contributors-img]][🚎contributors] [![Style][🖐style-wf-img]][🖐style-wf] [![Kloc Roll][🧮kloc-img]][🧮kloc]
|
103
|
-
| 4️⃣ | testing | [![
|
104
|
-
| 5️⃣ | coverage & security | [![CodeClimate][⛳cclim-cov-img]][⛳cclim-cov] [![CodeCov][🖇codecov-img]][🖇codecov] [![Coveralls][🏘coveralls-img]][🏘coveralls] [![Security Policy][🚎sec-pol-img]][🚎sec-pol] [![CodeQL][🖐codeQL-img]][🖐codeQL] [![Code Coverage][🧮cov-wf-img]][🧮cov-wf]
|
105
|
-
| 6️⃣ | resources | [![Discussion][⛳
|
106
|
-
| 7️⃣ | spread 💖 | [![Liberapay Patrons][⛳liberapay-img]][⛳liberapay] [![Sponsor Me][🖇sponsor-img]][🖇sponsor] [![Tweet @ Peter][🏘tweet-img]][🏘tweet] [🌏][aboutme] [👼][angelme] [💻][coderme]
|
104
|
+
| | Project | bundle add oauth2 |
|
105
|
+
|:----|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
106
|
+
| 1️⃣ | name, license, docs | [![RubyGems.org][⛳️name-img]][⛳️gem] [![License: MIT][🖇src-license-img]][🖇src-license] [![FOSSA][🏘fossa-img]][🏘fossa] [![RubyDoc.info][🚎yard-img]][🚎yard] [![InchCI][🖐inch-ci-img]][🚎yard] |
|
107
|
+
| 2️⃣ | version & activity | [![Gem Version][⛳️version-img]][⛳️gem] [![Total Downloads][🖇DL-total-img]][⛳️gem] [![Download Rank][🏘DL-rank-img]][⛳️gem] [![Source Code][🚎src-home-img]][🚎src-home] |
|
108
|
+
| 3️⃣ | maintanence & linting | [![Maintainability][⛳cclim-maint-img♻️]][⛳cclim-maint] [![Helpers][🖇triage-help-img]][🖇triage-help] [![Depfu][🏘depfu-img♻️]][🏘depfu♻️] [![Contributors][🚎contributors-img]][🚎contributors] [![Style][🖐style-wf-img]][🖐style-wf] [![Kloc Roll][🧮kloc-img]][🧮kloc] |
|
109
|
+
| 4️⃣ | testing | [![Supported][🏘sup-wf-img]][🏘sup-wf] [![Heads][🚎heads-wf-img]][🚎heads-wf] [![Unofficial Support][🖐uns-wf-img]][🖐uns-wf] [![MacOS][🧮mac-wf-img]][🧮mac-wf] [![Windows][📗win-wf-img]][📗win-wf] |
|
110
|
+
| 5️⃣ | coverage & security | [![CodeClimate][⛳cclim-cov-img♻️]][⛳cclim-cov] [![CodeCov][🖇codecov-img♻️]][🖇codecov] [![Coveralls][🏘coveralls-img]][🏘coveralls] [![Security Policy][🚎sec-pol-img]][🚎sec-pol] [![CodeQL][🖐codeQL-img]][🖐codeQL] [![Code Coverage][🧮cov-wf-img]][🧮cov-wf] |
|
111
|
+
| 6️⃣ | resources | [![Discussion][⛳gg-discussions-img]][⛳gg-discussions] [![Get help on Codementor][🖇codementor-img]][🖇codementor] [![Chat][🏘chat-img]][🏘chat] [![Blog][🚎blog-img]][🚎blog] [![Blog][🖐wiki-img]][🖐wiki] |
|
112
|
+
| 7️⃣ | spread 💖 | [![Liberapay Patrons][⛳liberapay-img]][⛳liberapay] [![Sponsor Me][🖇sponsor-img]][🖇sponsor] [![Tweet @ Peter][🏘tweet-img]][🏘tweet] [🌏][aboutme] [👼][angelme] [💻][coderme] |
|
107
113
|
|
108
114
|
<!--
|
109
115
|
The link tokens in the following sections should be kept ordered by the row and badge numbering scheme
|
@@ -124,23 +130,17 @@ The link tokens in the following sections should be kept ordered by the row and
|
|
124
130
|
[⛳️version-img]: http://img.shields.io/gem/v/oauth2.svg
|
125
131
|
[🖇DL-total-img]: https://img.shields.io/gem/dt/oauth2.svg
|
126
132
|
[🏘DL-rank-img]: https://img.shields.io/gem/rt/oauth2.svg
|
127
|
-
[🚎src-home]: https://
|
128
|
-
[🚎src-home-img]: https://img.shields.io/badge/source-
|
129
|
-
[🖐prs-o]: https://github.com/oauth-xx/oauth2/pulls
|
130
|
-
[🖐prs-o-img]: https://img.shields.io/github/issues-pr/oauth-xx/oauth2
|
131
|
-
[🧮prs-c]: https://github.com/oauth-xx/oauth2/pulls?q=is%3Apr+is%3Aclosed
|
132
|
-
[🧮prs-c-img]: https://img.shields.io/github/issues-pr-closed/oauth-xx/oauth2
|
133
|
-
[📗next]: https://github.com/oauth-xx/oauth2/milestone/1
|
134
|
-
[📗next-img]: https://img.shields.io/github/milestones/progress/oauth-xx/oauth2/1?label=Next%20Version
|
133
|
+
[🚎src-home]: https://gitlab.com/oauth-xx/oauth2/
|
134
|
+
[🚎src-home-img]: https://img.shields.io/badge/source-gitlab-blue.svg?style=flat
|
135
135
|
|
136
136
|
<!-- 3️⃣ maintenance & linting -->
|
137
137
|
[⛳cclim-maint]: https://codeclimate.com/github/oauth-xx/oauth2/maintainability
|
138
|
-
[⛳cclim-maint-img]: https://api.codeclimate.com/v1/badges/688c612528ff90a46955/maintainability
|
138
|
+
[⛳cclim-maint-img♻️]: https://api.codeclimate.com/v1/badges/688c612528ff90a46955/maintainability
|
139
139
|
[🖇triage-help]: https://www.codetriage.com/oauth-xx/oauth2
|
140
140
|
[🖇triage-help-img]: https://www.codetriage.com/oauth-xx/oauth2/badges/users.svg
|
141
|
-
[🏘depfu]: https://depfu.com/github/oauth-xx/oauth2?project_id=4445
|
142
|
-
[🏘depfu-img]: https://badges.depfu.com/badges/6d34dc1ba682bbdf9ae2a97848241743/count.svg
|
143
|
-
[🚎contributors]: https://
|
141
|
+
[🏘depfu♻️]: https://depfu.com/github/oauth-xx/oauth2?project_id=4445
|
142
|
+
[🏘depfu-img♻️]: https://badges.depfu.com/badges/6d34dc1ba682bbdf9ae2a97848241743/count.svg
|
143
|
+
[🚎contributors]: https://gitlab.com/oauth-xx/oauth2/-/graphs/main
|
144
144
|
[🚎contributors-img]: https://img.shields.io/github/contributors-anon/oauth-xx/oauth2
|
145
145
|
[🖐style-wf]: https://github.com/oauth-xx/oauth2/actions/workflows/style.yml
|
146
146
|
[🖐style-wf-img]: https://github.com/oauth-xx/oauth2/actions/workflows/style.yml/badge.svg
|
@@ -148,10 +148,6 @@ The link tokens in the following sections should be kept ordered by the row and
|
|
148
148
|
[🧮kloc-img]: https://img.shields.io/tokei/lines/github.com/oauth-xx/oauth2
|
149
149
|
|
150
150
|
<!-- 4️⃣ testing -->
|
151
|
-
[⛳iss-o]: https://github.com/oauth-xx/oauth2/issues
|
152
|
-
[⛳iss-o-img]: https://img.shields.io/github/issues-raw/oauth-xx/oauth2
|
153
|
-
[🖇iss-c]: https://github.com/oauth-xx/oauth2/issues?q=is%3Aissue+is%3Aclosed
|
154
|
-
[🖇iss-c-img]: https://img.shields.io/github/issues-closed-raw/oauth-xx/oauth2
|
155
151
|
[🏘sup-wf]: https://github.com/oauth-xx/oauth2/actions/workflows/supported.yml
|
156
152
|
[🏘sup-wf-img]: https://github.com/oauth-xx/oauth2/actions/workflows/supported.yml/badge.svg
|
157
153
|
[🚎heads-wf]: https://github.com/oauth-xx/oauth2/actions/workflows/heads.yml
|
@@ -165,12 +161,12 @@ The link tokens in the following sections should be kept ordered by the row and
|
|
165
161
|
|
166
162
|
<!-- 5️⃣ coverage & security -->
|
167
163
|
[⛳cclim-cov]: https://codeclimate.com/github/oauth-xx/oauth2/test_coverage
|
168
|
-
[⛳cclim-cov-img]: https://api.codeclimate.com/v1/badges/688c612528ff90a46955/test_coverage
|
169
|
-
[🖇codecov-img]: https://codecov.io/gh/oauth-xx/oauth2/branch/1-4-stable/graph/badge.svg?token=bNqSzNiuo2
|
164
|
+
[⛳cclim-cov-img♻️]: https://api.codeclimate.com/v1/badges/688c612528ff90a46955/test_coverage
|
165
|
+
[🖇codecov-img♻️]: https://codecov.io/gh/oauth-xx/oauth2/branch/1-4-stable/graph/badge.svg?token=bNqSzNiuo2
|
170
166
|
[🖇codecov]: https://codecov.io/gh/oauth-xx/oauth2
|
171
167
|
[🏘coveralls]: https://coveralls.io/github/oauth-xx/oauth2?branch=1-4-stable
|
172
168
|
[🏘coveralls-img]: https://coveralls.io/repos/github/oauth-xx/oauth2/badge.svg?branch=1-4-stable
|
173
|
-
[🚎sec-pol]: https://
|
169
|
+
[🚎sec-pol]: https://gitlab.com/oauth-xx/oauth2/-/blob/main/SECURITY.md
|
174
170
|
[🚎sec-pol-img]: https://img.shields.io/badge/security-policy-brightgreen.svg?style=flat
|
175
171
|
[🖐codeQL]: https://github.com/oauth-xx/oauth2/security/code-scanning
|
176
172
|
[🖐codeQL-img]: https://github.com/oauth-xx/oauth2/actions/workflows/codeql-analysis.yml/badge.svg
|
@@ -178,15 +174,15 @@ The link tokens in the following sections should be kept ordered by the row and
|
|
178
174
|
[🧮cov-wf-img]: https://github.com/oauth-xx/oauth2/actions/workflows/coverage.yml/badge.svg
|
179
175
|
|
180
176
|
<!-- 6️⃣ resources -->
|
181
|
-
[⛳
|
182
|
-
[⛳
|
177
|
+
[⛳gg-discussions]: https://groups.google.com/g/oauth-ruby
|
178
|
+
[⛳gg-discussions-img]: https://img.shields.io/badge/google-group-purple.svg?style=flat
|
183
179
|
[🖇codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
|
184
180
|
[🖇codementor-img]: https://cdn.codementor.io/badges/get_help_github.svg
|
185
181
|
[🏘chat]: https://gitter.im/oauth-xx/oauth2
|
186
182
|
[🏘chat-img]: https://img.shields.io/gitter/room/oauth-xx/oauth2.svg
|
187
183
|
[🚎blog]: http://www.railsbling.com/tags/oauth2/
|
188
184
|
[🚎blog-img]: https://img.shields.io/badge/blog-railsbling-brightgreen.svg?style=flat
|
189
|
-
[🖐wiki]: https://
|
185
|
+
[🖐wiki]: https://gitlab.com/oauth-xx/oauth2/-/wikis/home
|
190
186
|
[🖐wiki-img]: https://img.shields.io/badge/wiki-examples-brightgreen.svg?style=flat
|
191
187
|
|
192
188
|
<!-- 7️⃣ spread 💖 -->
|
@@ -203,24 +199,16 @@ The link tokens in the following sections should be kept ordered by the row and
|
|
203
199
|
[aboutme]: https://about.me/peter.boling
|
204
200
|
[angelme]: https://angel.co/peter-boling
|
205
201
|
[coderme]:http://coderwall.com/pboling
|
206
|
-
[politicme]: https://nationalprogressiveparty.org
|
207
|
-
|
208
202
|
|
209
203
|
## Installation
|
210
204
|
|
211
|
-
|
212
|
-
gem install oauth2
|
213
|
-
```
|
205
|
+
Install the gem and add to the application's Gemfile by executing:
|
214
206
|
|
215
|
-
|
207
|
+
$ bundle add oauth2
|
216
208
|
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
And then execute in a shell:
|
221
|
-
```shell
|
222
|
-
bundle
|
223
|
-
```
|
209
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
210
|
+
|
211
|
+
$ gem install oauth2
|
224
212
|
|
225
213
|
## OAuth2 for Enterprise
|
226
214
|
|
@@ -237,6 +225,29 @@ Tidelift will coordinate the fix and disclosure.
|
|
237
225
|
|
238
226
|
For more see [SECURITY.md][🚎sec-pol].
|
239
227
|
|
228
|
+
## Why should you upgrade to version v2.0?
|
229
|
+
|
230
|
+
- Officially support Ruby versions >= 2.7
|
231
|
+
- Unofficially support Ruby versions >= 2.5
|
232
|
+
- Incidentally support Ruby versions >= 2.2
|
233
|
+
- Drop support for the expired MAC Draft (all versions)
|
234
|
+
- Support IETF rfc7523 JWT Bearer Tokens
|
235
|
+
- Support IETF rfc7231 Relative Location in Redirect
|
236
|
+
- Support IETF rfc6749 Don't set oauth params when nil
|
237
|
+
- 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)
|
238
|
+
- Support new formats, including from [jsonapi.org](http://jsonapi.org/format/): `application/vdn.api+json`, `application/vnd.collection+json`, `application/hal+json`, `application/problem+json`
|
239
|
+
- Adds new option to `OAuth2::Client#get_token`:
|
240
|
+
- `:access_token_class` (`AccessToken`); user specified class to use for all calls to `get_token`
|
241
|
+
- Adds new option to `OAuth2::AccessToken#initialize`:
|
242
|
+
- `:expires_latency` (`nil`); number of seconds by which AccessToken validity will be reduced to offset latency
|
243
|
+
- By default, keys are transformed to camel case.
|
244
|
+
- Original keys will still work as previously, in most scenarios, thanks to `rash_alt` gem.
|
245
|
+
- However, this is a _breaking_ change if you rely on `response.parsed.to_h`, as the keys in the result will be camel case.
|
246
|
+
- As of version 2.0.4 you can turn key transformation off with the `snaky: false` option.
|
247
|
+
- By default, the `:auth_scheme` is now `:basic_auth` (instead of `:request_body`)
|
248
|
+
- Third-party strategies and gems may need to be updated if a provider was requiring client id/secret in the request body
|
249
|
+
- [... A lot more](https://gitlab.com/oauth-xx/oauth2/-/blob/main/CHANGELOG.md#2.0.0)
|
250
|
+
|
240
251
|
## Compatibility
|
241
252
|
|
242
253
|
Targeted ruby compatibility is 2.7, 3.0 and 3.1. Compatibility is further distinguished by
|
@@ -251,8 +262,7 @@ This gem is tested against MRI, JRuby, and Truffleruby.
|
|
251
262
|
Each of those has varying versions that target a specific version of MRI Ruby.
|
252
263
|
This gem should work in the just-listed Ruby engines according to the targeted MRI compatibility in the table below.
|
253
264
|
If you would like to add support for additional engines,
|
254
|
-
|
255
|
-
then submit a PR to the correct maintenance branch as according to the table below.
|
265
|
+
see `gemfiles/README.md`, then submit a PR to the correct maintenance branch as according to the table below.
|
256
266
|
</details>
|
257
267
|
|
258
268
|
<details>
|
@@ -274,7 +284,7 @@ of a major release, support for that Ruby version may be dropped.
|
|
274
284
|
|
275
285
|
| | Ruby OAuth2 Version | Maintenance Branch | Supported Officially | Supported Unofficially | Supported Incidentally |
|
276
286
|
|:----|---------------------|--------------------|-------------------------|------------------------|------------------------|
|
277
|
-
| 1️⃣ | 2.0.x | `
|
287
|
+
| 1️⃣ | 2.0.x | `main` | 2.7, 3.0, 3.1 | 2.5, 2.6 | 2.2, 2.3, 2.4 |
|
278
288
|
| 2️⃣ | 1.4.x | `1-4-stable` | 2.5, 2.6, 2.7, 3.0, 3.1 | 2.1, 2.2, 2.3, 2.4 | 1.9, 2.0 |
|
279
289
|
| 3️⃣ | older | N/A | Best of luck to you! | Please upgrade! | |
|
280
290
|
|
@@ -414,20 +424,28 @@ spec.add_dependency 'oauth2', '~> 1.4'
|
|
414
424
|
|
415
425
|
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Foauth-xx%2Foauth2.svg?type=large)][fossa2]
|
416
426
|
|
417
|
-
[license]: https://
|
418
|
-
[oauth-xx]: https://
|
427
|
+
[license]: https://gitlab.com/oauth-xx/oauth2/-/blob/main/LICENSE
|
428
|
+
[oauth-xx]: https://gitlab.com/oauth-xx
|
419
429
|
[fossa2]: https://app.fossa.io/projects/git%2Bgithub.com%2Foauth-xx%2Foauth2?ref=badge_large
|
420
430
|
|
421
431
|
## Development
|
422
432
|
|
423
|
-
After checking out the repo, run `
|
433
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
424
434
|
|
425
435
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
426
436
|
|
427
437
|
## Contributing
|
428
438
|
|
429
|
-
|
439
|
+
See [CONTRIBUTING.md][contributing]
|
440
|
+
|
441
|
+
[contributing]: https://gitlab.com/oauth-xx/oauth2/-/blob/main/CONTRIBUTING.md
|
442
|
+
|
443
|
+
## Contributors
|
444
|
+
|
445
|
+
[![Contributors](https://contrib.rocks/image?repo=oauth-xx/oauth2)]("https://gitlab.com/oauth-xx/oauth2/-/graphs/main")
|
446
|
+
|
447
|
+
Made with [contributors-img](https://contrib.rocks).
|
430
448
|
|
431
449
|
## Code of Conduct
|
432
450
|
|
433
|
-
Everyone interacting in the OAuth2 project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://
|
451
|
+
Everyone interacting in the OAuth2 project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://gitlab.com/oauth-xx/oauth2/-/blob/main/CODE_OF_CONDUCT.md).
|
data/SECURITY.md
CHANGED
@@ -2,11 +2,15 @@
|
|
2
2
|
|
3
3
|
## Supported Versions
|
4
4
|
|
5
|
-
| Version | Supported
|
6
|
-
|
7
|
-
| 2.latest | ✅
|
8
|
-
| 1.latest | ✅
|
9
|
-
|
|
5
|
+
| Version | Supported | EOL | Post-EOL / Enterprise |
|
6
|
+
|----------|-----------|---------|---------------------------------------|
|
7
|
+
| 2.latest | ✅ | 04/2024 | [Tidelift Subscription][tidelift-ref] |
|
8
|
+
| 1.latest | ✅ | 04/2023 | [Tidelift Subscription][tidelift-ref] |
|
9
|
+
| <= 1 | ⛔ | ⛔ | ⛔ |
|
10
|
+
|
11
|
+
### EOL Policy
|
12
|
+
|
13
|
+
Non-commercial support for the oldest version of Ruby (which itself is going EOL) will be dropped each year in April.
|
10
14
|
|
11
15
|
## Reporting a Vulnerability
|
12
16
|
|
@@ -17,4 +21,6 @@ Tidelift will coordinate the fix and disclosure.
|
|
17
21
|
|
18
22
|
Available as part of the Tidelift Subscription.
|
19
23
|
|
20
|
-
The maintainers of oauth2 and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. [Learn more.]
|
24
|
+
The maintainers of oauth2 and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. [Learn more.][tidelift-ref]
|
25
|
+
|
26
|
+
[tidelift-ref]: https://tidelift.com/subscription/pkg/rubygems-oauth2?utm_source=rubygems-oauth2&utm_medium=referral&utm_campaign=enterprise&utm_term=repo
|
data/lib/oauth2/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
8
|
- Erik Michaels-Ober
|
9
9
|
- Michael Bleigh
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-09-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|
@@ -89,7 +89,7 @@ dependencies:
|
|
89
89
|
version: '1.2'
|
90
90
|
- - "<"
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
92
|
+
version: '4'
|
93
93
|
type: :runtime
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -99,21 +99,21 @@ dependencies:
|
|
99
99
|
version: '1.2'
|
100
100
|
- - "<"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
102
|
+
version: '4'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: addressable
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - "
|
107
|
+
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '2
|
109
|
+
version: '2'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
|
-
- - "
|
114
|
+
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '2
|
116
|
+
version: '2'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: bundler
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,42 +134,42 @@ dependencies:
|
|
134
134
|
requirements:
|
135
135
|
- - ">="
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: '12
|
137
|
+
version: '12'
|
138
138
|
type: :development
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '12
|
144
|
+
version: '12'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: rexml
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
-
- - "
|
149
|
+
- - ">="
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: '3
|
151
|
+
version: '3'
|
152
152
|
type: :development
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
|
-
- - "
|
156
|
+
- - ">="
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: '3
|
158
|
+
version: '3'
|
159
159
|
- !ruby/object:Gem::Dependency
|
160
160
|
name: rspec
|
161
161
|
requirement: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
|
-
- - "
|
163
|
+
- - ">="
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: '3
|
165
|
+
version: '3'
|
166
166
|
type: :development
|
167
167
|
prerelease: false
|
168
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
|
-
- - "
|
170
|
+
- - ">="
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: '3
|
172
|
+
version: '3'
|
173
173
|
- !ruby/object:Gem::Dependency
|
174
174
|
name: rspec-block_is_expected
|
175
175
|
requirement: !ruby/object:Gem::Requirement
|
@@ -274,28 +274,34 @@ files:
|
|
274
274
|
- lib/oauth2/strategy/implicit.rb
|
275
275
|
- lib/oauth2/strategy/password.rb
|
276
276
|
- lib/oauth2/version.rb
|
277
|
-
homepage: https://
|
277
|
+
homepage: https://gitlab.com/oauth-xx/oauth2
|
278
278
|
licenses:
|
279
279
|
- MIT
|
280
280
|
metadata:
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
281
|
+
homepage_uri: https://gitlab.com/oauth-xx/oauth2
|
282
|
+
source_code_uri: https://gitlab.com/oauth-xx/oauth2/-/tree/v1.4.11
|
283
|
+
changelog_uri: https://gitlab.com/oauth-xx/oauth2/-/blob/v1.4.11/CHANGELOG.md
|
284
|
+
bug_tracker_uri: https://gitlab.com/oauth-xx/oauth2/-/issues
|
285
|
+
documentation_uri: https://www.rubydoc.info/gems/oauth2/1.4.11
|
286
|
+
wiki_uri: https://gitlab.com/oauth-xx/oauth2/-/wiki
|
287
|
+
funding_uri: https://liberapay.com/pboling
|
287
288
|
rubygems_mfa_required: 'true'
|
288
289
|
post_install_message: |2+
|
289
290
|
|
290
|
-
You have installed oauth2 version 1.4.
|
291
|
+
You have installed oauth2 version 1.4.11, which is EOL.
|
291
292
|
No further support is anticipated for the 1.4.x series.
|
292
293
|
|
293
294
|
OAuth2 version 2 is released.
|
294
295
|
There are BREAKING changes, but most will not encounter them, and upgrading should be easy!
|
295
296
|
|
297
|
+
We have made two other major migrations:
|
298
|
+
1. master branch renamed to main
|
299
|
+
2. Github has been replaced with Gitlab
|
300
|
+
|
296
301
|
Please see:
|
297
|
-
• https://
|
298
|
-
• https://
|
302
|
+
• https://gitlab.com/oauth-xx/oauth2#what-is-new-for-v20
|
303
|
+
• https://gitlab.com/oauth-xx/oauth2/-/blob/main/CHANGELOG.md
|
304
|
+
• https://groups.google.com/g/oauth-ruby/c/QA_dtrXWXaE
|
299
305
|
|
300
306
|
Please upgrade, report issues, and support the project! Thanks, |7eter l-|. l3oling
|
301
307
|
|
@@ -313,8 +319,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
313
319
|
- !ruby/object:Gem::Version
|
314
320
|
version: '0'
|
315
321
|
requirements: []
|
316
|
-
rubygems_version: 3.3.
|
317
|
-
signing_key:
|
322
|
+
rubygems_version: 3.3.21
|
323
|
+
signing_key:
|
318
324
|
specification_version: 4
|
319
325
|
summary: A Ruby wrapper for the OAuth 2.0 protocol.
|
320
326
|
test_files: []
|
327
|
+
...
|