omniauth-ldap 2.3.4 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cfb42b529db19042a0140d9bdb39698b177710df48bc80eb9c1470bfebda0ae2
4
- data.tar.gz: 411ba1e8817fc5814c248cbf096471ebe2f4a013a69dff3b6771143526a73f8b
3
+ metadata.gz: 1d35c59d3cac9dfc1276e32d05fca52c05aa3d4d2be2f89d4520f2ec980114f5
4
+ data.tar.gz: e7fb5be1483678069eca5c5be9d7f62c75fa3fe85dd0dd10f22c56e3e67818d3
5
5
  SHA512:
6
- metadata.gz: e5cd173bb9dd917627ba9d96d3fe3a5e713bb74e3623d8ab1247fe71da0243e0e66658f64dd356247e060fbddda4a9031e76242dd8b0ea0575d9233bfcee1b0d
7
- data.tar.gz: 70d8dd160e9793037bb4564cde716dfc8cd98c3805b73c65f49c5ecd2383b13c920828affab59e458b224b8f1eebfd4a127d9bd06a55d967e1d397f21f01a1da
6
+ metadata.gz: 87d6203baa343ba839702afb07c78f4ec538e0d0fad85dd13715392648de07a796d917792d4b24792585ad28bdbab75a166e0aaacec01c99b513ffdc22666db6
7
+ data.tar.gz: 3e36b569abad7ee13cde1a4e0fa8437e700a1f30a826eb455ff3c4cf024b620db72c79896ae80ab8351afa5756c59777012658777f41f4e535d4e12c9704617a
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -2,9 +2,7 @@
2
2
 
3
3
  [![SemVer 2.0.0][📌semver-img]][📌semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog]
4
4
 
5
- Since version v2.3.1, all notable changes to this project will be documented in this file.
6
-
7
- This changelog lists the releases of the original omniauth-ldap, and the GitLab forked versions, up until v2.3.0.
5
+ All notable changes to this project will be documented in this file.
8
6
 
9
7
  The format is based on [Keep a Changelog][📗keep-changelog],
10
8
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
@@ -32,6 +30,56 @@ Please file a bug if you notice a violation of semantic versioning.
32
30
 
33
31
  ### Security
34
32
 
33
+ ## [3.0.1] - 2026-06-16
34
+
35
+ - TAG: [v3.0.1][3.0.1t]
36
+ - COVERAGE: 97.53% -- 316/324 lines in 6 files
37
+ - BRANCH COVERAGE: 79.41% -- 108/136 branches in 6 files
38
+ - 89.19% documented
39
+
40
+ ### Changed
41
+
42
+ - Retemplated generated project metadata, support documentation, CI workflows,
43
+ binstubs, and development dependency floors with the current `kettle-jem`
44
+ template.
45
+ - Raised the `auth-sanitizer` runtime dependency floor to `>= 0.2.1`, so
46
+ OmniAuth LDAP consumers get hash and nested-attribute inspect redaction fixes
47
+ plus downstream RBS duplicate-declaration fixes.
48
+
49
+ ### Fixed
50
+
51
+ - Restored `docs/CNAME` so the generated documentation site keeps its custom domain.
52
+
53
+ - Route unsafe trusted-header authentication configuration errors through
54
+ OmniAuth's failure flow consistently across supported OmniAuth versions.
55
+
56
+ ### Security
57
+
58
+ - Hardened `OmniAuth::LDAP::Adaptor#inspect` redaction so LDAP bind passwords
59
+ and TLS private key values are filtered anywhere they appear in nested
60
+ connection/configuration output.
61
+
62
+ ## [3.0.0] - 2026-05-21
63
+
64
+ - TAG: [v3.0.0][3.0.0t]
65
+ - COVERAGE: 97.52% -- 315/323 lines in 6 files
66
+ - BRANCH COVERAGE: 79.41% -- 108/136 branches in 6 files
67
+ - 94.59% documented
68
+
69
+ ### Added
70
+
71
+ - Add `auth-sanitizer` runtime dependency to redact sensitive LDAP adaptor inspection output without defining top-level `Auth` or `AuthSanitizer`
72
+
73
+ ### Changed
74
+
75
+ - Minimum supported Ruby version is now 2.2.0
76
+
77
+ ### Removed
78
+
79
+ - Remove deprecated (since `v2.1.0-gl` in 2018) top-level `:ca_file` and `:ssl_version` LDAP configuration options; use `:tls_options` instead
80
+ - Remove adaptor backward-compatibility that translated top-level `:ca_file` and `:ssl_version` into TLS options
81
+ - Remove deprecated direct-option specs for top-level `:ca_file` and `:ssl_version`
82
+
35
83
  ## [2.3.4] - 2026-05-18
