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

15 Коммитов

Автор SHA1 Сообщение Дата
Mark Xiong d841c893b8
OpenAPI: login logout (#4220)
* login logout

* error handling
2024-08-29 00:23:56 -05:00
Jason Robbins 4485cb9d82
Resolve mypy complaint and remove outdated code. (#3576)
* Resolve mypy complaint and remove outdated code.

* Updated for new import
2024-01-09 12:43:59 -08:00
Jason Robbins bd9e6999cf
Allow mock login to test accounts. (#3121) 2023-06-27 19:21:37 -07:00
Jason Robbins 0189c08ce2
Reject login/out GETs with 405 response. (#2846) 2023-03-21 16:34:54 -07:00
Daniel Smith 9ed293d7a2
Change existing handler classes to properly override request methods (#2342)
* Change methods to properly override

* Update comments_api.py

* Update comments_api.py
2022-10-16 08:39:35 +02:00
Daniel Smith 6bc5ebb3c4
update last_visit on token refresh or login (#2051) 2022-07-20 09:42:46 -07:00
Jason Robbins d10158d9f5
Remove backward compat with Google Sign-In. (#1883) 2022-05-13 07:58:47 -07:00
Jason Robbins a9960a0de1
Refresh user session when refreshing XSRF token. (#1804)
* Refresh user session when refreshing XSRF token.

* Refresh the user session on each page navigation, and fix a bug in XSRF refresh.
2022-03-25 16:46:40 -07:00
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