Class: Doorkeeper::OAuth::AuthorizationCodeRequest

Inherits:
Object
  • Object
show all
Includes:
RequestConcern, Validations
Defined in:
lib/doorkeeper/oauth/authorization_code_request.rb

Instance Attribute Summary collapse

Attributes included from Validations

#error

Instance Method Summary collapse

Methods included from RequestConcern

#after_successful_response, #authorize, #default_scopes, #find_or_create_access_token, #scopes, #valid?

Methods included from Validations

#valid?, #validate

Constructor Details

#initialize(server, grant, client, parameters = {}) ⇒ AuthorizationCodeRequest

Returns a new instance of AuthorizationCodeRequest.


14
15
16
17
18
19
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 14

def initialize(server, grant, client, parameters = {})
  @server = server
  @client = client
  @grant  = grant
  @redirect_uri = parameters[:redirect_uri]
end

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token


12
13
14
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 12

def access_token
  @access_token
end

#clientObject

Returns the value of attribute client


12
13
14
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 12

def client
  @client
end

#grantObject

Returns the value of attribute grant


12
13
14
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 12

def grant
  @grant
end

#redirect_uriObject

Returns the value of attribute redirect_uri


12
13
14
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 12

def redirect_uri
  @redirect_uri
end

#serverObject

Returns the value of attribute server


12
13
14
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 12

def server
  @server
end