36
84
 
37
85
  - TAG: [v2.3.4][2.3.4t]
@@ -265,7 +313,11 @@ Please file a bug if you notice a violation of semantic versioning.
265
313
  [1.0.0]: https://github.com/omniauth/omniauth-ldap/compare/5656da80d4193e0d0584f44bac493a87695e580f...v1.0.0
266
314
  [1.0.0t]: https://github.com/omniauth/omniauth-ldap/releases/tag/v1.0.0
267
315
 
268
- [Unreleased]: https://github.com/omniauth/omniauth-ldap/compare/v2.3.4...HEAD
316
+ [Unreleased]: https://github.com/omniauth/omniauth-ldap/compare/v3.0.1...HEAD
317
+ [3.0.1]: https://github.com/omniauth/omniauth-ldap/compare/v3.0.0...v3.0.1
318
+ [3.0.1t]: https://github.com/omniauth/omniauth-ldap/releases/tag/v3.0.1
319
+ [3.0.0]: https://github.com/omniauth/omniauth-ldap/compare/v2.3.4...v3.0.0
320
+ [3.0.0t]: https://github.com/omniauth/omniauth-ldap/releases/tag/v3.0.0
269
321
  [2.3.4]: https://github.com/omniauth/omniauth-ldap/compare/v2.3.3...v2.3.4
270
322
  [2.3.4t]: https://github.com/omniauth/omniauth-ldap/releases/tag/v2.3.4
271
323
  [2.3.3]: https://github.com/omniauth/omniauth-ldap/compare/v2.3.2...v2.3.3
data/CITATION.cff CHANGED
@@ -1,19 +1,19 @@
1
1
  cff-version: 1.2.0
2
- title: omniauth-ldap
2
+ title: "omniauth-ldap"
3
3
  message: >-
4
4
  If you use this work and you want to cite it,
5
5
  then you can use the metadata from this file.
6
6
  type: software
7
7
  authors:
8
- - given-names: Peter Hurn
9
- family-names: Boling
10
- email: peter@railsbling.com
11
- affiliation: railsbling.com
8
+ - given-names: "Peter H."
9
+ family-names: "Boling"
10
+ email: "floss@galtzo.com"
11
+ affiliation: "galtzo.com"
12
12
  orcid: 'https://orcid.org/0009-0008-8519-441X'
13
13
  identifiers:
14
14
  - type: url
15
15
  value: 'https://github.com/omniauth/omniauth-ldap'
16
- description: omniauth-ldap
16
+ description: "omniauth-ldap"
17
17
  repository-code: 'https://github.com/omniauth/omniauth-ldap'
18
18
  abstract: >-
19
19
  omniauth-ldap
data/CODE_OF_CONDUCT.md CHANGED
File without changes
data/CONTRIBUTING.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Contributing
2
2
 
3
- Bug reports and pull requests are welcome on [GitHub][📜src-gh].
3
+ Bug reports and pull requests are welcome on [CodeBerg][📜src-cb], [GitLab][📜src-gl], or [GitHub][📜src-gh].
4
4
  This project should be a safe, welcoming space for collaboration, so contributors agree to adhere to
5
5
  the [code of conduct][🤝conduct].
6
6
 
@@ -8,19 +8,27 @@ To submit a patch, please fork the project, create a patch with tests, and send
8
8
 
9
9
  Remember to [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] if you make changes.
10
10
 
