lib/doorkeeper/oauth/request_concern.rb in doorkeeper-1.3.0 vs lib/doorkeeper/oauth/request_concern.rb in doorkeeper-1.3.1

- old
+ new

@@ -2,12 +2,14 @@ module OAuth module RequestConcern def authorize validate if valid? - on_successful_authorization + before_successful_response @response = TokenResponse.new(access_token) + after_successful_response + @response else @response = ErrorResponse.from_request(self) end end @@ -34,10 +36,13 @@ scopes, server.access_token_expires_in, server.refresh_token_enabled?) end - def on_successful_authorization + def before_successful_response + end + + def after_successful_response end end end end