Sha256: 6b7e57b4ac154a0c6a9a94c42a102e4f5e0248133f3ff8a39e55283387f48183
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true module Grape module Jwt module Authentication # Specifies which configuration keys are shared between keyless # and grape-jwt-authentication, so that we can easily pass through # our configuration to keyless. KEYLESS_CONFIGURATION = %i[ authenticator rsa_public_key_url rsa_public_key_caching rsa_public_key_expiration jwt_issuer jwt_beholder jwt_options jwt_verification_key ] # (Re)configure our gem dependencies. We take care of setting up # +Keyless+, which has been extracted from this gem. def self.configure_dependencies configure_keyless end # Configure the +Keyless+ gem with our configuration. def self.configure_keyless configuration = Grape::Jwt::Authentication.configuration Keyless.configure do |keyless| KEYLESS_CONFIGURATION.each do |option| keyless.send("#{option}=", configuration.send(option)) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems