OAuth 오류 - 오류의 정확한 원인을 파악할 수 없음

다시 살펴보니, oauth2_debug_auth 설정은 서버가 시작될 때 적용되는 것 같습니다. oauth 미들웨어와 디버깅용 로거가 그때 연결되므로 그렇습니다.

def register_middleware(omniauth)
  omniauth.provider :oauth2_basic,
  ...
      opts[:client_options][:connection_build] = lambda do |builder|
        if SiteSetting.oauth2_debug_auth && defined?(OAuth2FaradayFormatter)
          builder.response :logger,
                         Rails.logger,
                         { bodies: true, formatter: OAuth2FaradayFormatter }
        end
  ...
    }
end

대부분의 사이트 설정은 재시작이 필요하지 않지만, 이 특정 설정이 적용되려면 서버를 재시작해야 합니다.


그러나 근본적인 문제는 Faraday::TimeoutError (Timeout::Error)입니다. 로그를 끄라고 제안한 것이 문제를 해결해 주리라고 생각하지 않습니다. Discourse 인스턴스와 OAuth2 제공자 사이의 네트워크 문제를 확인해야 할 가능성이 높습니다.