def before
      return if WineBouncer.configuration.disable_block.call

      set_auth_strategy(WineBouncer.configuration.auth_strategy)
      auth_strategy.api_context = context
      #extend the context with auth methods.
      context.extend(WineBouncer::AuthMethods)
      context.protected_endpoint = endpoint_protected?
      return unless context.protected_endpoint?
      self.doorkeeper_request = env # set request for later use.
      doorkeeper_authorize!(*auth_scopes)
      context.doorkeeper_access_token = doorkeeper_token
    end
def before
      return if WineBouncer.configuration.disable_block.call

      set_auth_strategy(WineBouncer.configuration.auth_strategy)
      auth_strategy.api_context = context
      #extend the context with auth methods.
      context.extend(WineBouncer::AuthMethods)
      context.protected_endpoint = endpoint_protected?
      return unless context.protected_endpoint?
      self.doorkeeper_request = env # set request for later use.
      doorkeeper_authorize!(*auth_scopes)
      context.doorkeeper_access_token = doorkeeper_token
    end
Grape middleware methods


 Before do.