verikloak-rails 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +29 -1
- data/README.md +1 -1
- data/lib/generators/verikloak/install/install_generator.rb +1 -1
- data/lib/verikloak/rails/railtie.rb +2 -1
- data/lib/verikloak/rails/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75fddd8cb0c98ca7067f4836b681fb4bca836050189bc049d186384e99821624
|
|
4
|
+
data.tar.gz: cdc2a8f6430d0823bcaee022e0cae5a03841798271d93591b514181f2e9a0ed8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d550052547a8193ecc265787e04351c570b5ebb2037b7624db560fabf667d4b3b891369ae9f89fa9837084580a682bd4e5f3800dc9af9c7f3af1f3401087e71
|
|
7
|
+
data.tar.gz: 575b7d59740c00606022c3ae8b7aad59534597d9564f05a1c59f0f0c2d2a74e54155f158954bbbba1d86670ee0609bd1b072c65217837d9d6bd04734f9a9adf6
|
data/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
## [0.2.
|
|
10
|
+
## [0.2.9] - 2025-12-31
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **BREAKING FIX**: Railtie initializer now runs `after: :load_config_initializers` to ensure
|
|
14
|
+
`config/initializers/verikloak.rb` settings are applied before middleware insertion
|
|
15
|
+
- Previously, the initializer ran before `load_config_initializers`, causing settings in
|
|
16
|
+
`config/initializers/*.rb` to be ignored
|
|
17
|
+
- This was particularly problematic in Rails 8.x where initialization order is stricter
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
- **Dependency**: Now requires `verikloak >= 0.3.0` (was `>= 0.2.0`)
|
|
21
|
+
- This is necessary because the `issuer` parameter in `middleware_options` is now supported
|
|
22
|
+
by verikloak 0.3.0+
|
|
23
|
+
|
|
24
|
+
### Migration Guide
|
|
25
|
+
|
|
26
|
+
If you were using the workaround of placing Verikloak configuration in `config/application.rb`,
|
|
27
|
+
you can now move it back to `config/initializers/verikloak.rb`:
|
|
28
|
+
|
|
29
|
+
```ruby
|
|
30
|
+
# config/initializers/verikloak.rb (now works correctly)
|
|
31
|
+
Rails.application.configure do
|
|
32
|
+
config.verikloak.discovery_url = ENV['KEYCLOAK_DISCOVERY_URL']
|
|
33
|
+
config.verikloak.audience = ENV['KEYCLOAK_AUDIENCE']
|
|
34
|
+
config.verikloak.issuer = ENV['KEYCLOAK_ISSUER']
|
|
35
|
+
end
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## [0.2.8] - 2025-10-03
|
|
11
39
|
|
|
12
40
|
### Changed
|
|
13
41
|
- Refactor controller helpers to use shared `_verikloak_fetch_request_context` method for consistent RequestStore fallback handling
|
data/README.md
CHANGED
|
@@ -26,7 +26,7 @@ module Verikloak
|
|
|
26
26
|
✅ verikloak: initializer created.
|
|
27
27
|
|
|
28
28
|
Next steps:
|
|
29
|
-
1) Ensure the base gem is installed: gem 'verikloak', '>= 0.
|
|
29
|
+
1) Ensure the base gem is installed: gem 'verikloak', '>= 0.3.0', '< 1.0.0'
|
|
30
30
|
2) Set discovery_url / audience in config/initializers/verikloak.rb
|
|
31
31
|
3) (Optional) If you disable auto-include, add this line to ApplicationController:
|
|
32
32
|
include Verikloak::Rails::Controller
|
|
@@ -24,8 +24,9 @@ module Verikloak
|
|
|
24
24
|
config.verikloak = ActiveSupport::OrderedOptions.new
|
|
25
25
|
|
|
26
26
|
# Apply configuration and insert middleware.
|
|
27
|
+
# Runs after config/initializers/*.rb so user settings take effect.
|
|
27
28
|
# @return [void]
|
|
28
|
-
initializer 'verikloak.configure' do |app|
|
|
29
|
+
initializer 'verikloak.configure', after: :load_config_initializers do |app|
|
|
29
30
|
::Verikloak::Rails::Railtie.send(:configure_middleware, app)
|
|
30
31
|
end
|
|
31
32
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: verikloak-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- taiyaky
|
|
@@ -55,7 +55,7 @@ dependencies:
|
|
|
55
55
|
requirements:
|
|
56
56
|
- - ">="
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
|
-
version: 0.
|
|
58
|
+
version: 0.3.0
|
|
59
59
|
- - "<"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: 1.0.0
|
|
@@ -65,7 +65,7 @@ dependencies:
|
|
|
65
65
|
requirements:
|
|
66
66
|
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 0.
|
|
68
|
+
version: 0.3.0
|
|
69
69
|
- - "<"
|
|
70
70
|
- !ruby/object:Gem::Version
|
|
71
71
|
version: 1.0.0
|
|
@@ -94,7 +94,7 @@ metadata:
|
|
|
94
94
|
source_code_uri: https://github.com/taiyaky/verikloak-rails
|
|
95
95
|
changelog_uri: https://github.com/taiyaky/verikloak-rails/blob/main/CHANGELOG.md
|
|
96
96
|
bug_tracker_uri: https://github.com/taiyaky/verikloak-rails/issues
|
|
97
|
-
documentation_uri: https://rubydoc.info/gems/verikloak-rails/0.2.
|
|
97
|
+
documentation_uri: https://rubydoc.info/gems/verikloak-rails/0.2.9
|
|
98
98
|
rubygems_mfa_required: 'true'
|
|
99
99
|
rdoc_options: []
|
|
100
100
|
require_paths:
|