You can leverage the
Doorkeeper.authenticate facade to easily extract a
Doorkeeper::OAuth::Token based on the current request. You can then ensure that token is still good, find its associated
module Constraintclass Authenticateddef matches?(request)token = Doorkeeper.authenticate(request)token&.accessible?endendend
For more information about integration and other integrations, check out the related wiki page.