Sha256: 7bf86b7ee223f45b275dae1f6bd2c8ec75d941b4d5fdbc6dd3b60f0e9f78c528

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module OpenidConnect
    module ResponseTypeConfig
      private def calculate_authorization_response_types
        types = super
        if grant_flows.include? 'implicit_oidc'
          types << 'token'
          types << 'id_token'
          types << 'id_token token'
        end
        types
      end
    end
  end

  Config.prepend OpenidConnect::ResponseTypeConfig
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
doorkeeper-openid_connect-1.7.2 lib/doorkeeper/openid_connect/response_types_config.rb