- Jan 21, 2020
-
-
Dr Rich Wareham authored
Django 3.0 breaks lookupproxy, fix the version to <3.0 Closes #28 See merge request uis/devops/lookup/lookupproxy!29
-
Dr Abraham Martin authored
-
- Jan 08, 2019
-
-
Mike Bamford authored
.. to ensure container is built with latest version of django-ucamlookup & django-automationcommon
-
- Oct 24, 2018
-
-
Dr Abraham Martin authored
lookupapi: support users not of the form {scheme}:{identifier}
-
Dr Rich Wareham authored
Although we run a postgres 9.6 server, the client will be whatever is installed in the Travis VM. Ask Travis for a matching client.
-
Dr Rich Wareham authored
The psycopg2 package is deprecated in favour of psycopg2-binary.
-
Dr Rich Wareham authored
Lookupapi still had the implicit assumption that users would be named {scheme}:{identifier} when created by django-automationoauth. That is no-longer true and caused lookup proxy to fail when re-deployed. With an abundance of caution, make sure we support all schemes we have used historically until we're sure nothing will break if we remove them.
-
- May 22, 2018
-
-
Mike Bamford authored
-
- Apr 27, 2018
-
-
Mike Bamford authored
-
- Apr 26, 2018
-
-
Dr Abraham Martin authored
authentication: remove race condition in creating users
-
Dr Rich Wareham authored
Previously we emulated a get_or_create user behaviour by attempting to get the user and, if that failed, create it. This introduced a race where another worker could create a user between these checks. (We observed this in production when an initial log in causes a flurry of requests to lookupproxy.) This was a result of Django's autocommit mode since the user fetch and subsequent user creation were separate transactions allowing for database change between them. The race-free approach is to *always* attempt to create the user and only if that fails do we fetch the user. These are still run as separate transactions but the user object will always be created by the first worker to talk to the DB and the rest will see an integrity error causing them to fetch the new user object.
-
- Apr 25, 2018
-
-
Mike Bamford authored
-
- Mar 26, 2018
-
-
Mike Bamford authored
add retries to OAuth2 HTTP(S) requests
-
- Mar 22, 2018
-
-
Dr Rich Wareham authored
Add a configurable number of retry attempts when fetching tokens from the OAuth2 endpoint or when requesting resources authorised with OAuth2 tokens. This uses requests' built-in retry behaviour which retries only in the face of network errors such as DNS failures or connection errors. It does not retry if data has made it to the server. It is, unfortunately, non-trivial to write a test for this since faking a network error requires deeper knowledge of requests internals than I possess. We rely on the max_retries parameter behaving as documented.
-
- Mar 20, 2018
-
-
Dr Rich Wareham authored
Allow standard error from Django to be captured and reported by gunicorn.
-
- Mar 08, 2018
-
-
Dr Rich Wareham authored
To enable easy testing of group memberships in development, default to the test lookup instance in all but the production docker image where we default to real lookup.
-
- Feb 22, 2018
-
-
Dr Abraham Martin authored
default to using production lookup
-
Dr Rich Wareham authored
Defaulting to the test lookup instance was hurting us in testing since people in test lookup tend to have incorrect institutions. There's no downside to using production lookup by default and we can re-visit this should we ever decide to offer write-access.
-
- Feb 15, 2018
-
-
Dr Abraham Martin authored
-
- Feb 13, 2018
-
-
Rich Wareham authored
tox fix
-
Dr Rich Wareham authored
fix files with flake8 violations
-
Dr Abraham Martin authored
-
Dr Abraham Martin authored
-
Dr Abraham Martin authored
-
Dr Abraham Martin authored
use shared consent app image
-
Dr Abraham Martin authored
-
Dr Abraham Martin authored
lookupproxy: allow trailing slash in ui URL
-
Dr Abraham Martin authored
-
Dr Abraham Martin authored
-
Rich Wareham authored
create self endpoint to get the getPerson information of the user logged in
-
Dr Rich Wareham authored
The IAR backend allows both /ui and /ui/ for the swagger UI URLs. We should be consistent.
-
Dr Rich Wareham authored
Rather than copy-pasting the mock consent app into each application, make use of a shared image.
-
Dr Abraham Martin authored
-
Dr Abraham Martin authored
-
Dr Abraham Martin authored
-
- Feb 12, 2018
-
-
Dr Abraham Martin authored
Also includes a mockup service that will return the test lookup user mug99 when the scheme="mock". It still needs to modify the consent app to use scheme "mock" when using test raven.
-
- Feb 08, 2018
-
-
Dr Abraham Martin authored
misc correctness fixes
-
Dr Abraham Martin authored
-
Dr Abraham Martin authored
add basic packaging with Docker
-
Dr Rich Wareham authored
-