Class: Rack::OAuth2::Server::Token::Password::Request

Inherits:
Request show all
Defined in:
lib/rack/oauth2/server/token/password.rb

Instance Method Summary collapse

Methods inherited from Abstract::Request

#attr_missing!

Constructor Details

#initialize(env) ⇒ Request

Returns a new instance of Request.



15
16
17
18
19
20
21
# File 'lib/rack/oauth2/server/token/password.rb', line 15

def initialize(env)
  super
  @grant_type = :password
  @username   = params['username']
  @password   = params['password']
  attr_missing!
end