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