[doorkeeper] Attempt to fix oauth connect issues.

This commit is contained in:
Fosco Marotto 2021-01-23 16:33:48 -05:00
parent 8d09044ee4
commit 63ad3a1590
2 changed files with 6 additions and 4 deletions

@ -94,7 +94,6 @@ class Api::BaseController < ApplicationController
end
def authorize_if_got_token!(*scopes)
Doorkeeper::AccessToken.connection.stick_to_master!
doorkeeper_authorize!(*scopes) if doorkeeper_token
end

@ -16,6 +16,9 @@ Rails.application.routes.draw do
mount PgHero::Engine, at: 'pghero', as: :pghero
end
Doorkeeper::AccessToken.connection.stick_to_master!
Doorkeeper::AccessGrant.connection.stick_to_master!
use_doorkeeper do
controllers authorizations: 'oauth/authorizations',
authorized_applications: 'oauth/authorized_applications',