本文地址:http://blog.csdn.net/spch2008/article/details/9383315
quantum端采用的身份验证。
/etc/quantum/api-paste.ini中
[filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
auth_host = 172.16.4.1
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = quantum
admin_password = quantum
这里配置了验证信息,以及采用的验证函数。
验证采用的是keystone.middleware.auth_token的filter_factory函数。
def filter_factory(global_conf, **local_conf):
"""Returns a WSGI filter app for use with paste.deploy."""
conf = global_conf.copy()
conf.update(local_conf)
def auth_filter(app):
return AuthProtocol(app,