Class to manage the current connected user
Use to set and get the user in a session
Functions
check_is_admin @classmethod
check_is_sysuser @classmethod
get_and_check_current_user @classmethod
Get the user in the current session, throw an exception if the user does not exists
Return type :
User
get_current_user @classmethod
Get the user in the current session, return none if the user is not authenticated
Return type :
Optional
get_current_user_theme @classmethod
Return type :
FrontTheme
is_streamlit_context @classmethod
Return type :
bool
set_current_user @classmethod
Set the user in the current session
user :
User
set_streamlit_context @classmethod
user_is_authenticated @classmethod
Check if the user is authenticated
Return type :
bool