From 94904e45e3276e1c274a25c785c0143cd6d6fec1 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Tue, 20 Mar 2012 17:08:46 +0000 Subject: Rename tokenauth to authtoken. - Avoid confusing by using the authtoken name for auth_token middleware. - Improve swift_auth middleware doc. Change-Id: I287860eba067b99a1d89f8f17200820340836ff9 --- keystone/middleware/swift_auth.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'keystone') diff --git a/keystone/middleware/swift_auth.py b/keystone/middleware/swift_auth.py index 9bb38597..23578723 100644 --- a/keystone/middleware/swift_auth.py +++ b/keystone/middleware/swift_auth.py @@ -38,10 +38,15 @@ from swift.common.middleware import acl as swift_acl class SwiftAuth(object): """Swift middleware to Keystone authorization system. - In Swift's proxy-server.conf add the middleware to your pipeline:: + In Swift's proxy-server.conf add this middleware to your pipeline:: [pipeline:main] - pipeline = catch_errors cache tokenauth swiftauth proxy-server + pipeline = catch_errors cache authtoken swiftauth proxy-server + + Make sure you have the authtoken middleware before the swiftauth + middleware. The authtoken will take care of validating the user + and swiftauth middleware will authorize it. See the documentation + about how to configure the authtoken middleware. Set account auto creation to true:: -- cgit