diff options
author | Jessica Tallon <tsyesika@tsyesika.se> | 2015-08-21 17:57:39 +0200 |
---|---|---|
committer | Jessica Tallon <tsyesika@tsyesika.se> | 2015-08-21 17:57:39 +0200 |
commit | e9bb5879f772e4d546aadb4bb6f935c7c55b8000 (patch) | |
tree | 28a6c88d8b5e21bf4c0c4fbffdea4689595dd535 /mediagoblin/db/models.py | |
parent | 3b4ad554c7ae17b1b6e431e235e7744e7670be89 (diff) | |
download | mediagoblin-e9bb5879f772e4d546aadb4bb6f935c7c55b8000.tar.lz mediagoblin-e9bb5879f772e4d546aadb4bb6f935c7c55b8000.tar.xz mediagoblin-e9bb5879f772e4d546aadb4bb6f935c7c55b8000.zip |
Fix #5344 - OAuth NotImplemented exception
This introduces a migration which adds a dummy Client, RequestToken
and AccessToken. These are used when an invalid request comes in,
instead of bailing early, it needs dummy data to prevent timing
attacks.
This then implements the methods which get the IDs of the dummy
objects. If these are changed in the future a migration which checks
for the previous dummy object should be created and updates them to
reflect the new IDs/tokens.
Diffstat (limited to 'mediagoblin/db/models.py')
0 files changed, 0 insertions, 0 deletions