Commit Graph

9 Commits

Author SHA1 Message Date
Nico Schottelius b16d484406 Require authentication on all rest endpoints 2018-11-18 13:10:51 +01:00
Nico Schottelius 9dc6e02029 Auth: set token as request.auth 2018-11-18 13:05:21 +01:00
Nico Schottelius 26789ff11b Move AUTH code into model of otpauth
To prevent the following exception:

  File "/home/nico/vcs/ungleich-otp/venv/lib/python3.5/site-packages/django/db/models/base.py", line 87, in __new__
    app_config = apps.get_containing_app_config(module)
  File "/home/nico/vcs/ungleich-otp/venv/lib/python3.5/site-packages/django/apps/registry.py", line 249, in get_containing_app_config
    self.check_apps_ready()
  File "/home/nico/vcs/ungleich-otp/venv/lib/python3.5/site-packages/django/apps/registry.py", line 132, in check_apps_ready
    raise AppRegistryNotReady("Apps aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
(venv) [12:41] line:ungleichotp%
2018-11-18 12:54:47 +01:00
Nico Schottelius cbd2446243 Import OTPSeed from the right place 2018-11-18 12:41:28 +01:00
Nico Schottelius aea92f9d85 Begin to phase in custom authentication 2018-11-18 12:38:50 +01:00
Nico Schottelius 2fb8c91415 Change OTPSeed to AbstractUser 2018-11-17 23:00:36 +01:00
Nico Schottelius 41c49800ee Begin integration of django rest framework 2018-11-17 01:11:17 +01:00
Nico Schottelius 12797d9978 + otpauth in settings 2018-10-26 22:00:56 +02:00
Nico Schottelius c30ea955c3 [DJANGO] startproject 2018-10-26 20:58:05 +02:00