rbtools.utils.users¶
Utilities for working with user sessions.
Functions
|
Return an authenticated session. |
|
Return the user resource for the current session. |
|
Return the username for the current session. |
- rbtools.utils.users.get_authenticated_session(api_client, api_root, auth_required=False, session=None, num_retries=3)[source]¶
Return an authenticated session.
None will be returned if the user is not authenticated, unless the ‘auth_required’ parameter is True, in which case the user will be prompted to login.