Commit Graph

34 Commits (b98f667f30cdb02d35516a11da8ed46df9cef260)

Author SHA1 Message Date
Chris Veilleux b98f667f30 refactored to build access and refresh tokens independently for re-usability in other tests. 2019-02-19 13:31:58 -06:00
Chris Veilleux 8118c1b05c new error handler for authentication errors 2019-02-19 10:58:48 -06:00
Chris Veilleux 988a70752b jsonified the response object 2019-02-18 14:43:26 -06:00
Chris Veilleux b5b7cfdef0 added some whitespace to make pylint happy 2019-02-18 13:01:17 -06:00
Chris Veilleux ee5731d86e applied code review corrections 2019-02-18 11:12:06 -06:00
Chris Veilleux 8e62fc8b72 removed old version of response formatter 2019-02-15 22:13:55 -06:00
Chris Veilleux f5fb8b6dfe added blueprint for flask application setup common to all selene api's 2019-02-15 21:43:59 -06:00
Chris Veilleux 21ae4511b9 converted from flask-restful to flask 2019-02-15 21:43:13 -06:00
Chris Veilleux 8c2eb61aa1 simplified module name and converted from flask-restful to flask 2019-02-15 21:42:44 -06:00
Chris Veilleux 11693be534 created and endpoints package to group common endpoints 2019-02-15 21:41:51 -06:00
Chris Veilleux 1605d8f33d fixed a bug where passing a nested dictionary to a dataclass constructor did not build the child data objects correctly 2019-02-15 00:45:23 -06:00
Chris Veilleux 0d3313041e changed to use new class signature 2019-02-15 00:11:38 -06:00
Chris Veilleux 49d43d061d new agreements endpoint 2019-02-12 11:17:19 -06:00
Chris Veilleux ca2fa5a78b put account endpoint in api library because all api's that interact with web apps will need it 2019-02-07 20:03:41 -06:00
Chris Veilleux 02a3db7c0f moved token generation test code to api library for re-use 2019-02-07 20:02:43 -06:00
Chris Veilleux 6f229d8977 minor merge conflict 2019-02-07 19:52:47 -06:00
Chris Veilleux 7db6557af2 changed selene.util.encoder to no longer need a custom JSON encoder and moved into the selene.api package 2019-02-07 19:42:42 -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 849d65bc21 minor bug fixes 2019-02-06 13:30:33 -06:00
Chris Veilleux 977dc99570 added package for common API testing logic 2019-02-06 13:29:58 -06:00
Chris Veilleux f5d2f464ed get rid of the raise of the API error when authentication fails. there is already an indicator of failed authentication, the self.authenticated flag 2019-02-05 16:24:38 -06:00
Chris Veilleux 745f7fd7e3 added ability to expire a token cookie 2019-02-05 13:25:22 -06:00
Chris Veilleux ce444f3293 changed dev domain setting for https purposes 2019-02-05 11:29:35 -06:00
Chris Veilleux 06fbbae76d changed how cookies are build to fix issue with accessing them in client code 2019-02-05 11:29:00 -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 70ccab71de minor bug fix for cookie domain 2019-02-04 15:03:19 -06:00
Chris Veilleux aec1f18ad8 minor bug fix 2019-02-02 00:45:00 -06:00
Chris Veilleux 0e79c40f99 reflect changes to account package 2019-02-01 22:09:30 -06:00
Chris Veilleux c17dcf0a4e added ability to delete an expired refresh token and update a refresh token 2019-02-01 21:40:44 -06:00
Chris Veilleux f458e809e9 added refresh token logic 2019-02-01 00:32:09 -06:00
Chris Veilleux 1c6e53d3af added domains for cookies 2019-02-01 00:23:37 -06:00
Chris Veilleux a47c67798a fixed some docstring typos and added an ENV value 2019-01-30 23:14:35 -06:00
Chris Veilleux c54590895c abstract global config setup 2019-01-30 22:25:02 -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