Doorkeeper is an OAuth 2 provider for Ruby on Rails / Grape.
client
instead of grant.application
to find_or_create_access_token
.custom_access_token_attributes
in client credentials grant flow.StaleRecordsCleaner
.active_record_options
config option.