lib/rack/oauth2/server/token/authorization_code.rb in rack-oauth2-0.2.2.1 vs lib/rack/oauth2/server/token/authorization_code.rb in rack-oauth2-0.2.3
- old
+ new
@@ -9,19 +9,16 @@
@response = Response.new(request)
super
end
class Request < Token::Request
- attr_accessor :code
+ attr_required :code
def initialize(env)
super
@grant_type = :authorization_code
@code = params['code']
- end
-
- def required_params
- super + [:code]
+ attr_missing!
end
end
end
end
\ No newline at end of file