1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

24 commits

Author SHA1 Message Date
Wesley Beary
8992b32d40 Merge pull request #905 from jherdman/remove-more-warnings
Remove more warnings
2012-05-28 09:42:06 -07:00
James Herdman
b0a7473f5b Remove unnecessary full path usage with require
'fog/core' is already in the load path. No need to go to these extents.
2012-05-26 11:27:22 -04:00
mattray
14811a15cc catch passing an invalid openstack_tenant 2012-05-25 23:17:02 -05:00
Nelvin Driz
9e3716026c [openstack] Ensure password sent is of type string
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-05-16 16:11:09 +08:00
Nelvin Driz
8fdf7a8385 [openstack] Raise error when no tenant is found for the user logging in
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-05-16 14:27:56 +08:00
Sergio Rubio
ceaa1daab1 [openstack|compute] authenticate_v2 fixes
* Add connection_options to Fog::Connection when
authenticating so we can disable SSL cert verification for example.
* Do not use hardcoded keystone 5000 port

Sample code:

    conn = Fog::Compute.new({
      :provider => 'OpenStack',
      :openstack_api_key => "changeme",
      :openstack_username => "user@bvox.net",
      :openstack_auth_url => "https://auth-server/v2.0/tokens",
      :connection_options => { :ssl_verify_peer => false }
    })
2012-05-04 13:46:03 +02:00
Nelvin Driz
530d860a04 [openstack] Fix Authentication as well as Fog::JSON call bugs
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-04-30 10:35:03 +08:00
Nelvin Driz
7b46964770 [openstack] Make current_user and current_token accessible to services
- This is for users with no permission to access keystone admin API

Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-04-30 10:35:03 +08:00
Nelvin Driz
aa79bf47fc [openstack] Fix authentication without specifying tenant name
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-04-30 10:35:03 +08:00
Nelvin Driz
9a0a5f2da2 [openstack|image] Update Image Service Authentication Options
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-04-30 10:35:01 +08:00
Nelvin Driz
ae66ab45d7 [openstack] Update Authentication through X-Auth-Token 2012-04-30 10:35:01 +08:00
Alfonso Juan Dillera
4b3cb2a984 [openstack|identity] Added current user id 2012-04-30 10:35:00 +08:00
Nelvin Driz
9bfdf11dcf [openstack|identity] Fix Identity Authentication Conditions on Endpoint
Detection
2012-04-30 10:35:00 +08:00
Philip Mark Deazeta
df3c374e33 [openstack] Modify authentication process 2012-04-30 10:35:00 +08:00
Nelvin Driz
42d2cb94ec [openstack|identity] Update Tenants (Complete CRUD) 2012-04-30 10:34:59 +08:00
Nelvin Driz
e1c5155a34 [openstack|identity] Update Tenants 2012-04-30 10:34:58 +08:00
Nelvin Driz
3e43a571e0 [openstack|identity] Fix Authentication Implementation 2012-04-30 10:34:58 +08:00
Nelvin Driz
7cf6031c81 [openstack|compute] Add Tenants and Fix Authentication Implementation
Fixed typorgraphical errors. Authentication assumes or does not require
certain parameters that is actually needed depending on the setup or
scenario. Opted to simply make it detect it if not specified to make it
easier for first time users to use.

Conflicts:

	lib/fog/openstack.rb
2012-04-30 10:34:58 +08:00
Hunter Nield
330c28c5a8 [openstack|identity] Rough implementation of the Keystone API (untested)
Updated Openstack to handle other endpoints
2012-04-30 10:34:58 +08:00
Kevin Menard
dcefc2d7de Fixed #875: Loosen multi_json version. 2012-04-25 10:31:28 -04:00
Steve Smith
d89dd56fe7 Use MultiJSON #dump and #load rather than #encode and #decode
MultiJSON deprecated these methods in 1.3.0 in favour of the new ones.
This requires an update to the gemspec to ensure ~>1.3
2012-04-20 13:09:14 +01:00
Todd Willey
564b6884af [Compute|OpenStack] match auth response to stable/diablo branch of keystone
This may require more tweaks for Essex, or when Keystone Light lands.

I also believe v1.0 auth may be broken by not sending back the
X-Server-Management-Url header.
2012-02-10 17:19:08 +00:00
Todd Willey
e3d4f3336c [OpenStack|compute] fix v2.0 auth endpoints
This fixes how paths and regexps work for less common cases (eg: having
and auth endpoint that is /v2.0/tokens.json).

Serialization to/from json and setting content-type header are added.

No longer silently converts nova api endpoints to 1.1, but errors instead.  You
should be using keystone's service catalog in conjunction with
@openstack_compute_service_name.
2011-10-11 16:59:12 -04:00
Dan Prince
41f09986f4 Implement fog support for the Openstack Compute API v1.1. Includes
support for legacy v1.0 style auth and v2.0 keystone auth.
2011-09-26 02:51:45 -04:00