Commit graph

86 commits

Author SHA1 Message Date
PCoder
d38b5378b0 More logging 2019-02-11 01:06:21 +01:00
PCoder
1b4107306b Add logging 2019-02-10 23:52:52 +01:00
PCoder
d598b9584e Add logs directory 2019-02-10 23:37:15 +01:00
PCoder
636b3d3052 Log errors/debug messages 2019-02-10 23:33:28 +01:00
PCoder
fd0f0b56bd Load configs from .env and add basic logging config 2019-02-10 23:32:59 +01:00
PCoder
e45e5989db Add python-decouple requirement 2019-02-10 23:31:48 +01:00
PCoder
5890d95c59 Update .gitignore 2019-02-10 23:31:26 +01:00
PCoder
27b880ef77 Add values to .env.sample 2019-02-10 23:30:17 +01:00
PCoder
27ba06ce26 Add .env.sample 2019-02-10 23:29:53 +01:00
Nico Schottelius
1a54de525b Cleanup docs, remove debug print 2019-02-08 20:00:28 +01:00
Nico Schottelius
97b612e626 Update doc, run actual authentication on verify 2019-02-08 19:25:07 +01:00
Nico Schottelius
8bd256a1d7 Fix auth!
ungleich-admin can do anything, but verify
ungleich-auth can only verify
rest cannot login
2018-12-31 00:46:29 +01:00
Nico Schottelius
0eb09c31d8 Remove custom list code 2018-12-30 22:52:27 +01:00
Nico Schottelius
1e2d834c59 Adding otpseed as user works 2018-12-30 22:51:34 +01:00
Nico Schottelius
7ab29862f6 Post works, w/o creating an object 2018-12-30 22:41:17 +01:00
Nico Schottelius
1b85b28935 In between hacking commit
Trying to rip out the auth part
2018-12-30 22:30:11 +01:00
Nico Schottelius
2de270859a Fix wrong else 2018-12-30 19:42:55 +01:00
Nico Schottelius
952ff50cbb -- syntax error 2018-12-30 19:42:26 +01:00
Nico Schottelius
11f3c5bcd9 Begin to add static files support 2018-12-30 19:41:13 +01:00
Nico Schottelius
6012eab88d Simplify settings.py 2018-12-30 19:07:41 +01:00
Nico Schottelius
d9ee4ffc80 Move tokenserializer import after otpseed definition 2018-12-30 19:02:34 +01:00
Nico Schottelius
dabe6a08ac reorder 2018-12-30 18:20:24 +01:00
Nico Schottelius
d969399423 Remove self import 2018-12-30 18:16:00 +01:00
Nico Schottelius
fc9e14dd5d Restructure -> easier checkout on app server 2018-12-30 18:10:45 +01:00
Nico Schottelius
6544fccb9a Cleanup and split local/prod 2018-12-30 17:57:02 +01:00
Nico Schottelius
f157cf2539 Move requirements into django folder 2018-12-26 11:29:02 +01:00
Nico Schottelius
6377187004 add hint why stuff works 2018-12-24 20:58:08 +01:00
Nico Schottelius
8636d3f81a Cleanup 2018-12-24 20:46:54 +01:00
Nico Schottelius
45394fa59c Cleanup client 2018-12-24 20:30:12 +01:00
Nico Schottelius
11ab190ebc Update 2018-12-24 20:28:21 +01:00
Nico Schottelius
78de133e16 Remove testfile 2018-12-24 19:22:15 +01:00
Nico Schottelius
2e228f3a0d Phase in ungleichotp 2018-11-18 15:41:47 +01:00
Nico Schottelius
963585806a Update script to use urrlib for server testing 2018-11-18 15:37:28 +01:00
Nico Schottelius
3ada914040 Be python friendly, don't use dashes 2018-11-18 14:33:30 +01:00
Nico Schottelius
d53b980ebf add restapp to client
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2018-11-18 13:59:15 +01:00
Nico Schottelius
f5f5024981 add client base
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2018-11-18 13:58:38 +01:00
Nico Schottelius
f59fbf1180 Cleanup dev code 2018-11-18 13:42:16 +01:00
Nico Schottelius
f55498f314 Finish the verifyserializer 2018-11-18 13:35:06 +01:00
Nico Schottelius
0b73e1f5e0 Debug++ 2018-11-18 13:29:07 +01:00
Nico Schottelius
1b42652bd6 Redef the VerifySerializer 2018-11-18 13:25:15 +01:00
Nico Schottelius
d0a3cdce52 ++ doc, begin improving serializers 2018-11-18 13:24:09 +01:00
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
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