This repository was archived by the owner on Jul 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33# name: discourse-oauth2-basic
4- # about: Allows users to login to your forum using a basic OAuth2 provider.
4+ # about: Allows users to login to your forum using a basic OAuth2 provider.
55# meta_topic_id: 33879
66# version: 0.3
77# authors: Robin Ward
@@ -50,7 +50,7 @@ def recurse(obj, keys)
5050class OAuth2FaradayFormatter < Faraday ::Logging ::Formatter
5151 def request ( env )
5252 warn <<~LOG
53- OAuth2 Debugging: request #{ env . method . upcase } #{ env . url . to_s }
53+ OAuth2 Debugging: request #{ env . method . upcase } #{ env . url }
5454
5555 Headers:
5656 #{ env . request_headers . to_yaml }
@@ -64,7 +64,7 @@ def response(env)
6464 warn <<~LOG
6565 OAuth2 Debugging: response status #{ env . status }
6666
67- From #{ env . method . upcase } #{ env . url . to_s }
67+ From #{ env . method . upcase } #{ env . url }
6868
6969 Headers:
7070 #{ env . request_headers . to_yaml }
@@ -236,8 +236,12 @@ def fetch_user_details(token, id)
236236 log <<-LOG
237237 user_json request: #{ user_json_method } #{ user_json_url }
238238
239- response:
240- #{ user_json_response . to_yaml }
239+ request headers: #{ headers }
240+
241+ response status: #{ user_json_response . status }
242+
243+ response body:
244+ #{ user_json_response . body }
241245 LOG
242246
243247 if user_json_response . status == 200
You can’t perform that action at this time.
0 commit comments