deluge.ui.web.auth

class deluge.ui.web.auth.Auth

The component that implements authentification into the JSON interface.

change_password(old_password, new_password)

Change the password.

Parameters:
  • old_password (string) – the current password
  • new_password (string) – the password to change to
check_request(request, method=None, level=None)

Check to ensure that a request is authorised to call the specified method of authentication level.

Parameters:
  • request (twisted.web.http.Request) – The HTTP request in question
  • method (function) – Check the specified method
  • level (integer) – Check the specified auth level
Raises:

Exception

check_session(session_id=None)

Check a session to see if it’s still valid.

Returns:True if the session is valid, False if not.
Return type:booleon
delete_session()

Removes a session.

Parameter:session_id (string) – the id for the session to remove
login(password)

Test a password to see if it’s valid.

Parameter:password (string) – the password to test
Returns:a session id or False
Return type:string or False
exception deluge.ui.web.auth.AuthError
An exception that might be raised when checking a request for authentication.
deluge.ui.web.auth.get_session_id(session_id)
Checks a session id against its checksum

Previous topic

deluge.ui.gtkui.torrentview

Next topic

deluge.ui.web.common

This Page