MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / verification_ack

Function verification_ack

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

Checks for google oauth2 authorisation confirmation :return:

()

Source from the content-addressed store, hash-verified

168 methods=['GET'], endpoint='verification_ack')
169@pga_login_required
170def verification_ack():
171 """
172 Checks for google oauth2 authorisation confirmation
173 :return:
174 """
175 verified = False
176 google_obj = _get_google_from_session()
177 if google_obj is not None:
178 verified, error = google_obj.verification_ack()
179 _save_google_to_session(google_obj)
180 return make_json_response(
181 success=verified, errormsg=sanitize_external_text(error))
182 else:
183 return make_json_response(success=verified,
184 errormsg='Authentication is failed.')
185
186
187@blueprint.route('/projects/',

Callers

nothing calls this directly

Calls 5

make_json_responseFunction · 0.90
sanitize_external_textFunction · 0.90
_get_google_from_sessionFunction · 0.85
_save_google_to_sessionFunction · 0.85
verification_ackMethod · 0.80

Tested by

no test coverage detected