Example #1
0
 def keystone_v3_endpoint(self):
     if self.auth_url:
         return self.auth_url.replace('v2.0', 'v3')
     else:
         auth_uri = endpoint_utils.get_auth_uri()
         if auth_uri:
             return auth_uri
         else:
             LOG.error('Keystone API endpoint not provided. Set '
                       'auth_uri in section [clients_keystone] '
                       'of the configuration file.')
             raise exception.AuthorizationFailure()
Example #2
0
 def keystone_v3_endpoint(self):
     if self.auth_url:
         return self.auth_url.replace('v2.0', 'v3')
     else:
         auth_uri = endpoint_utils.get_auth_uri()
         if auth_uri:
             return auth_uri
         else:
             LOG.error('Keystone API endpoint not provided. Set '
                       'auth_uri in section [clients_keystone] '
                       'of the configuration file.')
             raise exception.AuthorizationFailure()
Example #3
0
 def _conf_get_auth_uri(self):
     auth_uri = self._conf_get('auth_uri')
     if auth_uri:
         return auth_uri.replace('v2.0', 'v3')
     else:
         return endpoint_utils.get_auth_uri()
Example #4
0
 def _conf_get_auth_uri(self):
     auth_uri = self._conf_get('auth_uri')
     if auth_uri:
         return auth_uri.replace('v2.0', 'v3')
     else:
         return endpoint_utils.get_auth_uri()
Example #5
0
 def _get_auth_url(self):
     if "auth_uri" in self.conf:
         return self.conf["auth_uri"]
     else:
         return endpoint_utils.get_auth_uri(v3=False)
Example #6
0
 def _get_auth_url(self):
     if 'auth_uri' in self.conf:
         return self.conf['auth_uri']
     else:
         return endpoint_utils.get_auth_uri(v3=False)
Example #7
0
 def _conf_get_auth_uri(self):
     auth_uri = self._conf_get("auth_uri")
     if auth_uri:
         return auth_uri.replace("v2.0", "v3")
     else:
         return endpoint_utils.get_auth_uri()
Example #8
0
 def _get_auth_url(self):
     if 'auth_uri' in self.conf:
         return self.conf['auth_uri']
     else:
         return endpoint_utils.get_auth_uri(v3=False)