oauth2 1.4.0 → 1.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 84ee088f95ac4124196f4c649add2c5f37a75ae8
4
- data.tar.gz: e6fa5d5d1c8212b527ba7283955aeaa877394572
2
+ SHA256:
3
+ metadata.gz: f9cd34855e4a7388c32053dbf97a38dafc04685818b1de1244a5782944ba742d
4
+ data.tar.gz: e763de5d77201cfb9661458882d4a52a87268804a7455207b72f997815abba74
5
5
  SHA512:
6
- metadata.gz: d204c600e9e8f402d6b8b838b1daea7180c10855a59adc1aff4f3f16a59a4281863429b027fd8b11b4d9137d1705837da9b8f1d38601cf4ed5e45e440cf90af4
7
- data.tar.gz: bb84c88da23c023e291f8a999d0787eae9ef8ece6e5923246dfe4498ab15c84686451b8c47334d8270f9ed2e9e979ffdc4750058c13c5532e944d8a31792db42
6
+ metadata.gz: 5b0ee6b53136ba7ef8cb6614eba4bd8af80dfc274dfc0cc857e07edfcfe8a3e6f6f59e38144581c4509c3a674e7f8a6ce7389e7f2f27dae02536b07e63815bb6
7
+ data.tar.gz: 0ad35386515cdca17ef71ad5a7e6c98851532ea6549de173b6131289147f0745f8ae992b5d0ff49fb300125873495c81eb81f4fd48b1d0898e88f94e57bb33f1
data/CHANGELOG.md ADDED
@@ -0,0 +1,187 @@
1
+ # Change Log
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ ## unreleased
5
+
6
+ ## [1.4.8] - 2022-02-18
7
+
8
+ - MFA is now required to push new gem versions (@pboling)
9
+ - README overhaul w/ new Ruby Verion and Engine compatibility policies (@pboling)
10
+ - [#569](https://github.com/oauth-xx/oauth2/pull/569) Backport fixes ([#561](https://github.com/oauth-xx/oauth2/pull/561) by @ryogift), and add more fixes, to allow faraday 1.x and 2.x (@jrochkind)
11
+ - Improve Code Coverage tracking (Coveralls, CodeCov, CodeClimate), and enable branch coverage (@pboling)
12
+ - Add CodeQL, Security Policy, Funding info (@pboling)
13
+ - Added Ruby 3.1, jruby, jruby-head, truffleruby, truffleruby-head to build matrix (@pboling)
14
+ - [#543](https://github.com/oauth-xx/oauth2/pull/543) - Support for more modern Open SSL libraries (@pboling)
15
+
16
+ ## [1.4.7] - 2021-03-19
17
+
18
+ - [#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)
19
+
20
+ ## [1.4.6] - 2021-03-19
21
+
22
+ - [#540](https://github.com/oauth-xx/oauth2/pull/540) - Add VERSION constant (@pboling)
23
+ - [#537](https://github.com/oauth-xx/oauth2/pull/537) - Fix crash in OAuth2::Client#get_token (@anderscarling)
24
+ - [#538](https://github.com/oauth-xx/oauth2/pull/538) - Remove reliance on globally included OAuth2 in tests for version 1.4 (@anderscarling)
25
+
26
+ ## [1.4.5] - 2021-03-18
27
+
28
+ - [#535](https://github.com/oauth-xx/oauth2/pull/535) - Compatibility with range of supported Ruby OpenSSL versions, Rubocop updates, Github Actions (@pboling)
29
+ - [#518](https://github.com/oauth-xx/oauth2/pull/518) - Add extract_access_token option to OAuth2::Client (@jonspalmer)
30
+ - [#507](https://github.com/oauth-xx/oauth2/pull/507) - Fix camel case content type, response keys (@anvox)
31
+ - [#500](https://github.com/oauth-xx/oauth2/pull/500) - Fix YARD documentation formatting (@olleolleolle)
32
+
33
+ ## [1.4.4] - 2020-02-12
34
+
35
+ - [#408](https://github.com/oauth-xx/oauth2/pull/408) - Fixed expires_at for formatted time (@Lomey)
36
+
37
+ ## [1.4.3] - 2020-01-29
38
+
39
+ - [#483](https://github.com/oauth-xx/oauth2/pull/483) - add project metadata to gemspec (@orien)
40
+ - [#495](https://github.com/oauth-xx/oauth2/pull/495) - support additional types of access token requests (@SteveyblamFreeagent, @thomcorley, @dgholz)
41
+ - Adds support for private_key_jwt and tls_client_auth
42
+ - [#433](https://github.com/oauth-xx/oauth2/pull/433) - allow field names with square brackets and numbers in params (@asm256)
43
+
44
+ ## [1.4.2] - 2019-10-01
45
+
46
+ - [#478](https://github.com/oauth-xx/oauth2/pull/478) - support latest version of faraday & fix build (@pboling)
47
+ - officially support Ruby 2.6 and truffleruby
48
+
49
+ ## [1.4.1] - 2018-10-13
50
+
51
+ - [#417](https://github.com/oauth-xx/oauth2/pull/417) - update jwt dependency (@thewoolleyman)
52
+ - [#419](https://github.com/oauth-xx/oauth2/pull/419) - remove rubocop dependency (temporary, added back in [#423](https://github.com/oauth-xx/oauth2/pull/423)) (@pboling)
53
+ - [#418](https://github.com/oauth-xx/oauth2/pull/418) - update faraday dependency (@pboling)
54
+ - [#420](https://github.com/oauth-xx/oauth2/pull/420) - update [oauth2.gemspec](https://github.com/oauth-xx/oauth2/blob/1-4-stable/oauth2.gemspec) (@pboling)
55
+ - [#421](https://github.com/oauth-xx/oauth2/pull/421) - fix [CHANGELOG.md](https://github.com/oauth-xx/oauth2/blob/1-4-stable/CHANGELOG.md) for previous releases (@pboling)
56
+ - [#422](https://github.com/oauth-xx/oauth2/pull/422) - update [LICENSE](https://github.com/oauth-xx/oauth2/blob/1-4-stable/LICENSE) and [README.md](https://github.com/oauth-xx/oauth2/blob/1-4-stable/README.md) (@pboling)
57
+ - [#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
+ - officially document supported Rubies
59
+ * Ruby 1.9.3
60
+ * Ruby 2.0.0
61
+ * Ruby 2.1
62
+ * Ruby 2.2
63
+ * [JRuby 1.7][jruby-1.7] (targets MRI v1.9)
64
+ * [JRuby 9.0][jruby-9.0] (targets MRI v2.0)
65
+ * Ruby 2.3
66
+ * Ruby 2.4
67
+ * Ruby 2.5
68
+ * [JRuby 9.1][jruby-9.1] (targets MRI v2.3)
69
+ * [JRuby 9.2][jruby-9.2] (targets MRI v2.5)
70
+
71
+ [jruby-1.7]: https://www.jruby.org/2017/05/11/jruby-1-7-27.html
72
+ [jruby-9.0]: https://www.jruby.org/2016/01/26/jruby-9-0-5-0.html
73
+ [jruby-9.1]: https://www.jruby.org/2017/05/16/jruby-9-1-9-0.html
74
+ [jruby-9.2]: https://www.jruby.org/2018/05/24/jruby-9-2-0-0.html
75
+
76
+ ## [1.4.0] - 2017-06-09
77
+
78
+ - Drop Ruby 1.8.7 support (@sferik)
79
+ - Fix some RuboCop offenses (@sferik)
80
+ - _Dependency_: Remove Yardstick (@sferik)
81
+ - _Dependency_: Upgrade Faraday to 0.12 (@sferik)
82
+
83
+ ## [1.3.1] - 2017-03-03
84
+
85
+ - Add support for Ruby 2.4.0 (@pschambacher)
86
+ - _Dependency_: Upgrade Faraday to Faraday 0.11 (@mcfiredrill, @rhymes, @pschambacher)
87
+
88
+ ## [1.3.0] - 2016-12-28
89
+
90
+ - Add support for header-based authentication to the `Client` so it can be used across the library (@bjeanes)
91
+ - Default to header-based authentication when getting a token from an authorisation code (@maletor)
92
+ - **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)
93
+ - Handle `redirect_uri` according to the OAuth 2 spec, so it is passed on redirect and at the point of token exchange (@bjeanes)
94
+ - Refactor handling of encoding of error responses (@urkle)
95
+ - Avoid instantiating an `Error` if there is no error to raise (@urkle)
96
+ - Add support for Faraday 0.10 (@rhymes)
97
+
98
+ ## [1.2.0] - 2016-07-01
99
+
100
+ - Properly handle encoding of error responses (so we don't blow up, for example, when Google's response includes a ∞) (@Motoshi-Nishihira)
101
+ - Make a copy of the options hash in `AccessToken#from_hash` to avoid accidental mutations (@Linuus)
102
+ - Use `raise` rather than `fail` to throw exceptions (@sferik)
103
+
104
+ ## [1.1.0] - 2016-01-30
105
+
106
+ - 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)
107
+ - Add support for Rack 2, and bump various other dependencies (@sferik)
108
+
109
+ ## [1.0.0] - 2014-07-09
110
+
111
+ ### Added
112
+ - Add an implementation of the MAC token spec.
113
+
114
+ ### Fixed
115
+ - Fix Base64.strict_encode64 incompatibility with Ruby 1.8.7.
116
+
117
+ ## [0.5.0] - 2011-07-29
118
+
119
+ ### Changed
120
+ - [breaking] `oauth_token` renamed to `oauth_bearer`.
121
+ - [breaking] `authorize_path` Client option renamed to `authorize_url`.
122
+ - [breaking] `access_token_path` Client option renamed to `token_url`.
123
+ - [breaking] `access_token_method` Client option renamed to `token_method`.
124
+ - [breaking] `web_server` renamed to `auth_code`.
125
+
126
+ ## [0.4.1] - 2011-04-20
127
+
128
+ ## [0.4.0] - 2011-04-20
129
+
130
+ ## [0.3.0] - 2011-04-08
131
+
132
+ ## [0.2.0] - 2011-04-01
133
+
134
+ ## [0.1.1] - 2011-01-12
135
+
136
+ ## [0.1.0] - 2010-10-13
137
+
138
+ ## [0.0.13] + [0.0.12] + [0.0.11] - 2010-08-17
139
+
140
+ ## [0.0.10] - 2010-06-19
141
+
142
+ ## [0.0.9] - 2010-06-18
143
+
144
+ ## [0.0.8] + [0.0.7] - 2010-04-27
145
+
146
+ ## [0.0.6] - 2010-04-25
147
+
148
+ ## [0.0.5] - 2010-04-23
149
+
150
+ ## [0.0.4] + [0.0.3] + [0.0.2] + [0.0.1] - 2010-04-22
151
+
152
+
153
+ [0.0.1]: https://github.com/oauth-xx/oauth2/compare/311d9f4...v0.0.1
154
+ [0.0.2]: https://github.com/oauth-xx/oauth2/compare/v0.0.1...v0.0.2
155
+ [0.0.3]: https://github.com/oauth-xx/oauth2/compare/v0.0.2...v0.0.3
156
+ [0.0.4]: https://github.com/oauth-xx/oauth2/compare/v0.0.3...v0.0.4
157
+ [0.0.5]: https://github.com/oauth-xx/oauth2/compare/v0.0.4...v0.0.5
158
+ [0.0.6]: https://github.com/oauth-xx/oauth2/compare/v0.0.5...v0.0.6
159
+ [0.0.7]: https://github.com/oauth-xx/oauth2/compare/v0.0.6...v0.0.7
160
+ [0.0.8]: https://github.com/oauth-xx/oauth2/compare/v0.0.7...v0.0.8
161
+ [0.0.9]: https://github.com/oauth-xx/oauth2/compare/v0.0.8...v0.0.9
162
+ [0.0.10]: https://github.com/oauth-xx/oauth2/compare/v0.0.9...v0.0.10
163
+ [0.0.11]: https://github.com/oauth-xx/oauth2/compare/v0.0.10...v0.0.11
164
+ [0.0.12]: https://github.com/oauth-xx/oauth2/compare/v0.0.11...v0.0.12
165
+ [0.0.13]: https://github.com/oauth-xx/oauth2/compare/v0.0.12...v0.0.13
166
+ [0.1.0]: https://github.com/oauth-xx/oauth2/compare/v0.0.13...v0.1.0
167
+ [0.1.1]: https://github.com/oauth-xx/oauth2/compare/v0.1.0...v0.1.1
168
+ [0.2.0]: https://github.com/oauth-xx/oauth2/compare/v0.1.1...v0.2.0
169
+ [0.3.0]: https://github.com/oauth-xx/oauth2/compare/v0.2.0...v0.3.0
170
+ [0.4.0]: https://github.com/oauth-xx/oauth2/compare/v0.3.0...v0.4.0
171
+ [0.4.1]: https://github.com/oauth-xx/oauth2/compare/v0.4.0...v0.4.1
172
+ [0.5.0]: https://github.com/oauth-xx/oauth2/compare/v0.4.1...v0.5.0
173
+ [1.0.0]: https://github.com/oauth-xx/oauth2/compare/v0.9.4...v1.0.0
174
+ [1.1.0]: https://github.com/oauth-xx/oauth2/compare/v1.0.0...v1.1.0
175
+ [1.2.0]: https://github.com/oauth-xx/oauth2/compare/v1.1.0...v1.2.0
176
+ [1.3.0]: https://github.com/oauth-xx/oauth2/compare/v1.2.0...v1.3.0
177
+ [1.3.1]: https://github.com/oauth-xx/oauth2/compare/v1.3.0...v1.3.1
178
+ [1.4.0]: https://github.com/oauth-xx/oauth2/compare/v1.3.1...v1.4.0
179
+ [1.4.1]: https://github.com/oauth-xx/oauth2/compare/v1.4.0...v1.4.1
180
+ [1.4.2]: https://github.com/oauth-xx/oauth2/compare/v1.4.1...v1.4.2
181
+ [1.4.3]: https://github.com/oauth-xx/oauth2/compare/v1.4.2...v1.4.3
182
+ [1.4.4]: https://github.com/oauth-xx/oauth2/compare/v1.4.3...v1.4.4
183
+ [1.4.5]: https://github.com/oauth-xx/oauth2/compare/v1.4.4...v1.4.5
184
+ [1.4.6]: https://github.com/oauth-xx/oauth2/compare/v1.4.5...v1.4.6
185
+ [1.4.7]: https://github.com/oauth-xx/oauth2/compare/v1.4.6...v1.4.7
186
+ [1.4.8]: https://github.com/oauth-xx/oauth2/compare/v1.4.7...v1.4.8
187
+ [unreleased]: https://github.com/oauth-xx/oauth2/compare/v1.4.1...HEAD
@@ -0,0 +1,133 @@
1
+
2
+ # Contributor Covenant Code of Conduct
3
+
4
+ ## Our Pledge
5
+
6
+ We as members, contributors, and leaders pledge to make participation in our
7
+ community a harassment-free experience for everyone, regardless of age, body
8
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
9
+ identity and expression, level of experience, education, socio-economic status,
10
+ nationality, personal appearance, race, religion, or sexual identity
11
+ and orientation.
12
+
13
+ We pledge to act and interact in ways that contribute to an open, welcoming,
14
+ diverse, inclusive, and healthy community.
15
+
16
+ ## Our Standards
17
+
18
+ Examples of behavior that contributes to a positive environment for our
19
+ community include:
20
+
21
+ * Demonstrating empathy and kindness toward other people
22
+ * Being respectful of differing opinions, viewpoints, and experiences
23
+ * Giving and gracefully accepting constructive feedback
24
+ * Accepting responsibility and apologizing to those affected by our mistakes,
25
+ and learning from the experience
26
+ * Focusing on what is best not just for us as individuals, but for the
27
+ overall community
28
+
29
+ Examples of unacceptable behavior include:
30
+
31
+ * The use of sexualized language or imagery, and sexual attention or
32
+ advances of any kind
33
+ * Trolling, insulting or derogatory comments, and personal or political attacks
34
+ * Public or private harassment
35
+ * Publishing others' private information, such as a physical or email
36
+ address, without their explicit permission
37
+ * Other conduct which could reasonably be considered inappropriate in a
38
+ professional setting
39
+
40
+ ## Enforcement Responsibilities
41
+
42
+ Community leaders are responsible for clarifying and enforcing our standards of
43
+ acceptable behavior and will take appropriate and fair corrective action in
44
+ response to any behavior that they deem inappropriate, threatening, offensive,
45
+ or harmful.
46
+
47
+ Community leaders have the right and responsibility to remove, edit, or reject
48
+ comments, commits, code, wiki edits, issues, and other contributions that are
49
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
50
+ decisions when appropriate.
51
+
52
+ ## Scope
53
+
54
+ This Code of Conduct applies within all community spaces, and also applies when
55
+ an individual is officially representing the community in public spaces.
56
+ Examples of representing our community include using an official e-mail address,
57
+ posting via an official social media account, or acting as an appointed
58
+ representative at an online or offline event.
59
+
60
+ ## Enforcement
61
+
62
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
+ reported to the community leaders responsible for enforcement at
64
+ [INSERT CONTACT METHOD].
65
+ All complaints will be reviewed and investigated promptly and fairly.
66
+
67
+ All community leaders are obligated to respect the privacy and security of the
68
+ reporter of any incident.
69
+
70
+ ## Enforcement Guidelines
71
+
72
+ Community leaders will follow these Community Impact Guidelines in determining
73
+ the consequences for any action they deem in violation of this Code of Conduct:
74
+
75
+ ### 1. Correction
76
+
77
+ **Community Impact**: Use of inappropriate language or other behavior deemed
78
+ unprofessional or unwelcome in the community.
79
+
80
+ **Consequence**: A private, written warning from community leaders, providing
81
+ clarity around the nature of the violation and an explanation of why the
82
+ behavior was inappropriate. A public apology may be requested.
83
+
84
+ ### 2. Warning
85
+
86
+ **Community Impact**: A violation through a single incident or series
87
+ of actions.
88
+
89
+ **Consequence**: A warning with consequences for continued behavior. No
90
+ interaction with the people involved, including unsolicited interaction with
91
+ those enforcing the Code of Conduct, for a specified period of time. This
92
+ includes avoiding interactions in community spaces as well as external channels
93
+ like social media. Violating these terms may lead to a temporary or
94
+ permanent ban.
95
+
96
+ ### 3. Temporary Ban
97
+
98
+ **Community Impact**: A serious violation of community standards, including
99
+ sustained inappropriate behavior.
100
+
101
+ **Consequence**: A temporary ban from any sort of interaction or public
102
+ communication with the community for a specified period of time. No public or
103
+ private interaction with the people involved, including unsolicited interaction
104
+ with those enforcing the Code of Conduct, is allowed during this period.
105
+ Violating these terms may lead to a permanent ban.
106
+
107
+ ### 4. Permanent Ban
108
+
109
+ **Community Impact**: Demonstrating a pattern of violation of community
110
+ standards, including sustained inappropriate behavior, harassment of an
111
+ individual, or aggression toward or disparagement of classes of individuals.
112
+
113
+ **Consequence**: A permanent ban from any sort of public interaction within
114
+ the community.
115
+
116
+ ## Attribution
117
+
118
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
+ version 2.0, available at
120
+ [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
121
+
122
+ Community Impact Guidelines were inspired by
123
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124
+
125
+ For answers to common questions about this code of conduct, see the FAQ at
126
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available
127
+ at [https://www.contributor-covenant.org/translations][translations].
128
+
129
+ [homepage]: https://www.contributor-covenant.org
130
+ [v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
131
+ [Mozilla CoC]: https://github.com/mozilla/diversity
132
+ [FAQ]: https://www.contributor-covenant.org/faq
133
+ [translations]: https://www.contributor-covenant.org/translations
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2011 - 2013 Michael Bleigh and Intridea, Inc.
4
+ Copyright (c) 2017 - 2022 oauth-xx organization, https://github.com/oauth-xx
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.