summaryrefslogtreecommitdiff
path: root/keystoneclient/auth/identity/generic
diff options
context:
space:
mode:
Diffstat (limited to 'keystoneclient/auth/identity/generic')
-rw-r--r--keystoneclient/auth/identity/generic/cli.py1
-rw-r--r--keystoneclient/auth/identity/generic/password.py2
-rw-r--r--keystoneclient/auth/identity/generic/token.py2
3 files changed, 3 insertions, 2 deletions
diff --git a/keystoneclient/auth/identity/generic/cli.py b/keystoneclient/auth/identity/generic/cli.py
index c493850..212e9b7 100644
--- a/keystoneclient/auth/identity/generic/cli.py
+++ b/keystoneclient/auth/identity/generic/cli.py
@@ -38,6 +38,7 @@ class DefaultCLI(password.Password):
options.extend([cfg.StrOpt('endpoint',
help='A URL to use instead of a catalog'),
cfg.StrOpt('token',
+ secret=True,
help='Always use the specified token')])
return options
diff --git a/keystoneclient/auth/identity/generic/password.py b/keystoneclient/auth/identity/generic/password.py
index 3c4180c..3527b19 100644
--- a/keystoneclient/auth/identity/generic/password.py
+++ b/keystoneclient/auth/identity/generic/password.py
@@ -30,7 +30,7 @@ def get_options():
deprecated_name='user-name'),
cfg.StrOpt('user-domain-id', help="User's domain id"),
cfg.StrOpt('user-domain-name', help="User's domain name"),
- cfg.StrOpt('password', help="User's password"),
+ cfg.StrOpt('password', secret=True, help="User's password"),
]
diff --git a/keystoneclient/auth/identity/generic/token.py b/keystoneclient/auth/identity/generic/token.py
index 0fbacf0..6a5d15b 100644
--- a/keystoneclient/auth/identity/generic/token.py
+++ b/keystoneclient/auth/identity/generic/token.py
@@ -24,7 +24,7 @@ LOG = logging.getLogger(__name__)
def get_options():
return [
- cfg.StrOpt('token', help='Token to authenticate with'),
+ cfg.StrOpt('token', secret=True, help='Token to authenticate with'),
]