Commit graph

94 commits

Author SHA1 Message Date
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
a0d15ecf23 Cleanup! 2018-11-17 22:53:51 +01:00
Nico Schottelius
2d147d961c Implement seed generating 2018-11-17 22:28:17 +01:00
Nico Schottelius
6f7d02f7fc Cleanup, expose seed read only 2018-11-17 22:15:17 +01:00
Nico Schottelius
d95c8dbd9c Add general viewset/serializer for otpseed 2018-11-17 21:54:59 +01:00
Nico Schottelius
cdb45bd1f0 Update readme, auth ideas 2018-11-17 21:45:53 +01:00
Nico Schottelius
cd75870e42 Addd more todos 2018-11-17 19:00:48 +01:00
Nico Schottelius
6b22532e98 Can verify token 2018-11-17 18:48:12 +01:00
Nico Schottelius
02dd509a5a In between commit w/ serializer error 2018-11-17 17:46:16 +01:00
Nico Schottelius
aa7a4c4df3 Add script to generate verify json data 2018-11-17 12:08:43 +01:00
Nico Schottelius
eb2c57b68a Progressing, docs, queryset, viewset 2018-11-17 11:39:42 +01:00
Nico Schottelius
bcd8c72e8e Begin to implement auth logic 2018-11-17 11:21:35 +01:00
Nico Schottelius
2054bd16ab Add name to objects using realm+name 2018-11-17 10:14:37 +01:00
Nico Schottelius
420393a437 Update models / create migration 2018-11-17 10:01:24 +01:00
Nico Schottelius
9f7e76f066 Introduce realms in documentation 2018-11-17 09:51:06 +01:00
Nico Schottelius
a58886979f Update the model to remove uuid, simplify 2018-11-17 09:42:34 +01:00
Nico Schottelius
41c49800ee Begin integration of django rest framework 2018-11-17 01:11:17 +01:00
Nico Schottelius
536e639cd3 ++ quoting 2018-10-27 12:09:05 +02:00
Nico Schottelius
12797d9978 + otpauth in settings 2018-10-26 22:00:56 +02:00
Nico Schottelius
f8cb107f09 Update .gitignore and README 2018-10-26 22:00:47 +02:00
Nico Schottelius
4227b1b73c [django] adding model 2018-10-26 21:59:35 +02:00
Nico Schottelius
13c7cdd294 [django] add model 2018-10-26 21:48:21 +02:00
Nico Schottelius
f237c1fcbb Add versions to requirements 2018-10-26 21:30:55 +02:00
Nico Schottelius
bee76cde49 [django] add otpauth app 2018-10-26 21:08:01 +02:00
Nico Schottelius
c30ea955c3 [DJANGO] startproject 2018-10-26 20:58:05 +02:00
Nico Schottelius
b97105ff40 More status 2018-10-26 19:51:33 +02:00
Nico Schottelius
c64b2120b0 Begin to introduce status 2018-10-26 19:50:56 +02:00
Nico Schottelius
05decb388e ++ verify in API 2018-10-26 19:48:15 +02:00
Nico Schottelius
9a680e6956 ++ API 2018-10-26 19:45:36 +02:00
Nico Schottelius
3ce99d0ed9 Add status 2018-10-26 19:36:34 +02:00
Nico Schottelius
350a327053 Extending API definition 2018-10-26 19:34:17 +02:00
Nico Schottelius
eca92b40d2 Add v1 of requirements.txt 2018-10-26 19:31:32 +02:00
Nico Schottelius
33ea51fa76 Begin to describe JSON objects 2018-10-26 19:31:18 +02:00
Nico Schottelius
8428b5fcbf Add hacky/early version README 2018-10-26 19:22:17 +02:00
Nico Schottelius
8297d6dab9 Merge remote-tracking branch 'origin/master' 2018-10-26 18:33:11 +02:00
ed9c4817ff Initial commit 2018-10-26 18:31:36 +02:00
Nico Schottelius
b73d19fef7 OTP get seed && verify token 2018-10-26 18:30:15 +02:00
Nico Schottelius
de4469d148 Get first otp checks running 2018-10-26 18:27:58 +02:00
Nico Schottelius
cdc9da6bdc + gitignore 2018-10-26 18:05:00 +02:00
Nico Schottelius
f3236fc788 Init 2018-10-26 18:04:46 +02:00