11
+ ## Developer Certificate of Origin
12
+
13
+ In order to protect users of this project, we require all contributors to comply with the
14
+ [Developer Certificate of Origin](https://developercertificate.org/).
15
+ This ensures that all contributions are properly licensed and attributed.
16
+
11
17
  ## Help out!
12
18
 
13
- Take a look at the `reek` list which is the file called `REEK` and find something to improve.
19
+ Take a look at the open issues and pull requests, or use the gem and find something to improve.
14
20
 
15
21
  Follow these instructions:
16
22
 
17
- 1. Fork the repository
18
- 2. Create a feature branch (`git checkout -b my-new-feature`)
19
- 3. Make some fixes.
20
- 4. Commit changes (`git commit -am 'Added some feature'`)
21
- 5. Push to the branch (`git push origin my-new-feature`)
22
- 6. Make sure to add tests for it. This is important, so it doesn't break in a future release.
23
- 7. Create new Pull Request.
23
+ 1. Join the Discord: [![Live Chat on Discord][✉️discord-invite-img]][✉️discord-invite]
24
+ 2. Fork the repository
25
+ 3. Create your feature branch (`git checkout -b my-new-feature`)
26
+ 4. Make some fixes.
27
+ 5. Commit your changes (`git commit -am 'Added some feature'`)
28
+ 6. Push to the branch (`git push origin my-new-feature`)
29
+ 7. Make sure to add tests for it. This is important, so it doesn't break in a future release.
30
+ 8. Create new Pull Request.
31
+ 9. Announce it in the channel for this org in the [Discord][✉️discord-invite]!
24
32
 
25
33
  ## Executables vs Rake tasks
26
34
 
@@ -42,6 +50,22 @@ There are many Rake tasks available as well. You can see them by running:
42
50
  bin/rake -T
43
51
  ```
44
52
 
53
+ ## Code quality checks
54
+
55
+ Run the Reek task when you want a smell check that fails on current findings:
56
+
57
+ ```shell
58
+ bin/rake reek
59
+ ```
60
+
61
+ Refresh the checked-in `REEK` backlog through the rake task, not by redirecting
62
+ the raw `reek` executable output. The rake task uses the project bundle and
63
+ avoids stale generated binstubs shadowing the Reek gem executable:
64
+
65
+ ```shell
66
+ bin/rake reek:update
67
+ ```
68
+
45
69
  ## Environment Variables for Local Development
46
70
 
47
71
  Below are the primary environment variables recognized by stone_checksums (and its integrated tools). Unless otherwise noted, set boolean values to the string "true" to enable.
@@ -52,7 +76,7 @@ General/runtime
52
76
  - CI: When set to true, adjusts default rake tasks toward CI behavior
53
77
 
54
78
  Coverage (kettle-soup-cover / SimpleCov)
55
- - K_SOUP_COV_DO: Enable coverage collection (default: true in .envrc)
79
+ - K_SOUP_COV_DO: Enable coverage collection (default: true in `mise.toml`)
56
80
  - K_SOUP_COV_FORMATTERS: Comma-separated list of formatters (html, xml, rcov, lcov, json, tty)
57
81
  - K_SOUP_COV_MIN_LINE: Minimum line coverage threshold (integer, e.g., 100)
58
82
  - K_SOUP_COV_MIN_BRANCH: Minimum branch coverage threshold (integer, e.g., 100)
@@ -78,35 +102,60 @@ Git hooks and commit message helpers (exe/kettle-commit-msg)
78
102
  - GIT_HOOK_FOOTER_SENTINEL: Required when footer append is enabled — a unique first-line sentinel to prevent duplicates
79
103
  - GIT_HOOK_FOOTER_APPEND_DEBUG: Extra debug output in the footer template (true/false)
80
104
 
81
- For a quick starting point, this repository’s `.envrc` shows sane defaults, and `.env.local` can override them locally.
105
+ Git diff driver setup
106
+ - Local setup writes repository `.gitattributes` entries and local Git `diff.smorg-*` command config so this checkout uses StructuredMerge semantic diffs.
107
+ - Global setup registers `diff.smorg-*` commands once in the user Git config; use it when you work across several StructuredMerge-enabled repositories.
108
+ - Include-file setup writes `.git/smorg/config` and includes it from local Git config, keeping command registrations out of the repository files.
109
+ - Git hosting forges generally ignore external diff drivers, so pull request views may still show raw textual diffs even when local `git diff` uses semantic drivers.
110
+
111
+ ```console
112
+ K_JEM_TEMPLATING=true kettle-jem install
113
+ ```
114
+
115
+ Troubleshooting Git diffs
116
+ - Use `git diff --no-ext-diff` to compare against Git's built-in diff output.
117
+ - Use `git diff --no-textconv` when a textconv projection obscures the raw file bytes you need to inspect.
118
+ - If Git reports a missing `smorg-*` executable, rerun `bundle install` and the setup command above, then check `git config --local --get-regexp '^diff\.smorg-'`.
119
+ - To remove managed local entries, run `K_JEM_TEMPLATING=true kettle-jem install --undo`; remove global command registrations with `git config --global --unset-all diff.smorg-ruby.command`.
120
+
121
+ For a quick starting point, this repository’s `mise.toml` defines the shared defaults, and `.env.local` can override them locally. Copy `.env.local.example` to `.env.local`, use `KEY=value` lines, and either activate `mise` in your shell or run commands through `mise exec -C /path/to/project -- ...`.
82
122
 
83
123
  ## Appraisals
84
124
 
85
125
  From time to time the [appraisal2][🚎appraisal2] gemfiles in `gemfiles/` will need to be updated.
126
+ Generated appraisal and CI workflow floors are controlled by `ruby.test_minimum`
127
+ in `.structuredmerge/kettle-jem.yml`; this project was templated with `ruby.test_minimum: 2.4`.
128
+ That value describes the lowest Ruby version expected to run the test/development
129
+ toolchain, and it may be higher than the gemspec runtime floor.
130
+
86
131
  They are created and updated with the commands:
87
132
 
88
133
  ```console
89
134
  bin/rake appraisal:update
90
135
  ```
91
136
 
92
- When adding an appraisal to CI, check the [runner tool cache][🏃‍♂️runner-tool-cache] to see which runner to use.
137
+ If you need to reset all gemfiles/*.gemfile.lock files:
93
138
 
94
- ## The Reek List
139
+ ```console
140
+ bin/rake appraisal:reset
141
+ ```
95
142
 
96
- Take a look at the `reek` list which is the file called `REEK` and find something to improve.
143
+ When adding an appraisal to CI, check the [runner tool cache][🏃‍♂️runner-tool-cache] to see which runner to use.
144
+
145
+ ## Run Tests
97
146
 
98
- To refresh the `reek` list:
147
+ Run tests via `kettle-test` (provided by `kettle-test`). It runs RSpec, writes the full log to
148
+ `tmp/kettle-test/rspec-TIMESTAMP.log`, and prints a compact highlight block with timing, seed,
149
+ pass/fail count, failing example list, and SimpleCov coverage percentages.
99
150
 
100
151
  ```console
101
- bundle exec reek > REEK
152
+ bundle exec kettle-test
102
153
  ```
103
154
 
104
- ## Run Tests
105
-
106
- To run all tests
155
+ For targeted runs, disable the hard coverage threshold to avoid false failures:
107
156
 
108
157
  ```console
109
- bundle exec rake test
158
+ K_SOUP_COV_MIN_HARD=false bundle exec kettle-test spec/path/to/spec.rb
110
159
  ```
111
160
 
112
161
  ### Spec organization (required)
@@ -149,6 +198,8 @@ Your picture could be here!
149
198
 
150
199
  Made with [contributors-img][🖐contrib-rocks].
151
200
 
201
+ Also see GitLab Contributors: [https://gitlab.com/omniauth/omniauth-ldap/-/graphs/main][🚎contributors-gl]
202
+
152
203
  ## For Maintainers
153
204
 
154
205
  ### One-time, Per-maintainer, Setup
@@ -175,33 +226,37 @@ NOTE: To build without signing the gem set `SKIP_GEM_SIGNING` to any value in th
175
226
  1. Run `bin/setup && bin/rake` as a "test, coverage, & linting" sanity check
176
227
  2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
177
228
  3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
178
- 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
179
- 5. Run `git push` to trigger the final CI pipeline before release, and merge PRs
229
+ 4. Run `bin/rake yard` to regenerate the docs site using the canonical docs task
230
+ 5. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
231
+ 6. Run `git push` to trigger the final CI pipeline before release, and merge PRs
180
232
  - NOTE: Remember to [check the build][🧪build].
181
- 6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
182
- 7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
183
- 8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure latest trunk code
184
- 9. Optional for older Bundler (< 2.7.0): Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use the same timestamp and generate the same checksums
233
+ 7. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
234
+ 8. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
235
+ 9. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure latest trunk code
236
+ 10. Optional for older Bundler (< 2.7.0): Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use the same timestamp and generate the same checksums
185
237
  - If your Bundler is >= 2.7.0, you can skip this; builds are reproducible by default.
186
238
  - Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
187
239
  - If the echo above has no output, then it didn't work.
188
240
  - Note: `zsh/datetime` module is needed, if running `zsh`.
189
241
  - In older versions of `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
190
- 10. Run `bundle exec rake build`
191
- 11. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr], [2][🔒️rubygems-guides-pr])
242
+ 11. Run `bundle exec rake build`
243
+ 12. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr], [2][🔒️rubygems-guides-pr])
192
244
  to create SHA-256 and SHA-512 checksums. This functionality is provided by the `stone_checksums`
