open_id_authentication 1.3.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +38 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/CONTRIBUTING.md +55 -0
- data/LICENSE.txt +21 -0
- data/README.md +101 -24
- data/SECURITY.md +14 -0
- data/lib/open_id_authentication/controller_methods.rb +5 -5
- data/lib/open_id_authentication/middleware.rb +34 -29
- data/lib/open_id_authentication/railtie.rb +3 -3
- data/lib/open_id_authentication/result.rb +11 -9
- data/lib/open_id_authentication/version.rb +3 -2
- data/lib/open_id_authentication.rb +12 -4
- data.tar.gz.sig +3 -0
- metadata +270 -18
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 36941d55f36c7a78cac0dfb3c2cfab2a27a2e1b0987e88e825053780e35ac647
|
4
|
+
data.tar.gz: 30c59ea6085e672b49a670c3456295003253f547a2f2f261034797ded4a1d388
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b827a93aab6b9f823c60d59ddf5840a0d7bcab36501a1a59248e6de65f89b3f1e176d6d7eea9fe1c7b09d79128fa7173d0144255b27b5c1380d29d9864ce72ea
|
7
|
+
data.tar.gz: 9c0510b56068d8bffed4f7fc9cb81076dcc0e800f48d72efd20f82166d9a20c7a6fcde2c14d1d7230ca58f0641ba42ff29361529ef219c3b27d3c1a9c13fb594
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
Since version 2.0.0, the format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [Unreleased]
|
8
|
+
### Added
|
9
|
+
### Changed
|
10
|
+
### Fixed
|
11
|
+
### Removed
|
12
|
+
|
13
|
+
## 2.0.1 - 2024-09-16 (returned to `open_id_authentication`)
|
14
|
+
COVERAGE: 55.56% -- 55/99 lines in 6 files
|
15
|
+
BRANCH COVERAGE: 23.53% -- 4/17 branches in 6 branches
|
16
|
+
### Added
|
17
|
+
- More Documentation
|
18
|
+
### Changed
|
19
|
+
- Renamed gem back to original `open_id_authentication`
|
20
|
+
|
21
|
+
## 2.0.0 - 2024-09-05 (released as `open_id_authentication2`)
|
22
|
+
COVERAGE: 55.56% -- 55/99 lines in 6 files
|
23
|
+
BRANCH COVERAGE: 23.53% -- 4/17 branches in 6 branches
|
24
|
+
### Added
|
25
|
+
- More specs
|
26
|
+
- version_gem runtime dependency
|
27
|
+
- rubocop-lts development dependency (linting)
|
28
|
+
- kettle-soup-cover development dependency (code coverage)
|
29
|
+
- Gem signing certificate
|
30
|
+
### Changed
|
31
|
+
- Upgraded to RSpec v3
|
32
|
+
- Switched rack-openid => rack-openid2
|
33
|
+
- Renamed gem to `open_id_authentication2`
|
34
|
+
### Fixed
|
35
|
+
- Compatibility with Ruby 2.7+
|
36
|
+
### Removed
|
37
|
+
- Support for Ruby < 2.7
|
38
|
+
- Undeclared dependency on Rails.logger
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
+
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or
|
22
|
+
advances of any kind
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
+
* Public or private harassment
|
25
|
+
* Publishing others' private information, such as a physical or email
|
26
|
+
address, without their explicit permission
|
27
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
+
professional setting
|
29
|
+
|
30
|
+
## Enforcement Responsibilities
|
31
|
+
|
32
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
+
|
34
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
+
|
36
|
+
## Scope
|
37
|
+
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
+
|
40
|
+
## Enforcement
|
41
|
+
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at peter.boling@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
+
|
44
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
+
|
46
|
+
## Enforcement Guidelines
|
47
|
+
|
48
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
+
|
50
|
+
### 1. Correction
|
51
|
+
|
52
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
+
|
54
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
+
|
56
|
+
### 2. Warning
|
57
|
+
|
58
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
+
|
60
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
+
|
62
|
+
### 3. Temporary Ban
|
63
|
+
|
64
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
+
|
66
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
+
|
68
|
+
### 4. Permanent Ban
|
69
|
+
|
70
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
+
|
72
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
+
|
74
|
+
## Attribution
|
75
|
+
|
76
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
+
|
79
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
+
|
81
|
+
[homepage]: https://www.contributor-covenant.org
|
82
|
+
|
83
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
## Contributing
|
2
|
+
|
3
|
+
Bug reports and pull requests are welcome on GitHub at [https://github.com/oauth-xx/open_id_authentication][🚎src-main]
|
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.
|
8
|
+
Once you're happy with it send a pull request.
|
9
|
+
|
10
|
+
## Release
|
11
|
+
|
12
|
+
### One-time, Per-developer, Setup
|
13
|
+
|
14
|
+
**IMPORTANT**: Your public key for signing gems will need to be picked up by the line in the
|
15
|
+
`gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there),
|
16
|
+
in order to sign the new release.
|
17
|
+
See: [RubyGems Security Guide][🔒️rubygems-security-guide]
|
18
|
+
|
19
|
+
### To release a new version:
|
20
|
+
|
21
|
+
1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
|
22
|
+
2. Update the version number in `version.rb`
|
23
|
+
3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
|
24
|
+
4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
|
25
|
+
5. Run `git push` to trigger the final CI pipeline before release, & merge PRs
|
26
|
+
- NOTE: Remember to [check the build][🧪build]!
|
27
|
+
6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
|
28
|
+
7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
|
29
|
+
8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure you will release the latest trunk code
|
30
|
+
9. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
|
31
|
+
- Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
|
32
|
+
- If the echo above has no output, then it didn't work.
|
33
|
+
- Note that you'll need the `zsh/datetime` module, if running `zsh`.
|
34
|
+
- In `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
|
35
|
+
10. Run `bundle exec rake build`
|
36
|
+
11. Run `bin/checksums` (more [context][🔒️rubygems-checksums-pr]) to create SHA-256 and SHA-512 checksums
|
37
|
+
- Checksums will be committed automatically by the script, but not pushed
|
38
|
+
12. Run `bundle exec rake release` which will create a git tag for the version,
|
39
|
+
push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
|
40
|
+
|
41
|
+
## Contributors
|
42
|
+
|
43
|
+
[![Contributors][🖐contributors-img]][🖐contributors]
|
44
|
+
|
45
|
+
Made with [contributors-img][🖐contrib-rocks].
|
46
|
+
|
47
|
+
[🧪build]: https://github.com/oauth-xx/open_id_authentication/actions
|
48
|
+
[🤝conduct]: https://github.com/oauth-xx/open_id_authentication/blob/main/CODE_OF_CONDUCT.md
|
49
|
+
[🖐contrib-rocks]: https://contrib.rocks
|
50
|
+
[🖐contributors]: https://github.com/oauth-xx/open_id_authentication/graphs/contributors
|
51
|
+
[🖐contributors-img]: https://contrib.rocks/image?repo=oauth-xx/open_id_authentication
|
52
|
+
[💎rubygems]: https://rubygems.org
|
53
|
+
[🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
|
54
|
+
[🔒️rubygems-checksums-pr]: https://github.com/rubygems/guides/pull/325
|
55
|
+
[🚎src-main]: https://github.com/oauth-xx/open_id_authentication
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Copyright (c) 2007 - 2011 David Heinemeier Hansson, Joshua Peek
|
2
|
+
Copyright (c) 2024 Peter Boling
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
5
|
+
a copy of this software and associated documentation files (the
|
6
|
+
"Software"), to deal in the Software without restriction, including
|
7
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
8
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
9
|
+
permit persons to whom the Software is furnished to do so, subject to
|
10
|
+
the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be
|
13
|
+
included in all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
19
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
20
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,16 +1,78 @@
|
|
1
|
-
OpenIdAuthentication
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# OpenIdAuthentication
|
2
|
+
|
3
|
+
<div id="badges">
|
4
|
+
|
5
|
+
<div align="center">
|
6
|
+
|
7
|
+
[![CI Supported Build][🚎s-wfi]][🚎s-wf]
|
8
|
+
[![CI Unsupported Build][🚎us-wfi]][🚎us-wf]
|
9
|
+
[![CI Style Build][🚎st-wfi]][🚎st-wf]
|
10
|
+
[![CI Coverage Build][🚎cov-wfi]][🚎cov-wf]
|
11
|
+
[![CI Heads Build][🚎hd-wfi]][🚎hd-wf]
|
12
|
+
|
13
|
+
[🚎s-wf]: https://github.com/oauth-xx/open_id_authentication/actions/workflows/supported.yml
|
14
|
+
[🚎s-wfi]: https://github.com/oauth-xx/open_id_authentication/actions/workflows/supported.yml/badge.svg
|
15
|
+
[🚎us-wf]: https://github.com/oauth-xx/open_id_authentication/actions/workflows/unsupported.yml
|
16
|
+
[🚎us-wfi]: https://github.com/oauth-xx/open_id_authentication/actions/workflows/unsupported.yml/badge.svg
|
17
|
+
[🚎st-wf]: https://github.com/oauth-xx/open_id_authentication/actions/workflows/style.yml
|
18
|
+
[🚎st-wfi]: https://github.com/oauth-xx/open_id_authentication/actions/workflows/style.yml/badge.svg
|
19
|
+
[🚎cov-wf]: https://github.com/oauth-xx/open_id_authentication/actions/workflows/coverage.yml
|
20
|
+
[🚎cov-wfi]: https://github.com/oauth-xx/open_id_authentication/actions/workflows/coverage.yml/badge.svg
|
21
|
+
[🚎hd-wf]: https://github.com/oauth-xx/open_id_authentication/actions/workflows/heads.yml
|
22
|
+
[🚎hd-wfi]: https://github.com/oauth-xx/open_id_authentication/actions/workflows/heads.yml/badge.svg
|
23
|
+
|
24
|
+
</div>
|
25
|
+
|
26
|
+
-----
|
27
|
+
|
28
|
+
<div align="center">
|
29
|
+
|
30
|
+
[![Liberapay Patrons][⛳liberapay-img]][⛳liberapay]
|
31
|
+
[![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor]
|
32
|
+
|
33
|
+
[⛳liberapay-img]: https://img.shields.io/liberapay/patrons/pboling.svg?logo=liberapay
|
34
|
+
[⛳liberapay]: https://liberapay.com/pboling/donate
|
35
|
+
[🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
|
36
|
+
[🖇sponsor]: https://github.com/sponsors/pboling
|
37
|
+
|
38
|
+
<span class="badge-buymealatte">
|
39
|
+
<a href="https://www.buymeacoffee.com/pboling"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a latte&emoji=&slug=pboling&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff" /></a>
|
40
|
+
</span>
|
41
|
+
<br>
|
42
|
+
<span class="badge-polarshield">
|
43
|
+
<a href="https://polar.sh/pboling"><img src="https://polar.sh/embed/seeks-funding-shield.svg?org=pboling" /></a>
|
44
|
+
</span>
|
45
|
+
<span class="badge-buymeacoffee">
|
46
|
+
<a href="https://ko-fi.com/O5O86SNP4" target='_blank' title="Donate to my FLOSS or refugee efforts at ko-fi.com"><img src="https://img.shields.io/badge/buy%20me%20coffee-donate-yellow.svg" alt="Buy me coffee donation button" /></a>
|
47
|
+
</span>
|
48
|
+
<span class="badge-patreon">
|
49
|
+
<a href="https://patreon.com/galtzo" title="Donate to my FLOSS or refugee efforts using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a>
|
50
|
+
</span>
|
51
|
+
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
|
55
|
+
Provides a thin wrapper around [`ruby-openid2`](https://github.com/oauth-xx/ruby-openid2), a modernized fork of the
|
56
|
+
ancient-and-archived `ruby-openid` gem from JanRan.
|
5
57
|
|
6
58
|
To understand what OpenID is about and how it works, it helps to read the documentation for lib/openid/consumer.rb
|
7
59
|
from that gem.
|
8
60
|
|
9
61
|
The specification used is http://openid.net/specs/openid-authentication-2_0.html.
|
10
62
|
|
63
|
+
In the early days of Rails, this was an official Rails' plugin, written by DHH. See [Credits](#credits) for more information.
|
64
|
+
|
65
|
+
## Installation
|
66
|
+
|
67
|
+
Install the gem and add to the application's Gemfile by executing:
|
68
|
+
|
69
|
+
$ bundle add open_id_authentication
|
70
|
+
|
71
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
11
72
|
|
12
|
-
|
13
|
-
|
73
|
+
$ gem install open_id_authentication
|
74
|
+
|
75
|
+
## Setup
|
14
76
|
|
15
77
|
OpenID authentication uses the session, so be sure that you haven't turned that off.
|
16
78
|
|
@@ -27,9 +89,7 @@ The plugin also expects to find a root_url method that points to the home page o
|
|
27
89
|
|
28
90
|
This plugin relies on Rails Edge revision 6317 or newer.
|
29
91
|
|
30
|
-
|
31
|
-
Example
|
32
|
-
-------
|
92
|
+
## Example
|
33
93
|
|
34
94
|
This example is just to meant to demonstrate how you could use OpenID authentication. You might well want to add
|
35
95
|
salted hash logins instead of plain text passwords and other requirements on top of this. Treat it as a starting point,
|
@@ -139,8 +199,6 @@ app/controllers/sessions_controller.rb
|
|
139
199
|
end
|
140
200
|
end
|
141
201
|
|
142
|
-
|
143
|
-
|
144
202
|
If you're fine with the result messages above and don't need individual logic on a per-failure basis,
|
145
203
|
you can collapse the case into a mere boolean:
|
146
204
|
|
@@ -155,8 +213,7 @@ you can collapse the case into a mere boolean:
|
|
155
213
|
end
|
156
214
|
|
157
215
|
|
158
|
-
Simple Registration OpenID Extension
|
159
|
-
------------------------------------
|
216
|
+
## Simple Registration OpenID Extension
|
160
217
|
|
161
218
|
Some OpenID Providers support this lightweight profile exchange protocol. See more: http://www.openidenabled.com/openid/simple-registration-extension
|
162
219
|
|
@@ -209,8 +266,7 @@ You can support it in your app by changing #open_id_authentication
|
|
209
266
|
{ :login => 'nickname', :email => 'email', :display_name => 'fullname' }
|
210
267
|
end
|
211
268
|
|
212
|
-
Attribute Exchange OpenID Extension
|
213
|
-
-----------------------------------
|
269
|
+
## Attribute Exchange OpenID Extension
|
214
270
|
|
215
271
|
Some OpenID providers also support the OpenID AX (attribute exchange) protocol for exchanging identity information between endpoints. See more: http://openid.net/specs/openid-attribute-exchange-1_0.html
|
216
272
|
|
@@ -222,17 +278,38 @@ Accessing AX data is very similar to the Simple Registration process, described
|
|
222
278
|
|
223
279
|
This would provide the sreg data for :email via registration, and the AX data for http://schema.openid.net/birthDate via ax.
|
224
280
|
|
225
|
-
|
226
|
-
|
227
|
-
|
281
|
+
## Credits
|
282
|
+
|
283
|
+
### 🌈 Contributors
|
284
|
+
|
285
|
+
Current maintainer(s):
|
286
|
+
|
287
|
+
- [Peter Boling](https://github.com/pboling)
|
288
|
+
|
289
|
+
Special thanks to:
|
290
|
+
- David Heinemeier Hansson - author of Rails' [original `open_id_authentication`](https://github.com/rails/open_id_authentication)
|
291
|
+
- [Joshua Peek](https://github.com/josh) maintainer of Rails' [original `open_id_authentication2`](https://github.com/rails/open_id_authentication)
|
292
|
+
|
293
|
+
And all the other contributors!
|
294
|
+
|
295
|
+
[![Contributors][🖐contributors-img]][🖐contributors]
|
296
|
+
|
297
|
+
Made with [contributors-img][🖐contrib-rocks].
|
298
|
+
|
299
|
+
[🖐contrib-rocks]: https://contrib.rocks
|
300
|
+
[🖐contributors]: https://github.com/oauth-xx/open_id_authentication/graphs/contributors
|
301
|
+
[🖐contributors-img]: https://contrib.rocks/image?repo=oauth-xx/open_id_authentication
|
228
302
|
|
303
|
+
## 📄 License
|
229
304
|
|
230
|
-
|
231
|
-
|
305
|
+
The gem is available as open source under the terms of
|
306
|
+
the [MIT License][📄license] [![License: MIT][📄license-img]][📄license-ref].
|
232
307
|
|
233
|
-
|
308
|
+
See [LICENSE.txt][📄license] for the official [Copyright Notice][📄copyright-notice-explainer].
|
234
309
|
|
310
|
+
[comment]: <> ( 📄 LEGAL LINKS )
|
235
311
|
|
236
|
-
|
237
|
-
|
238
|
-
|
312
|
+
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
313
|
+
[📄license]: LICENSE.txt
|
314
|
+
[📄license-ref]: https://opensource.org/licenses/MIT
|
315
|
+
[📄license-img]: https://img.shields.io/badge/License-MIT-green.svg
|
data/SECURITY.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
## Supported Versions
|
4
|
+
|
5
|
+
| Version | Supported |
|
6
|
+
|---------|-----------|
|
7
|
+
| 2.x | ✅ |
|
8
|
+
| 1.x | ❌ |
|
9
|
+
|
10
|
+
## Reporting a Vulnerability
|
11
|
+
|
12
|
+
Peter Boling is the primary maintainer of this gem. Please find a way
|
13
|
+
to [contact him directly](https://railsbling.com/contact) to report the issue. Include as much relevant information as
|
14
|
+
possible.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require_relative "result"
|
2
2
|
|
3
3
|
module OpenIdAuthentication
|
4
4
|
module ControllerMethods
|
@@ -8,12 +8,12 @@ module OpenIdAuthentication
|
|
8
8
|
# the Rails convention "open_id_identifier" because that's what
|
9
9
|
# the specification dictates in order to get browser auto-complete
|
10
10
|
# working across sites
|
11
|
-
def using_open_id?(identifier = nil)
|
11
|
+
def using_open_id?(identifier = nil) # :doc:
|
12
12
|
identifier ||= open_id_identifier
|
13
13
|
!identifier.blank? || request.env[Rack::OpenID::RESPONSE]
|
14
14
|
end
|
15
15
|
|
16
|
-
def authenticate_with_open_id(identifier = nil, options = {}, &block)
|
16
|
+
def authenticate_with_open_id(identifier = nil, options = {}, &block) # :doc:
|
17
17
|
identifier ||= open_id_identifier
|
18
18
|
|
19
19
|
if request.env[Rack::OpenID::RESPONSE]
|
@@ -33,11 +33,11 @@ module OpenIdAuthentication
|
|
33
33
|
options[:identifier] = identifier
|
34
34
|
value = Rack::OpenID.build_header(options)
|
35
35
|
response.headers[Rack::OpenID::AUTHENTICATE_HEADER] = value
|
36
|
-
head
|
36
|
+
head(:unauthorized)
|
37
37
|
end
|
38
38
|
|
39
39
|
def complete_open_id_authentication
|
40
|
-
response
|
40
|
+
response = request.env[Rack::OpenID::RESPONSE]
|
41
41
|
identifier = response.display_identifier
|
42
42
|
|
43
43
|
case response.status
|
@@ -1,38 +1,43 @@
|
|
1
|
-
|
2
|
-
require
|
3
|
-
|
1
|
+
# stdlib
|
2
|
+
require "uri"
|
3
|
+
|
4
|
+
# External libraries
|
5
|
+
require "openid" # gem ruby-openid2
|
6
|
+
require "rack/openid"
|
4
7
|
|
5
8
|
module OpenIdAuthentication
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
module Middleware
|
10
|
+
class << self
|
11
|
+
# middleware creation
|
12
|
+
def new(app)
|
13
|
+
if store.nil?
|
14
|
+
OpenID::Util.logger.warn("OpenIdAuthentication.store is nil. Using in-memory store.")
|
15
|
+
end
|
12
16
|
|
13
|
-
|
14
|
-
|
17
|
+
::Rack::OpenID.new(app, store)
|
18
|
+
end
|
15
19
|
|
16
|
-
|
17
|
-
|
18
|
-
|
20
|
+
def store
|
21
|
+
@@store
|
22
|
+
end
|
19
23
|
|
20
|
-
|
21
|
-
|
24
|
+
def store=(*store_option)
|
25
|
+
storage, *args = *[store_option].flatten
|
22
26
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
27
|
+
@@store = case storage
|
28
|
+
when :memory
|
29
|
+
require "openid/store/memory"
|
30
|
+
OpenID::Store::Memory.new
|
31
|
+
when :file
|
32
|
+
require "openid/store/filesystem"
|
33
|
+
OpenID::Store::Filesystem.new(Rails.root.join("tmp/openids"))
|
34
|
+
when :memcache
|
35
|
+
require "dalli"
|
36
|
+
require "openid/store/memcache"
|
37
|
+
OpenID::Store::Memcache.new(Dalli::Client.new(args))
|
38
|
+
else
|
39
|
+
storage
|
40
|
+
end
|
36
41
|
end
|
37
42
|
end
|
38
43
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module OpenIdAuthentication
|
2
2
|
class Railtie < ::Rails::Railtie
|
3
|
-
config.app_middleware.use
|
3
|
+
config.app_middleware.use(OpenIdAuthentication::Middleware)
|
4
4
|
|
5
5
|
config.after_initialize do
|
6
6
|
OpenID::Util.logger = Rails.logger
|
7
7
|
end
|
8
8
|
|
9
|
-
ActiveSupport.on_load
|
10
|
-
ActionController::Base.send
|
9
|
+
ActiveSupport.on_load(:action_controller) do
|
10
|
+
ActionController::Base.send(:include, ControllerMethods)
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -1,15 +1,17 @@
|
|
1
1
|
module OpenIdAuthentication
|
2
2
|
class Result
|
3
3
|
ERROR_MESSAGES = {
|
4
|
-
:
|
5
|
-
:
|
6
|
-
:
|
7
|
-
:
|
8
|
-
:
|
9
|
-
}
|
4
|
+
missing: "Sorry, the OpenID server couldn't be found",
|
5
|
+
invalid: "Sorry, but this does not appear to be a valid OpenID",
|
6
|
+
canceled: "OpenID verification was canceled",
|
7
|
+
failed: "OpenID verification failed",
|
8
|
+
setup_needed: "OpenID verification needs setup",
|
9
|
+
}.freeze
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
class << self
|
12
|
+
def [](code)
|
13
|
+
new(code)
|
14
|
+
end
|
13
15
|
end
|
14
16
|
|
15
17
|
def initialize(code)
|
@@ -20,7 +22,7 @@ module OpenIdAuthentication
|
|
20
22
|
@code
|
21
23
|
end
|
22
24
|
|
23
|
-
ERROR_MESSAGES.keys.each { |state| define_method("#{state}?") { @code == state } }
|
25
|
+
ERROR_MESSAGES.keys.each { |state| define_method(:"#{state}?") { @code == state } }
|
24
26
|
|
25
27
|
def successful?
|
26
28
|
@code == :successful
|
@@ -1,7 +1,11 @@
|
|
1
|
-
|
2
|
-
require "
|
3
|
-
|
4
|
-
|
1
|
+
# External Libraries
|
2
|
+
require "version_gem"
|
3
|
+
|
4
|
+
# This library
|
5
|
+
require_relative "open_id_authentication/version"
|
6
|
+
require_relative "open_id_authentication/middleware"
|
7
|
+
require_relative "open_id_authentication/controller_methods"
|
8
|
+
require_relative "open_id_authentication/railtie" if defined?(Rails::Railtie)
|
5
9
|
|
6
10
|
module OpenIdAuthentication
|
7
11
|
# deprecated middleware creation
|
@@ -17,3 +21,7 @@ module OpenIdAuthentication
|
|
17
21
|
Middleware.store = *args
|
18
22
|
end
|
19
23
|
end
|
24
|
+
|
25
|
+
OpenIdAuthentication::Version.class_eval do
|
26
|
+
extend VersionGem::Basic
|
27
|
+
end
|
data.tar.gz.sig
ADDED
@@ -0,0 +1,3 @@
|
|
1
|
+
�ք�6:��bp����$F�m#?!��w]ѐ��d��H�uz�p�v2It����Y��x���0����-���-X(�@o����XS�g�b�Y3(���*�������\Pt[�h�q�>e�c�#�_�zc�����ޥ�1���cӀj�Xh��}i�:[)�;ސ�3�ї
|
2
|
+
<�O�j٠*W�_B6��U�]+s��o��*�3�q���y|ȫt~(f}%.��N
|
3
|
+
V����CtICa:[}g���OL�����va�:"G��&t�r:cdZPEYm{�C�գR�6�H��~!��3O!�}�{�3K;@a����t-�P��_Fﳚ����{��U���Lkr+&�w1��&��.�����:���
|
metadata
CHANGED
@@ -1,48 +1,302 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: open_id_authentication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- Peter Boling
|
7
8
|
- Patrick Robertson
|
8
9
|
- Michael Grosser
|
9
|
-
|
10
|
+
- Joshua Peek
|
11
|
+
- David Heinemeier Hansson
|
12
|
+
autorequire:
|
10
13
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
|
14
|
+
cert_chain:
|
15
|
+
- |
|
16
|
+
-----BEGIN CERTIFICATE-----
|
17
|
+
MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
|
18
|
+
ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
|
19
|
+
A2NvbTAeFw0yMzA5MjAxNzMwMjhaFw0yNDA5MTkxNzMwMjhaMEMxFTATBgNVBAMM
|
20
|
+
DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
|
21
|
+
LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEA+a9UvHo3
|
22
|
+
84k96WgU5Kk5HB+cLZs/modjorsTfqY67MJF5nNvAoqcKTUBW4uG+Zpfnm3jaDO5
|
23
|
+
GxhJEIZWfndYzycHT2KMVQ1uTP82ba8ZaKrPlPIafkbui3mdds47qsmqHiblKERg
|
24
|
+
U532lkwfqHDlJwE7OBZQ59EwWWLynlT/yAUHpOBbqIuHKUxdpmBI+sIjrZcD1e05
|
25
|
+
WmjkO6fwIdC5oM757aoPxIgXD587VOViH11Vkm2doskj4T8yONtwVHlcrrhJ9Bzd
|
26
|
+
/zdp6vEn7GZQrABvpOlqwWxQ72ZnFhJe/RJZf6CXOPOh69Ai0QKYl2a1sYuCJKS3
|
27
|
+
nsBnxXJINEEznjR7rZjNUmYD+CZqfjzgPqedRxTlASe7iA4w7xZOqMDzcuhNwcUQ
|
28
|
+
tMEH6BTktxKP3jXZPXRfHCf6s+HRVb6vezAonTBVyydf5Xp5VwWkd6cwm+2BzHl5
|
29
|
+
7kc/3lLxKMcsyEUprAsk8LdHohwZdC267l+RS++AP6Cz6x+nB3oGob19AgMBAAGj
|
30
|
+
fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQCSSas60GqqMjt
|
31
|
+
xR7LoY1gucEvtzAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
|
32
|
+
A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
|
33
|
+
ggGBAMl9ifcw5p+PdvB7dCPoNKoVdp/2LbC9ztETHuYL2gUMJB6UoS3o9c/piSuR
|
34
|
+
V3ZMQaijmNu6ms1bWAtJ66LjmYrVflJtf9yp31Kierr9LpisMSUx2qbMOHGa8d2Z
|
35
|
+
vCUWPF8E9Cg0mP3GAyZ6qql8jDh/anUKeksPXqJvNxNPDu2DVYsa/IWdl96whzS4
|
36
|
+
Bl7SwB1E7agps40UcshCSKaVDOU0M+XN6SrnJMElnBic+KSAkBkVFbzS0BE4ODZM
|
37
|
+
BgE6nYzQ05qhuvbE+oGdACTlemNtDDWCh0uw+7x0q2PocGIDU5zsPn/WNTkCXPmB
|
38
|
+
CHGvqDNWq4M7ncTKAaS2XExgyb7uPdq9fKiOW8nmH+zCiGzJXzBWwZlKf7L4Ht9E
|
39
|
+
a3f0e5C+zvee9Z5Ng9ciyfav9/fcXgYt5MjoBv27THr5XfBhgOCIHSYW2tqJmWKi
|
40
|
+
KuxrfYrN+9HvMdm+nZ6TypmKftHY3Gj+/uu+g8Icm/zrvTWAEE0mcJOkfrIoNPJb
|
41
|
+
pF8dMA==
|
42
|
+
-----END CERTIFICATE-----
|
43
|
+
date: 2024-09-16 00:00:00.000000000 Z
|
13
44
|
dependencies:
|
14
45
|
- !ruby/object:Gem::Dependency
|
15
|
-
name: rack-
|
46
|
+
name: rack-openid2
|
16
47
|
requirement: !ruby/object:Gem::Requirement
|
17
48
|
requirements:
|
18
49
|
- - "~>"
|
19
50
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
51
|
+
version: '2.0'
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.0.1
|
21
55
|
type: :runtime
|
22
56
|
prerelease: false
|
23
57
|
version_requirements: !ruby/object:Gem::Requirement
|
24
58
|
requirements:
|
25
59
|
- - "~>"
|
26
60
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
28
|
-
|
29
|
-
|
61
|
+
version: '2.0'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 2.0.1
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: version_gem
|
67
|
+
requirement: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '1.1'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 1.1.4
|
75
|
+
type: :runtime
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '1.1'
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 1.1.4
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: kettle-soup-cover
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '1.0'
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 1.0.2
|
95
|
+
type: :development
|
96
|
+
prerelease: false
|
97
|
+
version_requirements: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - "~>"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '1.0'
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 1.0.2
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: rake
|
107
|
+
requirement: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '13'
|
112
|
+
type: :development
|
113
|
+
prerelease: false
|
114
|
+
version_requirements: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '13'
|
119
|
+
- !ruby/object:Gem::Dependency
|
120
|
+
name: rspec
|
121
|
+
requirement: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '3'
|
126
|
+
type: :development
|
127
|
+
prerelease: false
|
128
|
+
version_requirements: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '3'
|
133
|
+
- !ruby/object:Gem::Dependency
|
134
|
+
name: rspec-block_is_expected
|
135
|
+
requirement: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '1.0'
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 1.0.5
|
143
|
+
type: :development
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - "~>"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '1.0'
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.0.5
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rubocop-lts
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '18.2'
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 18.2.1
|
163
|
+
type: :development
|
164
|
+
prerelease: false
|
165
|
+
version_requirements: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '18.2'
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 18.2.1
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: rubocop-minitest
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0.36'
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - "~>"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0.36'
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: rubocop-packaging
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '0.5'
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: 0.5.2
|
197
|
+
type: :development
|
198
|
+
prerelease: false
|
199
|
+
version_requirements: !ruby/object:Gem::Requirement
|
200
|
+
requirements:
|
201
|
+
- - "~>"
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: '0.5'
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: 0.5.2
|
207
|
+
- !ruby/object:Gem::Dependency
|
208
|
+
name: rubocop-rspec
|
209
|
+
requirement: !ruby/object:Gem::Requirement
|
210
|
+
requirements:
|
211
|
+
- - "~>"
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '2.10'
|
214
|
+
type: :development
|
215
|
+
prerelease: false
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - "~>"
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '2.10'
|
221
|
+
- !ruby/object:Gem::Dependency
|
222
|
+
name: standard
|
223
|
+
requirement: !ruby/object:Gem::Requirement
|
224
|
+
requirements:
|
225
|
+
- - ">="
|
226
|
+
- !ruby/object:Gem::Version
|
227
|
+
version: 1.35.1
|
228
|
+
type: :development
|
229
|
+
prerelease: false
|
230
|
+
version_requirements: !ruby/object:Gem::Requirement
|
231
|
+
requirements:
|
232
|
+
- - ">="
|
233
|
+
- !ruby/object:Gem::Version
|
234
|
+
version: 1.35.1
|
235
|
+
- !ruby/object:Gem::Dependency
|
236
|
+
name: yard
|
237
|
+
requirement: !ruby/object:Gem::Requirement
|
238
|
+
requirements:
|
239
|
+
- - "~>"
|
240
|
+
- !ruby/object:Gem::Version
|
241
|
+
version: '0.9'
|
242
|
+
- - ">="
|
243
|
+
- !ruby/object:Gem::Version
|
244
|
+
version: 0.9.34
|
245
|
+
type: :development
|
246
|
+
prerelease: false
|
247
|
+
version_requirements: !ruby/object:Gem::Requirement
|
248
|
+
requirements:
|
249
|
+
- - "~>"
|
250
|
+
- !ruby/object:Gem::Version
|
251
|
+
version: '0.9'
|
252
|
+
- - ">="
|
253
|
+
- !ruby/object:Gem::Version
|
254
|
+
version: 0.9.34
|
255
|
+
- !ruby/object:Gem::Dependency
|
256
|
+
name: yard-junk
|
257
|
+
requirement: !ruby/object:Gem::Requirement
|
258
|
+
requirements:
|
259
|
+
- - "~>"
|
260
|
+
- !ruby/object:Gem::Version
|
261
|
+
version: 0.0.10
|
262
|
+
type: :development
|
263
|
+
prerelease: false
|
264
|
+
version_requirements: !ruby/object:Gem::Requirement
|
265
|
+
requirements:
|
266
|
+
- - "~>"
|
267
|
+
- !ruby/object:Gem::Version
|
268
|
+
version: 0.0.10
|
269
|
+
description:
|
270
|
+
email: peter.boling@gmail.com
|
30
271
|
executables: []
|
31
272
|
extensions: []
|
32
273
|
extra_rdoc_files: []
|
33
274
|
files:
|
275
|
+
- CHANGELOG.md
|
276
|
+
- CODE_OF_CONDUCT.md
|
277
|
+
- CONTRIBUTING.md
|
278
|
+
- LICENSE.txt
|
34
279
|
- README.md
|
280
|
+
- SECURITY.md
|
35
281
|
- lib/open_id_authentication.rb
|
36
282
|
- lib/open_id_authentication/controller_methods.rb
|
37
283
|
- lib/open_id_authentication/middleware.rb
|
38
284
|
- lib/open_id_authentication/railtie.rb
|
39
285
|
- lib/open_id_authentication/result.rb
|
40
286
|
- lib/open_id_authentication/version.rb
|
41
|
-
homepage: https://github.com/
|
287
|
+
homepage: https://github.com/oauth-xx/open_id_authentication
|
42
288
|
licenses:
|
43
289
|
- MIT
|
44
|
-
metadata:
|
45
|
-
|
290
|
+
metadata:
|
291
|
+
homepage_uri: https://github.com/oauth-xx/open_id_authentication
|
292
|
+
source_code_uri: https://github.com/oauth-xx/open_id_authentication/tree/v2.0.1
|
293
|
+
changelog_uri: https://github.com/oauth-xx/open_id_authentication/blob/v2.0.1/CHANGELOG.md
|
294
|
+
bug_tracker_uri: https://github.com/oauth-xx/open_id_authentication/issues
|
295
|
+
documentation_uri: https://www.rubydoc.info/gems/open_id_authentication/2.0.1
|
296
|
+
wiki_uri: https://github.com/oauth-xx/open_id_authentication/wiki
|
297
|
+
funding_uri: https://liberapay.com/pboling
|
298
|
+
rubygems_mfa_required: 'true'
|
299
|
+
post_install_message:
|
46
300
|
rdoc_options: []
|
47
301
|
require_paths:
|
48
302
|
- lib
|
@@ -50,17 +304,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
50
304
|
requirements:
|
51
305
|
- - ">="
|
52
306
|
- !ruby/object:Gem::Version
|
53
|
-
version: 2.
|
307
|
+
version: 2.7.0
|
54
308
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
309
|
requirements:
|
56
310
|
- - ">="
|
57
311
|
- !ruby/object:Gem::Version
|
58
312
|
version: '0'
|
59
313
|
requirements: []
|
60
|
-
|
61
|
-
|
62
|
-
signing_key:
|
314
|
+
rubygems_version: 3.4.22
|
315
|
+
signing_key:
|
63
316
|
specification_version: 4
|
64
|
-
summary:
|
65
|
-
gem.
|
317
|
+
summary: Provides a thin wrapper around the excellent rack-openid2 gem.
|
66
318
|
test_files: []
|
metadata.gz.sig
ADDED
Binary file
|