diff options
Diffstat (limited to 'config/initializers/doorkeeper_openid_connect_patch.rb')
-rw-r--r-- | config/initializers/doorkeeper_openid_connect_patch.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/config/initializers/doorkeeper_openid_connect_patch.rb b/config/initializers/doorkeeper_openid_connect_patch.rb deleted file mode 100644 index d61b70eaa31..00000000000 --- a/config/initializers/doorkeeper_openid_connect_patch.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true - -# This pulls in -# https://github.com/doorkeeper-gem/doorkeeper-openid_connect/pull/194 -# to ensure generated `kid` values are RFC 7638-compliant. -require 'doorkeeper/openid_connect' - -raise 'This patch is only needed for doorkeeper_openid_connect v1.8.5' if Doorkeeper::OpenidConnect::VERSION != '1.8.5' - -module Doorkeeper - module OpenidConnect - def self.signing_key - key = - if %i[HS256 HS384 HS512].include?(signing_algorithm) - configuration.signing_key - else - OpenSSL::PKey.read(configuration.signing_key) - end - - ::JWT::JWK.new(key, { kid_generator: JWT::JWK::Thumbprint }) - end - end -end |