Acquire.Identity._loginsession module¶
-
class
LoginSession(public_key=None, public_cert=None, ip_addr=None, hostname=None, login_message=None)[source]¶ Bases:
objectThis class holds all details of a single login session
-
hours_since_creation()[source]¶ Return the number of hours since this request was created. This will return a float, so 1 second is 1 / 3600th of an hour
-
login_time()[source]¶ Return the date and time when the user logged in. This returns None if the user has not yet logged in
-
logout_time()[source]¶ Return the date and time when the user logged out. This returns None if the user has not yet logged out
-
request_source()[source]¶ Return the IP address of the source of this request. This is used to rate limit someone who is maliciously requesting logins…
-
set_suspicious()[source]¶ Put this login session into a suspicious state. This will be because weird activity has been detected which indicates that the session may be have been cracked. A login session in a suspicious state should not be granted any permissions.
-