Class: Doorkeeper::Request::AuthorizationCode
- Inherits:
-
Object
- Object
- Doorkeeper::Request::AuthorizationCode
- Defined in:
- lib/doorkeeper/request/authorization_code.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#grant ⇒ Object
Returns the value of attribute grant.
-
#server ⇒ Object
Returns the value of attribute server.
Class Method Summary collapse
Instance Method Summary collapse
- #authorize ⇒ Object
-
#initialize(grant, client, server) ⇒ AuthorizationCode
constructor
A new instance of AuthorizationCode.
- #request ⇒ Object
Constructor Details
#initialize(grant, client, server) ⇒ AuthorizationCode
Returns a new instance of AuthorizationCode.
10 11 12 |
# File 'lib/doorkeeper/request/authorization_code.rb', line 10 def initialize(grant, client, server) @grant, @client, @server = grant, client, server end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
8 9 10 |
# File 'lib/doorkeeper/request/authorization_code.rb', line 8 def client @client end |
#grant ⇒ Object
Returns the value of attribute grant.
8 9 10 |
# File 'lib/doorkeeper/request/authorization_code.rb', line 8 def grant @grant end |
#server ⇒ Object
Returns the value of attribute server.
8 9 10 |
# File 'lib/doorkeeper/request/authorization_code.rb', line 8 def server @server end |
Class Method Details
.build(server) ⇒ Object
4 5 6 |
# File 'lib/doorkeeper/request/authorization_code.rb', line 4 def self.build(server) new(server.grant, server.client, server) end |
Instance Method Details
#authorize ⇒ Object
18 19 20 |
# File 'lib/doorkeeper/request/authorization_code.rb', line 18 def request. end |
#request ⇒ Object
14 15 16 |
# File 'lib/doorkeeper/request/authorization_code.rb', line 14 def request @request ||= OAuth::AuthorizationCodeRequest.new(Doorkeeper.configuration, grant, client, server.parameters) end |