Commit Graph

17 Commits

Author SHA1 Message Date
Davanum Srinivas ce3bd97613 Sanitize the package names
* All files in the same directory should belong to
  the same package
* Avoid xyz/xyz_v123 format (example volume/volume_v2)
* Added a doc.go so we can support a different import
  path later:
    https://golang.org/doc/go1.4#canonicalimports
* Drop the trailing ".git" in the imports

Change-Id: If4a880c62a2142f7015ed693e07af239bbbcf8e5
2017-03-07 13:39:59 -05:00
Dean Troyer d38d3def62 Clean up source with go fmt
Change-Id: Iaa5382f2fd35764ba7e795c5ae8e5b9b780eac31
2016-12-14 18:30:42 -06:00
wujian 301e6d4cb8 Authorization failed with project id
The keystone response 401 unauthorised ERROR when
use Project ID to get token.

Change-Id: I4f9b361d93127ae8fd6d44d45420095726c288b4
Closes-Bug: #1625967
2016-09-21 16:19:44 +08:00
Fangzhou Xu 784256a823 fix AccessToken struct -> User json Unmarshal
Change-Id: I4e07da36a46285c68c94ee2857a9e8f85b161e92
2016-09-01 17:15:05 -07:00
Dean Troyer c803f9803f Use Session for auth
Change-Id: Ie1fae2b7aec29a8020393b32a92d71e87c2b55fe
2016-05-05 13:15:40 -05:00
Jenkins 58c3787968 Merge "Separate service catalog to prepare for v3" 2016-05-05 18:02:11 +00:00
Dean Troyer 753c52bf33 Separate service catalog to prepare for v3
* Move service catalog bits to openstack/service-catalog.go
* Add AuthRef.GetProject()
* Add sanity check to 00-authntication

Change-Id: I45b24a222527cd0117401146fe788ca6ba414980
2016-05-05 12:37:06 -05:00
Dean Troyer 4141ca3ed3 Actually encode JSON in RequestJSON90
Change-Id: I1e56927d3c100be1b59f00aaabd705bc3c38cd7b
2016-05-05 10:38:43 -05:00
Dean Troyer e7fceb0b4d Add Session.RequestJSON(), Session.GetJSON() and Session.PostJSON()
Change-Id: Iba573c8bb1cdfdd42b1c51dd997343937eb29a1b
2016-05-05 09:32:04 -05:00
arkxu 657e32bbd4 add keystone middleware for token validation
Change-Id: If3478342eaafbb61e6f99841d4930b9858dd23ac
2016-05-04 19:56:01 -07:00
arkxu 16ac1f84b2 failure fast if not 200 when authenticating
Change-Id: Ibe1c38f632d1f0155830f00354de2135ee5aceb6
2016-04-25 15:56:57 -07:00
arkxu 452642dade fix the session_test
It was broken.

Change-Id: I03a51a6cc30c3bcc6d6ae778973b7fe374fe3272
2016-04-23 00:04:50 -07:00
Fangzhou Xu 1bc5f497bb change from stackforge to openstack
Change-Id: I232a8c125d1b1c5de30df47a255c294afb1b9b64
2016-04-21 20:08:28 -07:00
Dean Troyer 9de84b3c5d Add auth package
Includes AuthOpts struct and AuthRef interface, plus an Identity v2
password auth implementation.

Note: the examples work, the objectstore_test is broken, will be fixed
along with additional session and auth tests.

Change-Id: I77b07c92586c37e855b466e18dea133a4a938aaa
2015-04-19 16:44:51 -05:00
Dean Troyer ef7386d2c4 Rename session package to openstack
Change-Id: I711c4190836b98d415d6cbe85d6f28e05537013f
2015-04-18 01:33:32 -05:00
Dean Troyer a279956280 Add Session as base REST interface
This is the initial implementation of a Session object that handles
the REST calls similar to the new Session in python-keystoneclient.
It will be expanded to utilize a callback to an appropriate authentication
handler to re-authenticate as required.

This is intended to replace CallAPI in the util/util package.

Change-Id: I585968cc584327427da3429ef7005dd909c8b8b0
2015-04-18 01:24:46 -05:00
Dean Troyer 124ac5cc92 Docs revision for current status
* Update README to add a note about the reorg in progress
* Rename misc to uitl
* Add openstack directory

Change-Id: I3f318116b1406fa862715236cc9001dea0f9231c
2015-04-18 01:24:36 -05:00