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

Constants

CONNECT_EXT_PARAMS

Public Class Methods

new(env) click to toggle source
Calls superclass method
# File lib/rack/oauth2/server/authorize/request_with_connect_params.rb, line 12
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
prepended(klass) click to toggle source
# File lib/rack/oauth2/server/authorize/request_with_connect_params.rb, line 8
def self.prepended(klass)
  klass.send :attr_optional, *CONNECT_EXT_PARAMS
end

Public Instance Methods

openid_connect_request?() click to toggle source
# File lib/rack/oauth2/server/authorize/request_with_connect_params.rb, line 21
def openid_connect_request?
  scope.include?('openid')
end