The cinder.volume.drivers.coprhd.helpers.authentication
Module¶
-
class
Authentication
(ipaddr, port)¶ Bases:
cinder.volume.drivers.coprhd.helpers.commoncoprhdapi.CoprHDResource
-
HEADERS
= {'X-EMC-REST-CLIENT': 'TRUE', 'Content-Type': 'application/json', 'ACCEPT': 'application/json'}¶
-
URI_AUTHENTICATION
= '/login'¶
-
URI_SERVICES_BASE
= ''¶
-
authenticate_user
(username, password)¶ Makes REST API call to generate the authentication token.
Authentication token is generated for the specified user after validation
Parameters: - username – Name of the user
- password – Password for the user
Returns: The authtoken
-
extract_error_detail
(login_response)¶
-