Ask Your Question
0

Does cloud user interact with proxy or auth server to get x-auth-token?

asked 2010-07-22 20:23:21 -0500

tpatil gravatar image

Prerequisite: proxy, account, auth, container and object servers are running either on the same machine or different machines.

My understanding is that cloud user can interact only with the proxy server for uploading/downloading objects. Proxy server authenticates every request (DevAuthMiddleware) before it is passed to the appropriate controller (ObjectController/ContainerController) and for authentication to be successful you need a valid x_auth_token which is issued only by the auth server.

Does that mean cloud user has to send an auth request first to the auth server to get the x_auth_token? And then send request to the proxy server using the x_auth_token in the HTTP header of the request to upload/download files.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2010-07-23 22:34:08 -0500

cthier gravatar image

That is correct. The dev auth server mimics how Rackspace does auth which is a separate service from Swift, which requires the user to auth against the auth server to get the token, and then send the token to swift with each request.

If you wish to implement your own auth, that can be done by replacing the wsgi middleware with new middleware that works with whatever auth system you would like to use.

edit flag offensive delete link more
0

answered 2010-07-23 22:52:48 -0500

tpatil gravatar image

Thank you for the clarification.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2010-07-22 20:23:21 -0500

Seen: 111 times

Last updated: Jul 23 '10