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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbc6aebdf72129720e402e9e90f168b311fa9718c704c86f67d68d9a560cf706
4
- data.tar.gz: 10c488b6ac7dbe7c2e2951300f2a4f1b21ccfe3ea0f9517ec2537aee6e6fb0a1
3
+ metadata.gz: 75fddd8cb0c98ca7067f4836b681fb4bca836050189bc049d186384e99821624
4
+ data.tar.gz: cdc2a8f6430d0823bcaee022e0cae5a03841798271d93591b514181f2e9a0ed8
5
5
  SHA512:
6
- metadata.gz: 50bf90d8935e1a402c71075f015f3fc113894171129ba510ef91164614cb636b99474ddb3ab7c18300d1c59d32f44de1d58e8fe8b2c3dc084419e65170094c09
7
- data.tar.gz: 2e2510548db798e6295a4d36b0f655c4c802908a1842e82bb4680a814d5847de1c4eab60f20cb3d7219e24023c48b64a7ff745f3901de913fb4a7f4ac5808073
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.8] - 2025-01-03
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
@@ -21,7 +21,7 @@ Provide drop-in, token-based authentication for Rails APIs via Verikloak (OIDC d
21
21
  ## Compatibility
22
22
  - Ruby: >= 3.1
23
23
  - Rails: 6.1 – 8.x
24
- - verikloak: >= 0.2.0, < 1.0.0
24
+ - verikloak: >= 0.3.0, < 1.0.0
25
25
 
26
26
  ## Quick Start
27
27
  ```bash
@@ -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.2.0', '< 1.0.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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Verikloak
4
4
  module Rails
5
- VERSION = '0.2.8'
5
+ VERSION = '0.2.9'
6
6
  end
7
7
  end
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.8
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.2.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.2.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.8
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: