caterva2.api_utils.get_auth_cookie#
- caterva2.api_utils.get_auth_cookie(urlbase, user_auth, server=None)#
Authenticate to a subscriber as a user and get an authorization cookie.
Authentication fields will usually be
username
andpassword
.- Parameters:
- Returns:
An authentication token that may be used as a cookie in further requests to the subscriber.
- Return type:
str