summaryrefslogtreecommitdiff
path: root/keystoneclient/utils.py
diff options
context:
space:
mode:
authorJamie Lennox <jamielennox@gmail.com>2016-08-24 18:56:23 +1000
committerJamie Lennox <jamielennox@gmail.com>2016-08-24 18:56:23 +1000
commit5242c2371b145bb88c467168b8e027ff38693706 (patch)
treef8fe7975235234a1a58585672250110377280e25 /keystoneclient/utils.py
parent39373aa40b085c3277fe393de0f638f12ac16d53 (diff)
downloadpython-keystoneclient-5242c2371b145bb88c467168b8e027ff38693706.tar.gz
Remove unauthenticated functions
These were used by the shell which has since been removed. Change-Id: If329da4499b76799356e79099f86a4afdebb00ce
Diffstat (limited to 'keystoneclient/utils.py')
-rw-r--r--keystoneclient/utils.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py
index 7030f51..ae0d45b 100644
--- a/keystoneclient/utils.py
+++ b/keystoneclient/utils.py
@@ -52,30 +52,6 @@ def find_resource(manager, name_or_id):
raise exceptions.CommandError(msg)
-def unauthenticated(f):
- """Add 'unauthenticated' attribute to decorated function.
-
- Usage::
-
- @unauthenticated
- def mymethod(f):
- ...
- """
- f.unauthenticated = True
- return f
-
-
-def isunauthenticated(f):
- """Check if function requires authentication.
-
- Checks to see if the function is marked as not requiring authentication
- with the @unauthenticated decorator.
-
- Returns True if decorator is set to True, False otherwise.
- """
- return getattr(f, 'unauthenticated', False)
-
-
def hash_signed_token(signed_text, mode='md5'):
hash_ = hashlib.new(mode)
hash_.update(signed_text)