@@ -712,9 +712,40 @@ def catalog_index_connections(self, connection_names=[], all_connections=False,
712712 ########################################################
713713
714714 def get_auth_info (self , with_secrets = False ):
715+ """
716+ Returns various information about the user currently authenticated using
717+ this instance of the API client.
718+
719+ This method returns a dict that may contain the following keys (may also contain others):
720+
721+ * authIdentifier: login for a user, id for an API key
722+ * groups: list of group names (if context is an user)
723+ * secrets: list of dicts containing user secrets (if context is an user)
724+
725+ :param: with_secrets boolean: Return user secrets
726+ :returns: a dict
727+ :rtype: dict
728+ """
715729 return self ._perform_json ("GET" , "/auth/info" , params = {"withSecrets" : with_secrets })
716730
717731 def get_auth_info_from_browser_headers (self , headers_dict , with_secrets = False ):
732+ """
733+ Returns various information about the DSS user authenticated by the dictionary of
734+ HTTP headers provided in headers_dict.
735+
736+ This is generally only used in webapp backends
737+
738+ This method returns a dict that may contain the following keys (may also contain others):
739+
740+ * authIdentifier: login for a user, id for an API key
741+ * groups: list of group names (if context is an user)
742+ * secrets: list of dicts containing user secrets (if context is an user)
743+
744+ :param: headers_dict dict: Dictionary of HTTP headers
745+ :param: with_secrets boolean: Return user secrets
746+ :returns: a dict
747+ :rtype: dict
748+ """
718749 return self ._perform_json ("POST" , "/auth/info-from-browser-headers" ,
719750 params = {"withSecrets" : with_secrets }, body = headers_dict )
720751
0 commit comments