Ask Your Question
0

How to configure swift conatiner, so that it can be used without auth token openstack

asked 2015-01-21 22:22:47 -0600

I have defined the swift container and here is the list

bash $ swift -A http://127.0.0.1:8080/auth/v1.0/ -U myaccount:me -K secretpassword list
mycontainer
mycontainer1
test1

In order to Access these container what i need to pass is the AUTH_TOEKN & STORAGE_URL similar to this

curl -X GET -H "X-Auth-Token: AUTH_tkd5bdbf9af4eb418a82f03202dd7d1765" "http://127.0.0.1:8080/v1/AUTH_myaccount?format=json"

How to configured these swift container, without any AUTH_TOKEN, by saying this how to use these container, to read and write without any AUTH_TOKEN involved

I'm trying to integrate a legacy application, where the files can directly upload to the swift without any code changes, the legacy app is capable of sending REST API

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-22 00:47:59 -0600

This may work for you as it doesn't require an auth token to upload objects to a specific container.

"FormPost is designed to allow web browsers to upload files directly into Object Storage by using signature-based authentication. In effect a browser form post becomes a regular Object Storage object PUT".

http://docs.openstack.org/api/opensta...

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

1 follower

Stats

Asked: 2015-01-21 22:22:47 -0600

Seen: 224 times

Last updated: Jan 22 '15