From 8d09044ee47ba98a8b065650c9326a4905c2c1d9 Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Sat, 23 Jan 2021 16:18:15 -0500 Subject: [PATCH] [doorkeeper] Attempt to fix oauth connect issues. --- app/controllers/api/base_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/api/base_controller.rb b/app/controllers/api/base_controller.rb index f6e85528..283d8c37 100644 --- a/app/controllers/api/base_controller.rb +++ b/app/controllers/api/base_controller.rb @@ -94,6 +94,7 @@ class Api::BaseController < ApplicationController end def authorize_if_got_token!(*scopes) + Doorkeeper::AccessToken.connection.stick_to_master! doorkeeper_authorize!(*scopes) if doorkeeper_token end