Module: Rack::OAuth2::Server::Extension::PKCE::AuthorizationRequest

Included in:
Authorize::Code::Request, Authorize::Extension::CodeAndToken::Request
Defined in:
lib/rack/oauth2/server/extension/pkce.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



7
8
9
# File 'lib/rack/oauth2/server/extension/pkce.rb', line 7

def self.included(klass)
  klass.send :attr_optional, :code_challenge, :code_challenge_method
end

Instance Method Details

#initialize(env) ⇒ Object



11
12
13
14
15
# File 'lib/rack/oauth2/server/extension/pkce.rb', line 11

def initialize(env)
  super
  @code_challenge = params['code_challenge']
  @code_challenge_method = params['code_challenge_method']
end