193
245
  [gem][💎stone_checksums].
194
246
  - The script automatically commits but does not push the checksums
195
- 12. Sanity check the SHA256, comparing with the output from the `bin/gem_checksums` command:
247
+ 13. Sanity check the SHA256, comparing with the output from the `bin/gem_checksums` command:
196
248
  - `sha256sum pkg/<gem name>-<version>.gem`
197
- 13. Run `bundle exec rake release` which will create a git tag for the version,
249
+ 14. Run `bundle exec rake release` which will create a git tag for the version,
198
250
  push git commits and tags, and push the `.gem` file to the gem host configured in the gemspec.
199
251
 
252
+ [📜src-gl]: https://gitlab.com/omniauth/omniauth-ldap
253
+ [📜src-cb]: https://codeberg.org/omniauth/omniauth-ldap
200
254
  [📜src-gh]: https://github.com/omniauth/omniauth-ldap
201
255
  [🧪build]: https://github.com/omniauth/omniauth-ldap/actions
202
- [🤝conduct]: https://gitlab.com/omniauth/omniauth-ldap/-/blob/main/CODE_OF_CONDUCT.md
256
+ [🤝conduct]: https://github.com/omniauth/omniauth-ldap/blob/main/CODE_OF_CONDUCT.md
203
257
  [🖐contrib-rocks]: https://contrib.rocks
