MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / callback

Function callback

web/pgadmin/misc/cloud/google/__init__.py:153–164  ·  view source on GitHub ↗

Call back function on google authentication response. :return:

()

Source from the content-addressed store, hash-verified

151@pgCSRFProtect.exempt
152@pga_login_required
153def callback():
154 """
155 Call back function on google authentication response.
156 :return:
157 """
158 google_obj = _get_google_from_session()
159 if google_obj is None:
160 return plain_text_response(
161 'Authentication session expired. Please try again.')
162 res = google_obj.callback(request)
163 _save_google_to_session(google_obj)
164 return plain_text_response(res)
165
166
167@blueprint.route('/verification_ack',

Callers 12

pgadmin_preload.jsFile · 0.85
run_before_app_startMethod · 0.85
withCheckPermissionFunction · 0.85
initializeModelMethod · 0.85
confirmDiscardFunction · 0.85
confirmDiscardFunction · 0.85
fetchWindowFunction · 0.85
useDelayedCallerFunction · 0.85
useDelayDebounceFunction · 0.85
CodeMirrorFunction · 0.85
handleOkCloseFunction · 0.85
masterPassCallbacksFunction · 0.85

Calls 4

plain_text_responseFunction · 0.90
_get_google_from_sessionFunction · 0.85
_save_google_to_sessionFunction · 0.85
callbackMethod · 0.45

Tested by

no test coverage detected