diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-10-04 11:27:36 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-10-04 11:27:36 -0300 |
commit | f53f40ba3b54bb8fdc418bf35d0180e26fbfd209 (patch) | |
tree | 2f90b6f75bcbde21a5e84e437a5f46f409b7565f /client/src/leap/soledad/client/auth.py | |
parent | 8f8fe5483d95a3cb3a340c24de419c3b410bfa8f (diff) | |
parent | 33f2b3373ae1c2ceb040fc8cc6504462976e8d8c (diff) |
Merge branch 'release-0.4.1'0.4.1
Diffstat (limited to 'client/src/leap/soledad/client/auth.py')
-rw-r--r-- | client/src/leap/soledad/client/auth.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/client/src/leap/soledad/client/auth.py b/client/src/leap/soledad/client/auth.py index 3cd6dabe..d85e3ba6 100644 --- a/client/src/leap/soledad/client/auth.py +++ b/client/src/leap/soledad/client/auth.py @@ -37,10 +37,10 @@ class TokenBasedAuth(object): """ Store given credentials so we can sign the request later. - @param uuid: The user's uuid. - @type uuid: str - @param token: The authentication token. - @type token: str + :param uuid: The user's uuid. + :type uuid: str + :param token: The authentication token. + :type token: str """ self._creds = {'token': (uuid, token)} @@ -51,15 +51,15 @@ class TokenBasedAuth(object): [('Authorization', 'Token <base64 encoded creds')] - @param method: The HTTP method. - @type method: str - @param url_query: The URL query string. - @type url_query: str - @param params: A list with encoded query parameters. - @type param: list + :param method: The HTTP method. + :type method: str + :param url_query: The URL query string. + :type url_query: str + :param params: A list with encoded query parameters. + :type param: list - @return: The Authorization header. - @rtype: list of tuple + :return: The Authorization header. + :rtype: list of tuple """ if 'token' in self._creds: uuid, token = self._creds['token'] |