lib/doorkeeper/request/authorization_code.rb in doorkeeper-5.2.6 vs lib/doorkeeper/request/authorization_code.rb in doorkeeper-5.3.0
- old
+ new
@@ -5,22 +5,22 @@
class AuthorizationCode < Strategy
delegate :client, :parameters, to: :server
def request
@request ||= OAuth::AuthorizationCodeRequest.new(
- Doorkeeper.configuration,
+ Doorkeeper.config,
grant,
client,
- parameters
+ parameters,
)
end
private
def grant
raise Errors::MissingRequiredParameter, :code if parameters[:code].blank?
- AccessGrant.by_token(parameters[:code])
+ Doorkeeper.config.access_grant_model.by_token(parameters[:code])
end
end
end
end