Class: Doorkeeper::OAuth::AuthorizationCodeRequest

Inherits:
BaseRequest
  • Object
show all
Defined in:
lib/doorkeeper/oauth/authorization_code_request.rb

Instance Attribute Summary collapse

Attributes inherited from BaseRequest

#grant_type, #server

Attributes included from Validations

#error

Instance Method Summary collapse

Methods inherited from BaseRequest

#after_successful_response, #authorize, #find_or_create_access_token, #scopes

Methods included from Validations

#valid?, #validate

Constructor Details

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

Returns a new instance of AuthorizationCodeRequest.



16
17
18
19
20
21
22
23
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 16

def initialize(server, grant, client, parameters = {})
  @server = server
  @client = client
  @grant  = grant
  @grant_type = Doorkeeper::OAuth::AUTHORIZATION_CODE
  @redirect_uri = parameters[:redirect_uri]
  @code_verifier = parameters[:code_verifier]
end

Instance Attribute Details

#access_tokenObject (readonly)

Returns the value of attribute access_token.



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

def access_token
  @access_token
end

#clientObject (readonly)

Returns the value of attribute client.



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

def client
  @client
end

#code_verifierObject (readonly)

Returns the value of attribute code_verifier.



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

def code_verifier
  @code_verifier
end

#grantObject (readonly)

Returns the value of attribute grant.



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

def grant
  @grant
end

#invalid_request_reasonObject (readonly)

Returns the value of attribute invalid_request_reason.



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

def invalid_request_reason
  @invalid_request_reason
end

#missing_paramObject (readonly)

Returns the value of attribute missing_param.



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

def missing_param
  @missing_param
end

#redirect_uriObject (readonly)

Returns the value of attribute redirect_uri.



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

def redirect_uri
  @redirect_uri
end