summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-03-20 23:59:16 +0000
committerGerrit Code Review <review@openstack.org>2012-03-20 23:59:16 +0000
commit885f8d5950f8441e857d860b4e1cd4fd996440cd (patch)
treeb6abcfe81c595833296781946616da9477ff36a9
parentd61aedaf868d984f1c317a73b362a2e7a366ef89 (diff)
parent94904e45e3276e1c274a25c785c0143cd6d6fec1 (diff)
downloadkeystone-885f8d5950f8441e857d860b4e1cd4fd996440cd.tar.gz
keystone-885f8d5950f8441e857d860b4e1cd4fd996440cd.tar.xz
keystone-885f8d5950f8441e857d860b4e1cd4fd996440cd.zip
Merge "Rename tokenauth to authtoken."
-rw-r--r--doc/source/configuringservices.rst10
-rw-r--r--keystone/middleware/swift_auth.py9
2 files changed, 12 insertions, 7 deletions
diff --git a/doc/source/configuringservices.rst b/doc/source/configuringservices.rst
index b8911570..8cd5eb80 100644
--- a/doc/source/configuringservices.rst
+++ b/doc/source/configuringservices.rst
@@ -133,7 +133,7 @@ rather than it's built in 'tempauth'.
user = <user>
[pipeline:main]
- pipeline = catch_errors healthcheck cache tokenauth keystone proxy-server
+ pipeline = catch_errors healthcheck cache authtoken keystone proxy-server
[app:proxy-server]
use = egg:swift#proxy
@@ -143,7 +143,7 @@ rather than it's built in 'tempauth'.
paste.filter_factory = keystone.middleware.swift_auth:filter_factory
operator_roles = admin, swiftoperator
- [filter:tokenauth]
+ [filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
service_port = 5000
service_host = 127.0.0.1
@@ -196,7 +196,7 @@ S3 api.
user = <user>
[pipeline:main]
- pipeline = catch_errors healthcheck cache swift3 s3token tokenauth keystone proxy-server
+ pipeline = catch_errors healthcheck cache swift3 s3token authtoken keystone proxy-server
[app:proxy-server]
use = egg:swift#proxy
@@ -227,7 +227,7 @@ S3 api.
auth_token = ADMIN
admin_token = ADMIN
- [filter:tokenauth]
+ [filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
service_port = 5000
service_host = 127.0.0.1
@@ -267,7 +267,7 @@ still valid.
Here is an example paste config filter that makes use of the 'admin_user' and
'admin_password' parameters::
- [filter:tokenauth]
+ [filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
service_port = 5000
service_host = 127.0.0.1
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::