Class: Rack::OAuth2::Server::Authorize::Extension::CodeAndToken

Inherits:
Rack::OAuth2::Server::Abstract::Handler show all
Defined in:
lib/rack/oauth2/server/authorize/extension/code_and_token.rb

Defined Under Namespace

Classes: Request, Response

Instance Attribute Summary

Attributes inherited from Rack::OAuth2::Server::Abstract::Handler

#authenticator, #request, #response

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Rack::OAuth2::Server::Abstract::Handler

#call, #initialize

Constructor Details

This class inherits a constructor from Rack::OAuth2::Server::Abstract::Handler

Class Method Details

.response_type_for?(response_type) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/rack/oauth2/server/authorize/extension/code_and_token.rb', line 8

def response_type_for?(response_type)
  response_type.split.sort == ['code', 'token']
end

Instance Method Details

#_call(env) ⇒ Object



13
14
15
16
17
# File 'lib/rack/oauth2/server/authorize/extension/code_and_token.rb', line 13

def _call(env)
  @request  = Request.new env
  @response = Response.new request
  super
end