Module: ONCCertificationG10TestKit::BulkDataJWKSHelper
- Defined in:
- lib/onc_certification_g10_test_kit/bulk_data_jwks_helper.rb
Class Method Summary collapse
Class Method Details
.jwks_json ⇒ Object
5 6 7 |
# File 'lib/onc_certification_g10_test_kit/bulk_data_jwks_helper.rb', line 5 def self.jwks_json @jwks_json ||= File.read(ENV.fetch('G10_BULK_DATA_JWKS', File.join(__dir__, 'bulk_data_jwks.json'))) end |
.public_jwks_json ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/onc_certification_g10_test_kit/bulk_data_jwks_helper.rb', line 9 def self.public_jwks_json @public_jwks_json ||= begin jwks = JSON.parse(jwks_json) JSON.pretty_generate( { keys: jwks['keys'].select { |key| key['key_ops']&.include?('verify') } } ) end end |