Commit Graph

47 Commits (refactor/python3.10)

Author SHA1 Message Date
Chris Veilleux 58e2011df7 de-linted password reset endpoint 2022-08-25 10:44:10 -05:00
Chris Veilleux 72008f7225 added ability for an authenticated user to change their email address 2022-08-15 13:20:32 -05:00
Chris Veilleux 3633fa96f6 Change the email templates to use Jinja's inheritance feature to reduce code duplication. 2022-08-11 12:49:35 -05:00
Chris Veilleux ee0270f6c9 Add an endpoint to the account API that changes the user's password 2022-08-08 13:58:34 -05:00
Chris Veilleux 26ed641b48 applied the "Black" formatter to all files and added pre-commit hook to check 2022-03-11 13:22:33 -06:00
Chris Veilleux b435f515dd use new logging mechanism in single sign on API endpoints. 2022-03-10 14:28:16 -06:00
Chris Veilleux 180fa3acfc request validation was not being done 2020-05-11 15:36:06 -05:00
Steve Penrod 9dc4d62490 Adding the basics to prepare for publishing this repo
Changes include:

* Adding AGPL 3.0 license template (TODO: Apply to all 200+ *.py files)
* Adding AGPL license files
* Add generic public repo files (CONTRIBUTING, etc)
* Simple README updates
* Adding other generic files, e.g. .github templates
2019-07-27 18:44:23 -05:00
Chris Veilleux 2c79df7ac3 fixed bug where federated login failed on account creation 2019-05-31 16:48:52 -05:00
Chris Veilleux 1e177e4d19 implemented github login and changed sign-up logic to fit the new UI flow 2019-05-03 15:14:55 -05:00
Chris Veilleux 94fd50f523 added github login functionality 2019-04-26 12:13:30 -05:00
Chris Veilleux aaacdef936 fixed a bug that only occurred in rare circumstances where a user's password started with any of the letters in the word "Basic" or if the password had a colon in it. 2019-04-23 16:42:14 -05:00
Chris Veilleux 2ee471a6e1 add api metrics table and collection. in the process, changed the database connection mechanism to only get a connection from the pool once per request. 2019-04-22 16:58:28 -05:00
Chris Veilleux eb6a6d7c61 removed remnants of the refresh_token db table 2019-04-18 17:41:52 -05:00
Chris Veilleux af5d5b5be3 removed all logic related to storing refresh tokens on the database 2019-04-08 20:39:55 -05:00
Chris Veilleux 36e459ddb2 forgot to assign return value of federated authentication 2019-04-08 00:11:21 -05:00
Chris Veilleux 7f90820eab move logic to get email address from facebook/google into util so that both sso and account APIs can use it. 2019-04-07 23:33:09 -05:00
Chris Veilleux cf052d138b fixed an incorrect config 2019-04-02 17:30:10 -05:00
Chris Veilleux 56b8d012ed password reset functionality 2019-04-01 20:11:32 -05:00
Chris Veilleux 28977e6355 ensure the geographical location is associated with an account before the device is added 2019-03-25 19:02:48 -05:00
Chris Veilleux a684242648 to improve security, UI will pass authentication tokens to this endpoint instead of email addresses. endpoint will use tokens to obtain email address from provider. 2019-03-25 18:40:01 -05:00
Chris Veilleux af49cdb63a return no content (204) when logout is successful 2019-03-20 22:25:17 -05:00
Chris Veilleux b7cbc5a733 fixed a bug where the request data was not un-serialized before processing 2019-03-05 22:39:06 -06:00
Chris Veilleux 2b996a99ad convert from flask-restful to flask 2019-02-19 14:41:36 -06:00
Chris Veilleux 4f5512ab63 changed to use new class signature 2019-02-18 14:53:34 -06:00
Chris Veilleux 0b28b18b39 moved all data access layer code into a new selene.data package 2019-02-07 13:14:40 -06:00
Chris Veilleux 5fa2d6f707 removed commented-out code 2019-02-07 12:15:24 -06:00
Chris Veilleux 3ef7059e31 added docstrings 2019-02-07 12:14:54 -06:00
Chris Veilleux c487bcc7f9 removed a config that was used for tartarus 2019-02-07 12:14:33 -06:00
Chris Veilleux fa5da2a914 added test for logout function 2019-02-06 13:37:39 -06:00
Chris Veilleux 745f7fd7e3 added ability to expire a token cookie 2019-02-05 13:25:22 -06:00
Chris Veilleux dc5a330a59 removed unused import 2019-02-05 13:00:36 -06:00
Chris Veilleux 6b6a687a00 updated tests to include the validate_federated endpoint 2019-02-05 12:59:23 -06:00
Chris Veilleux e6b8748296 replaced previous social login logic with new client-side implementation 2019-02-05 11:33:19 -06:00
Chris Veilleux aea9851116 moved the hook to add the cookies to the response into the base class to avoid re-coding it in every place it is needed. 2019-02-04 15:04:22 -06:00
Chris Veilleux 59c1075b7e added tests for internal login endpoint and fixed bugs the test uncovered 2019-02-02 18:52:43 -06:00
Chris Veilleux 7fd66423df changed url of internal login endpoint and removed database close logic as it was being called at the wrong time 2019-02-02 18:51:19 -06:00
Chris Veilleux ad0d4820f0 added logic to add a refresh token on sign in; moved refresh token functions in the account repository to their own repository; moved authentication repo into account repo 2019-02-01 22:08:59 -06:00
Chris Veilleux ff875fc79f added refresh token logic 2019-02-01 00:31:50 -06:00
Chris Veilleux 2a3c89961e added logger and fixed a couple of minor bugs 2019-02-01 00:30:22 -06:00
Chris Veilleux a69a262e87 added some docstrings 2019-01-30 23:20:40 -06:00
Chris Veilleux db1c1ffee8 removed app-specific config file because all configs are in the global file 2019-01-30 23:18:28 -06:00
Chris Veilleux 1b4574a367 changed to use new library config code and changed internal endpoint naming 2019-01-30 23:17:59 -06:00
Chris Veilleux 5b2d65d546 renamed from "antisocial" to "internal" and changed logic to use new architecture 2019-01-30 23:16:59 -06:00
Chris Veilleux 4cf170592d moved common API logic from selene.util to new selene.api package. the util package is for non-business logic and the common api bits contain business logic 2019-01-30 19:16:46 -06:00
Chris Veilleux 3377670bf8 changed imports to use new directory structure for shared code 2019-01-30 14:52:23 -06:00
Chris Veilleux f199e0969b moved the contents of the "backend" directory up one level since this repo is now just for backend code 2019-01-30 14:47:18 -06:00