Commit Graph

25 Commits

Author SHA1 Message Date
Dan Funk 1cc9a60bfe clearing out the remaining references to the flask_sso library. 2020-05-22 08:01:33 -04:00
Dan Funk 4627318818 Dropping flask_sso library in favor of reading from the headers directly. Updating login to read from ldap once it has the user_id. Adding more information to the sso endpoint. 2020-05-22 07:55:58 -04:00
Aaron Louie 091a1729f8 Removes CORS logging. Allows only specific origins 2020-05-16 11:36:48 -04:00
Aaron Louie 3ef07bd8c9 Allows all origins (for troubleshooting) 2020-05-13 12:32:57 -04:00
Aaron Louie caf791118f Allows all resources 2020-05-13 11:00:43 -04:00
Aaron Louie cdfe45dc00 Turns on flask_cors debugging to troubleshoot CORS issue 2020-05-12 22:42:02 -04:00
Aaron Louie 77b1908373 Escapes dot characters in CORS domains 2020-05-12 14:27:17 -04:00
Aaron Louie ac3f0b401b Converts list of allowed origins to regexes 2020-05-12 12:23:47 -04:00
Aaron Louie 73ce70b574 Allows CORS connections from frontend 2020-05-12 10:43:52 -04:00
Aaron Louie 00312d244a Cleans up debugging config print 2020-04-20 12:04:10 -04:00
Aaron Louie 35fa241a4c Printing out some more stuff for debugging 2020-04-15 14:43:09 -04:00
Dan Funk f4342fc785 It became impossible to use the Swagger ui when we started adding authentication to all of the calls. I discovered Connexion and Swagger have a default way of handing JTW authentication and this cleans up our code quite a bit, moves the securing of endpoints into the API Definition, which is quite nice, and removes a whole library dependency (I never get to do that!) I added a SWAGGER_AUTH_KEY that can be used in non-production environments to allow users to quickly authenticate from the Swagger ui. I also removed all api calls to simple little happy api services, because that is just mean and pointless. 2020-03-24 14:15:21 -04:00
Aaron Louie cbd8d2f46c Silences SQLALCHEMY_TRACK_MODIFICATIONS warning 2020-03-16 13:47:17 -04:00
Aaron Louie f4a0c32cec Fixes path to testing config file 2020-02-28 11:33:08 -05:00
Dan Funk a642593e3d Adding support to handle Single Sign On (Shibboleth) authentication using Flask SSO and an attribute map that has worked in the past with UVA's implementation. Aside from the new user endpoint, nothing requires authentication, but soon everything will expect it. I'm setting up a backdoor we can use for development and staging that will cause a round-robin affair that should make this relatively painless. Dropped "RestException" as we had two ways or raising errors, and that was silly. 2020-02-18 16:38:56 -05:00
Aaron Louie 9fb3a96a50 Fixes instance path 2020-02-06 14:36:02 -05:00
Dan Funk ff63978da0 read the instance/config.py file in IF it exists. 2020-02-05 13:43:59 -05:00
Aaron Louie bf97095933 Adds type hinting back in 2020-01-21 15:21:33 -05:00
Aaron Louie 21fe50ed08 Import api before Connexion does its thing. 2020-01-14 15:26:39 -05:00
Aaron Louie 7ce48e8deb Removes type hinting, in case that's breaking something. 2020-01-14 15:10:43 -05:00
Aaron Louie fe15799ee1 Adds type hinting to db and session to fix Pycharm autocomplete. Replaces db.session with session. 2020-01-14 11:45:12 -05:00
Dan Funk b54bd49cf4 Allow for clearing out the database. 2019-12-30 13:03:57 -05:00
Dan Funk bb6ab4b8e8 Tasks can have forms and they are returned correctly. 2019-12-19 11:58:51 -05:00
Dan Funk a734578327 re-building migrations. 2019-12-18 14:16:26 -05:00
Dan Funk 9861f6baf3 Lots and lots of random stuff as I organize code and get things to make sense. 2019-12-18 14:02:17 -05:00