aeolus-incubator / tim

Web application for managing virtual images to be deployed in the cloud
www.aeolusproject.org
MIT License
3 stars 6 forks source link

ImageFactory OAuth request support #99

Closed mtaylor closed 11 years ago

mtaylor commented 11 years ago

https://github.com/aeolus-incubator/tim/issues/95

Adds in the ability to use 2 Legged OAuth for securing requests to imagefactory.

To test. Simply turn on OAuth when running factory (i.e. Do no include --no_oauth). The Factory default settings are:

consumer_key: "mock-key" consumer_secret: "mock-secret"

Add the appropriate configuration in the Tim initializer. A default configuration is already present in the initializer and commented out.

jguiditta commented 11 years ago

Even though this says 'safe to merge', you appear to have the Gemfile.lock here, which I have removed on master, so it may actually need a rebase

jguiditta commented 11 years ago

Those minor comments aside, this wfm. I turned on oauth in the dummy app and factory, did a get against base_images, which the factory docs say is oauth secured, and got back a successful response. Tests also pass.