verikloak-audience 0.2.1 → 0.2.2
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 +5 -0
- data/lib/verikloak/audience/middleware.rb +13 -1
- data/lib/verikloak/audience/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 1b51d9c244185b84fce77ec939a727cbdd9ac2a93541444c42e0b823ca86f4a3
         | 
| 4 | 
            +
              data.tar.gz: 5c9c5257ab6da299c39ba3d6e0f58f62c6e70ec2e140519abdc2f583e75b0ba3
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 9b18e302be97ac271c2ebf7cb9891cce250ce01cc2cf91be963e7cf3ef19b3f05a97424073ea3f78db8a7581027ddac322e3004e224c356a27697224cfc866aa
         | 
| 7 | 
            +
              data.tar.gz: 128053a70894be6a243b286aa16299d89c5a05ebc41e6ec13399925732e5cf3b624c06691b9433052c4bb7c12b2da033c3e9f6de5c99815cb74ebff986952adf
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |
| 7 7 |  | 
| 8 8 | 
             
            ---
         | 
| 9 9 |  | 
| 10 | 
            +
            ## [0.2.2] - 2025-09-22
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            ### Fixed
         | 
| 13 | 
            +
            - Skip middleware configuration validation when Rails generator commands execute so `rails g verikloak:install` can boot without preconfigured audiences.
         | 
| 14 | 
            +
             | 
| 10 15 | 
             
            ## [0.2.1] - 2025-09-22
         | 
| 11 16 |  | 
| 12 17 | 
             
            ### Fixed
         | 
| @@ -24,7 +24,7 @@ module Verikloak | |
| 24 24 | 
             
                    @app = app
         | 
| 25 25 | 
             
                    @config = Verikloak::Audience.config.dup
         | 
| 26 26 | 
             
                    apply_overrides!(opts)
         | 
| 27 | 
            -
                    @config.validate!
         | 
| 27 | 
            +
                    @config.validate! unless skip_validation?
         | 
| 28 28 | 
             
                  end
         | 
| 29 29 |  | 
| 30 30 | 
             
                  # Evaluate the request against the audience profile.
         | 
| @@ -70,6 +70,18 @@ module Verikloak | |
| 70 70 | 
             
                    end
         | 
| 71 71 | 
             
                  end
         | 
| 72 72 |  | 
| 73 | 
            +
                  # Determine whether configuration validation should run. This allows
         | 
| 74 | 
            +
                  # Rails generators to boot without a fully-populated configuration since
         | 
| 75 | 
            +
                  # the install task is responsible for creating it.
         | 
| 76 | 
            +
                  #
         | 
| 77 | 
            +
                  # @return [Boolean]
         | 
| 78 | 
            +
                  def skip_validation?
         | 
| 79 | 
            +
                    return false unless defined?(::Verikloak::Audience::Railtie)
         | 
| 80 | 
            +
                    return false unless ::Verikloak::Audience::Railtie.respond_to?(:skip_configuration_validation?)
         | 
| 81 | 
            +
             | 
| 82 | 
            +
                    ::Verikloak::Audience::Railtie.skip_configuration_validation?
         | 
| 83 | 
            +
                  end
         | 
| 84 | 
            +
             | 
| 73 85 | 
             
                  # Emit a warning for failed audience checks using request-scoped loggers
         | 
| 74 86 | 
             
                  # when available.
         | 
| 75 87 | 
             
                  #
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: verikloak-audience
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.2. | 
| 4 | 
            +
              version: 0.2.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - taiyaky
         | 
| @@ -74,7 +74,7 @@ metadata: | |
| 74 74 | 
             
              source_code_uri: https://github.com/taiyaky/verikloak-audience
         | 
| 75 75 | 
             
              changelog_uri: https://github.com/taiyaky/verikloak-audience/blob/main/CHANGELOG.md
         | 
| 76 76 | 
             
              bug_tracker_uri: https://github.com/taiyaky/verikloak-audience/issues
         | 
| 77 | 
            -
              documentation_uri: https://rubydoc.info/gems/verikloak-audience/0.2. | 
| 77 | 
            +
              documentation_uri: https://rubydoc.info/gems/verikloak-audience/0.2.2
         | 
| 78 78 | 
             
              rubygems_mfa_required: 'true'
         | 
| 79 79 | 
             
            rdoc_options: []
         | 
| 80 80 | 
             
            require_paths:
         |