brata-hsdc / brata.masterserver

Behind-the-scenes coordination and support for the HSDC
Apache License 2.0
1 stars 0 forks source link

Add authentication to admin pages. #76

Closed ellerychan closed 8 years ago

ellerychan commented 8 years ago

Add dbkeeper/login.html. Add @login_required decorator to view funcs and view class methods.

@jaron42 @jawaad-ahmad I added a dbkeeper/templates/dbkeeper/login.html, but then I switched to just using the Django Admin login page. The goal here was to keep student testers from wandering into the admin stuff. So all admin screens should now require a login. Once you are logged in it should not bother you until you log out. To log out (for testing and such), you need to go to one of the Admin pages and click Log Out in the upper right. We can add a Log Out button to the /dbkeeper page of buttons if that would be more convenient.

Note: None of the piservice views require authentication. We could probably set that up and tie it in to the student registrations and the station registrations, or leave that for next year.

Just as a reminder, the student stuff should all be reachable from http://<ms>/hsdc/test/.

@jaron42 You should probably update your outward-facing MS with this ASAP.