module Rack::OAuth2::Server::Authorize::RequestWithConnectParams

def self.prepended(klass)

def self.prepended(klass)
  klass.send :attr_optional, *CONNECT_EXT_PARAMS
end

def initialize(env)

def initialize(env)
  super
  CONNECT_EXT_PARAMS.each do |attribute|
    self.send :"#{attribute}=", params[attribute.to_s]
  end
  self.prompt = Array(prompt.to_s.split(' '))
  self.max_age = max_age.try(:to_i)
end

def oidc_request?

def oidc_request?
  scope.include?('openid')
end