From aea957ebccb9f9186ec938bdb2e088ece09398b0 Mon Sep 17 00:00:00 2001 From: termie Date: Mon, 23 May 2011 16:13:40 -0700 Subject: keep nova_auth_token in keystone --- docs/nova-api-paste.ini | 4 ++-- keystone/auth_protocols/nova_auth_token.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/nova-api-paste.ini b/docs/nova-api-paste.ini index e1c26a24..9786346c 100644 --- a/docs/nova-api-paste.ini +++ b/docs/nova-api-paste.ini @@ -83,7 +83,7 @@ paste.filter_factory = nova.api.openstack:FaultWrapper.factory paste.filter_factory = nova.api.openstack.auth:AuthMiddleware.factory [filter:tokenauth] -paste.filter_factory = nova.auth.nova_auth_token:filter_factory +paste.filter_factory = keystone.auth_protocols.nova_auth_token:filter_factory service_protocol = http service_host = 127.0.0.1 service_port = 808 @@ -93,7 +93,7 @@ auth_protocol = http admin_token = 999888777666 [filter:auth_shim] -paste.filter_factory = nova.auth.nova_auth_token:KeystoneAuthShim.factory +paste.filter_factory = keystone.auth_protocols.nova_auth_token:KeystoneAuthShim.factory [filter:ratelimit] paste.filter_factory = nova.api.openstack.limits:RateLimitingMiddleware.factory diff --git a/keystone/auth_protocols/nova_auth_token.py b/keystone/auth_protocols/nova_auth_token.py index 8dcaa25b..5d930d5d 100644 --- a/keystone/auth_protocols/nova_auth_token.py +++ b/keystone/auth_protocols/nova_auth_token.py @@ -54,7 +54,6 @@ HTTP_X_AUTHORIZATION: the client identity being passed in """ -from bufferedhttp import http_connect_raw as http_connect import eventlet import httplib import json @@ -72,6 +71,8 @@ import webob.dec from webob.exc import HTTPUnauthorized, HTTPUseProxy from webob.exc import Request, Response +from keystone.common.bufferedhttp import http_connect_raw as http_connect + FLAGS = flags.FLAGS PROTOCOL_NAME = "Token Authentication" -- cgit From f253a1b38d878db5d6e95797302b25bfaa283b23 Mon Sep 17 00:00:00 2001 From: termie Date: Mon, 23 May 2011 16:40:27 -0700 Subject: update readme --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index aefd2e61..4b4f6c37 100644 --- a/README.md +++ b/README.md @@ -159,11 +159,10 @@ Initial support for using keystone as nova's identity component has been started bzr clone lp:nova git clone git://github.com/khussein/keystone.git - # copy keystone librarys into nova - cp keystone/keystone/common/bufferedhttp.py nova/nova/auth/ - cp keystone/keystone/auth_protocols/nova_auth_token.py nova/nova/auth/ + # link keystone into the nova root dir + ln -s keystone nova/keystone - # copy paste config to use nova_auth_token.py - cp keystone/docs/nova-api-paste.ini nova/etc/nova/api-paste.ini + # run nova-api based on the paste config in keystone + nova/bin/nova-api --api_paste_config=keystone/docs/nova-api-paste.ini Assuming you added the test_sql, you can then use joeuser/secrete -- cgit