204
258
  [🖐contributors]: https://github.com/omniauth/omniauth-ldap/graphs/contributors
259
+ [🚎contributors-gl]: https://gitlab.com/omniauth/omniauth-ldap/-/graphs/main
205
260
  [🖐contributors-img]: https://contrib.rocks/image?repo=omniauth/omniauth-ldap
206
261
  [💎gem-coop]: https://gem.coop
207
262
  [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
@@ -214,3 +269,4 @@ NOTE: To build without signing the gem set `SKIP_GEM_SIGNING` to any value in th
214
269
  [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
215
270
  [🚎appraisal2]: https://github.com/appraisal-rb/appraisal2
216
271
  [🏃‍♂️runner-tool-cache]: https://github.com/ruby/ruby-builder/releases/tag/toolcache
272
+ [✉️discord-invite]: https://discord.gg/3qme4XHNKN
data/FUNDING.md CHANGED
@@ -15,7 +15,7 @@ Many paths lead to being a sponsor or a backer of this project. Are you on such
15
15
  [🖇polar-img]: https://img.shields.io/badge/polar-donate-a51611.svg?style=flat
16
16
  [🖇polar]: https://polar.sh/pboling
17
17
  [🖇kofi-img]: https://img.shields.io/badge/ko--fi-%E2%9C%93-a51611.svg?style=flat
18
- [🖇kofi]: https://ko-fi.com/O5O86SNP4
18
+ [🖇kofi]: https://ko-fi.com/pboling
19
19
  [🖇patreon-img]: https://img.shields.io/badge/patreon-donate-a51611.svg?style=flat
20
20
  [🖇patreon]: https://patreon.com/galtzo
21
21
  [🖇buyme-small-img]: https://img.shields.io/badge/buy_me_a_coffee-%E2%9C%93-a51611.svg?style=flat
data/LICENSE.md ADDED
@@ -0,0 +1,33 @@
1
+ # License
2
+
3
+ This project is made available under the following license.
4
+ Choose the option that best fits your use case:
5
+
6
+ - [MIT](MIT.md)
7
+
8
+ ## Copyright Notice
9
+
10
+ - Copyright (c) 2011 Hubert
11
+ - Copyright (c) 2011-2013 Ping Yu
12
+ - Copyright (c) 2012 angel brown
13
+ - Copyright (c) 2012 Dmitriy Dzema
14
+ - Copyright (c) 2012 Dmitriy Zaporozhets
15
+ - Copyright (c) 2012 Pat Thoyts
16
+ - Copyright (c) 2012 Rashit Azizbaev
17
+ - Copyright (c) 2012 Samuel de Framond
18
+ - Copyright (c) 2012 Terry Tai
19
+ - Copyright (c) 2014 David Benko
20
+ - Copyright (c) 2014 Jakub Jirutka
21
+ - Copyright (c) 2014 Jason Hollingsworth
22
+ - Copyright (c) 2014 Mack Talcott
23
+ - Copyright (c) 2016-2018 Drew Blessing
24
+ - Copyright (c) 2016 Julian Kniephoff
25
+ - Copyright (c) 2016 Mike Tierney
26
+ - Copyright (c) 2016 Sasha Kotlyar
27
+ - Copyright (c) 2017 Michael Kozono
28
+ - Copyright (c) 2017 Tiago Botelho
29
+ - Copyright (c) 2018 tmilewski
30
+ - Copyright (c) 2019 Drew Blessing
31
+ - Copyright (c) 2022 Finn Bacall
32
+ - Copyright (c) 2022 Stan Hu
33
+ - Copyright (c) 2025-2026 Peter H. Boling