You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
843b59a0ac
Verifying the port was causing issues, and anyhow, this check is paranoid and isn't strictly necessary for security. The problem is that Django's `get_host()` and the equivalent on some platforms returns it without the port, though on others (like e.g. the library we use from JS) it returns with the port. This was inconsistent and was causing authentication to fail. We thus relaxed the test to not include the port when matching, which should make it work consistently across all platforms. |
4 years ago | |
---|---|---|
.. | ||
drf_msgpack | 4 years ago | |
migrations | 4 years ago | |
token_auth | 4 years ago | |
__init__.py | 5 years ago | |
admin.py | 5 years ago | |
app_settings.py | 4 years ago | |
apps.py | 5 years ago | |
exceptions.py | 4 years ago | |
models.py | 4 years ago | |
parsers.py | 4 years ago | |
permissions.py | 4 years ago | |
renderers.py | 4 years ago | |
serializers.py | 4 years ago | |
signals.py | 4 years ago | |
tests.py | 5 years ago | |
urls.py | 4 years ago | |
utils.py | 4 years ago | |
views.py | 4 years ago |