Commit Graph

21 Commits (06b8bd4eb123399bb4ba71ae3cbb461feb010531)

Author SHA1 Message Date
Chris Veilleux 71df9c9313 modified base endpoint class and tests to use new connection pooling mechanism 2019-05-22 15:41:30 -05:00
Chris Veilleux b38110e8a0 changed logic that got a database connection for all endpoints in a before_request hook to a lazily loaded property that only gets called when a db connection is needed. 2019-04-22 18:09: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 af5d5b5be3 removed all logic related to storing refresh tokens on the database 2019-04-08 20:39:55 -05:00
Chris Veilleux 580dc9d37b fixed an issue with the sso API failing due to the selene cache being defined as a base class instance attribute 2019-04-03 20:35:44 -05:00
Matheus Lima 11ba261ed6 Adding etag manager in the account api and expiring skill etag when the skill is updated 2019-04-03 13:12:27 -03:00
Chris Veilleux 05bf20ac4d fixed a minor bug when an account has no refresh tokens 2019-02-25 23:25:37 -06:00
Chris Veilleux f1e1ba60d1 fixed a bug with authentication logic that refreshed tokens when access token expired 2019-02-20 16:50:22 -06:00
Chris Veilleux e8a0a161d3 fixing token authentication bugs 2019-02-19 13:33:06 -06:00
Chris Veilleux 21ae4511b9 converted from flask-restful to flask 2019-02-15 21:43:13 -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 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 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 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 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