Граф коммитов

7 Коммитов

Автор SHA1 Сообщение Дата
Jason Robbins b8582da8b0
Accept either old or new login requests during transition. (#1785)
* Accept either old or new login requests during transition.

* Made suggested edit

* Update api/login_api.py

Co-authored-by: Kyle Ju <kyleju@google.com>
2022-03-14 16:30:50 -07:00
Kyle Ju fcf3a96adb
Migrate sign-in Google Identity Services library (#1729)
* Migrate Google sign-in

* fix

* Reapply changes

* Fix tests

Co-authored-by: Joseph Medley <jmedley@google.com>
2022-03-11 11:52:54 -08:00
Jason Robbins 1871cdee22
Use new session contents (#1773)
* Use new session contents

* Added unit tests
2022-03-10 12:22:19 -08:00
Jason Robbins 548828aaa0
Some easy pylint fixes. (#1557) 2021-09-23 12:04:33 -07:00
Kyle Ju b6bb10195a
Run 2to3 to detect py2 to py3 changes (#1551)
* Run 2to3 -w -n .

* Update internals/fetchmetrics.py

* Update internals/models.py

* Update internals/notifier.py

* Update pages/blink_handler.py

* Update internals/fetchmetrics.py
2021-09-22 18:23:14 -07:00
Jason Robbins 248c2c13fd
Fix tests as suggested by shivamag00. (#1309) 2021-05-06 17:29:03 -07:00
Shivam Agarwal 8fbebb7989
20210418 google sign in (#1275)
* Added Google Platform Library

* Added Meta Element for Client ID

* Added Google Sign-In Button

* Authenticating the id_token on our backend

* Saving id_token in flask session, using the id_token to fetch the current user and replaced the usages of AppEngine Users API (not from *_tests.py)

* Correct the flow on pressing SignIn and SignOut

* Code refactor

* Added Comment for is_current_user_admin

* Supporting GAE Users library for post request

* Made some fixes

* Changed Admin User condition

* Reloading only on 200 response code

* Do not require sign in and xsrf token while sending post request for login

* Sign Out using Google Sign In if cookie is not set after login

* Clearing the session if the id_token stored in the session variable becomes invalid or expires

* Replaced GAE Users from tests

* Replaced GAE users with framework users in tests.py
2021-05-06 16:37:30 -07:00