Checks for google oauth2 authorisation confirmation :return:
()
| 168 | methods=['GET'], endpoint='verification_ack') |
| 169 | @pga_login_required |
| 170 | def 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/', |
nothing calls this directly
no test coverage detected