Home > wq.db (REST API) > Authentication

Authentication

wq.db.rest.auth

wq.db’s REST API provides a simple authentication service powered by Django’s auth module. When wq.db.rest.auth is included in your INSTALLED_APPS, the following URLs will be registered with the router.

url purpose
/login Displays a form for entering username and password. Uses the Login view.
/login.json Used by @wq/app to submit and/or verify login information. A successful login will return the user information as well as a user-specific wq configuration object.
/logout Logs out the user and displays a success message. Uses the Logout view.
/logout.json Used by @wq/app to log out the user via AJAX.