When delete the piece code of project_id checking in wsgi.py, my "openstack volume create" and "openstack volume list" all completed successfully. I suggest we may need handle both keystone v2 and v3 authentication well. Here is the print of request.environ in wsgi.py for reference.
When delete the piece code of project_id checking in wsgi.py, my "openstack volume create" and "openstack volume list" all completed successfully. I suggest we may need handle both keystone v2 and v3 authentication well. Here is the print of request.environ in wsgi.py for reference.
HTTP_X_ TENANT_ NAME': None afa926d8b905478 ff85' AUTH_TOKEN' : '9902e483ac944b 99836cd9592dbe0 cdb' DOMAIN_ NAME': u'Default' PROJECT_ DOMAIN_ ID': None PROJECT_ DOMAIN_ NAME': None USER_DOMAIN_ NAME': u'Default' USER_DOMAIN_ ID': u'default' PROJECT_ NAME': None PROJECT_ ID': None
'HTTP_X_ROLE': u'admin'
'HTTP_X_USER_ID': u'e3b7f7511f234
'HTTP_X_
'HTTP_X_
'HTTP_X_DOMAIN_ID': u'default'
'HTTP_X_
'HTTP_X_TENANT_ID': None
'HTTP_X_
'HTTP_X_
'HTTP_X_TENANT': None
'HTTP_X_USER': u'admin'
'HTTP_X_
'HTTP_X_
'HTTP_X_
'HTTP_X_USER_NAME': u'admin'