summaryrefslogtreecommitdiff
path: root/keystoneclient/auth/identity/v3.py
diff options
context:
space:
mode:
Diffstat (limited to 'keystoneclient/auth/identity/v3.py')
-rw-r--r--keystoneclient/auth/identity/v3.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/keystoneclient/auth/identity/v3.py b/keystoneclient/auth/identity/v3.py
index 010c80d..b385ba6 100644
--- a/keystoneclient/auth/identity/v3.py
+++ b/keystoneclient/auth/identity/v3.py
@@ -34,7 +34,8 @@ class Auth(base.BaseIdentityPlugin):
project_id=None,
project_name=None,
project_domain_id=None,
- project_domain_name=None):
+ project_domain_name=None,
+ reauthenticate=True):
"""Construct an Identity V3 Authentication Plugin.
:param string auth_url: Identity service endpoint for authentication.
@@ -46,9 +47,13 @@ class Auth(base.BaseIdentityPlugin):
:param string project_name: Project name for project scoping.
:param string project_domain_id: Project's domain ID for project.
:param string project_domain_name: Project's domain name for project.
+ :param bool reauthenticate: Allow fetching a new token if the current
+ one is going to expire.
+ (optional) default True
"""
- super(Auth, self).__init__(auth_url=auth_url)
+ super(Auth, self).__init__(auth_url=auth_url,
+ reauthenticate=reauthenticate)
self.auth_methods = auth_methods
self.trust_id = trust_id