128 Commits

Author SHA1 Message Date
Jenkins
7439c45e46 Merge "Adjust import items according to hacking import rule" 2014-01-30 11:11:31 +00:00
Eric Guo
ee3c9c4673 Fix typos in documents and comments
Fix typos detected by toolkit misspellings.

* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: Ifbbc29537d9d129aad238de6c37718c4fbb8349b
2014-01-23 16:30:19 +08:00
Eric Guo
252b6e423d Adjust import items according to hacking import rule
This patch adjust import items and add missing blank lines acording
to http://docs.openstack.org/developer/hacking/#imports
{{stdlib imports in human alphabetical order}}
\n
{{third-party lib imports in human alphabetical order}}
\n
{{project imports in human alphabetical order}}
\n
\n
{{begin your code}}

hacking project also enforce some checks for import group.
Let make the change in keytoneclient

Change-Id: Ic83bd5ee426905588f4a2d555851a9a01fc69f02
2014-01-17 23:21:38 +08:00
Jenkins
4ae3a64c36 Merge "Documents keystone v3 API usage - part 1" 2014-01-11 18:59:24 +00:00
Jenkins
f942df2f5f Merge "Rename using-api.rst to using-api-v2.rst" 2014-01-10 01:38:29 +00:00
Florent Flament
eab4ce1ca8 Rename using-api.rst to using-api-v2.rst
Renaming file for consistency, since using-api-v3.rst is being written
there: https://review.openstack.org/#/c/63408

Minor changes have been made to indicate that the file documents the
keystone v2 API.

Change-Id: I694b658a8b59d21615af5d88edc0f7b394ebbe7b
Partial-Bug: #1260527
2014-01-06 22:34:14 +00:00
Florent Flament
1e7481c92c Documents keystone v3 API usage - part 1
docs/source/using-api.rst documents how to use the V2 API. This patch
starts the equivalent documentation (using-api-v3.rst) about how to
use Keystone v3 API. Introduction and Authentication sections have
been written.

Change-Id: I5a2d45d80ba712492717a75ac5901f5ca775daa4
Partial-Bug: #1260527
2013-12-31 12:12:46 +01:00
Emilien Macchi
6fa2a97c41 Rename tokenauth to authtoken in the doc
Change-Id: Iedacd3ac76999570d5507953b9665948a3e3888f
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
2013-12-06 15:01:02 +01:00
guang-yee
a97b293501 Opt-out of service catalog
Introducing a config option 'include_service_catalog' to indicate whether
service catalog is needed. If the 'include_service_catalog' option is set to
False, middleware will not ask for service catalog on token validation and will
not set the X-Service-Catalog header.

This option is backward compatible as it is default to True.

DocImpact
Fixed bug 1228317

Change-Id: Id8c410a7ae0443ac425d20cb9c6a24ee5bb2cb8d
2013-11-21 22:55:48 -08:00
ZhiQiang Fan
0774d5aafa Replace OpenStack LLC with OpenStack Foundation
Some files still use trademark OpenStack LLC in header, which
should be changed to OpenStack Foundation.

NOTE: tools/install_venv.py is not touched, should sync with oslo

Change-Id: I01d4f6b64cf1a152c4e190407799ce7d53de845f
Fixes-Bug: #1214176
2013-10-17 01:19:01 +08:00
Jamie Lennox
20e166fd8a Replace HttpConnection in auth_token with Requests
Requests is becoming the standard way of doing http communication, it
also vastly simplifies adding other authentication mechanisms. Use it in
the auth_token middleware.

This adds the ability to specify a CA file that will be used to verify a
HTTPS connections or insecure to specifically ignore HTTPS validation.

SecurityImpact
DocImpact
Partial-Bug: #1188189
Change-Id: Iae94329e7abd105bf95224d28f39f4b746b9eb70
2013-09-12 12:05:17 +10:00
Chuck Short
c27800ee78 python3: Use from future import unicode_literals
use  "from future import unicode_literals" instead of u""

To the road to Python3, a possible next step would be to use the from __future__ import unicode_literals
and remove the u'' prefixes, as it is not supported in Python3.

Change-Id: Ic7afb3cf2d8dfad47b8a1626ab264f6d4f50d00e
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-08-30 02:41:49 +00:00
xingzhou
abe6781913 Change memcache config entry name in Keystone to be consistent with Oslo
Currently, Keystone-Client is using 'memcache_servers' config option to store
the memcache server info, while in OSLO project, it is using 'memcached_servers'
to config the same option. It is better to change keystone-client's
'memcache_servers' to 'memcached_servers' to keep consistent between these two
projects.

Change-Id: I93ca0aa368f95a3ccf6de6984262057e61f75ffe
Fixes: Bug 1172793
2013-06-20 01:33:56 -04:00
Bryan D. Payne
eeefb784f2 Fix memcache encryption middleware
This fixes lp1175367 and lp1175368 by redesigning the memcache crypt
middleware to not do dangerous things. It is forward compatible, but
will invalidate any existing ephemeral encrypted or signed memcache
entries.

Change-Id: Ice8724949a48bfad3b8b7c41b5f50a18a9ad9f42
Signed-off-by: Bryan D. Payne <bdpayne@acm.org>
2013-06-19 17:05:02 +02:00
Jakub Ruzicka
4f421386e1 Provide keystone CLI man page.
Resolves: bug 1185142
Implements blueprint: clients-man-pages

Provide basic but hopefully useful man page.

shell.rst was merged into and replaced by the man page in HTML docs.

Change-Id: I0a90e4638cc7e4ed9c02c5abd7d84a4079e5f50d
2013-06-13 20:49:36 +02:00
Joe Heck
b8d3788bf0 adding notes about dealing with exceptions in the client
Change-Id: I661b10414e0281bc695236bb32f985b0ef5b7600
2013-04-03 09:44:20 -07:00
Vishvananda Ishaya
6b9f55a483 Cache tokens using memorycache from oslo.
Verifying tokens accounts for a significant portion of the time taken
by the various api servers. This uses the simple memory cache from
oslo so that there is a simple default cache even if memcached is not
deployed. Also cleans up the tests and removes unnecessary fakes.

DocImpact

Change-Id: I501c14f2f51da058cb574c32d49dd769e6f6ad86
2013-03-15 09:35:24 -07:00
Chmouel Boudjnah
878695ce06 Allow configure auth_token http connect timeout.
- Fixes bug 939613.

Change-Id: Ic8cfc36e02212eeb987e509893369c0a47d9209a
2013-02-14 18:34:14 +00:00
Guang Yee
3dfb8437fc Blueprint memcache-protection: enable memcache value encryption/integrity check
DocImpact

Change-Id: I8b733256a3c2cdcf7c2ec5edac491ac4739aa847
2013-01-15 22:06:56 -08:00
Dolph Mathews
5f38eb736c Replace refs to 'Keystone API' with 'Identity API'
Formally, OpenStack Keystone implements the OpenStack Identity API, and
this is a client to the API, not to Keystone itself.

Change-Id: If568866221a29ba041f0f2cd56dc81deeb9ebc00
2012-10-24 07:21:47 -05:00
Jenkins
91d582e2ce Merge "updating base keystoneclient documentation" 2012-10-01 22:34:31 +00:00
Joe Heck
135100a2ed updating base keystoneclient documentation
* updated changelog
* described CLI authentication for admin and user
* tweaked API usage docs a bit with formatting and typos

Change-Id: I61c3aab99bb0ecbad1de6d32a767558ca1a2ab5b
2012-10-01 13:35:30 -07:00
Joe Heck
0d48d1b6ce updating keystoneclient doc theme
adding in openstack theming
enabling last update from git
removing old manual references to API, converted entirely to autodoc
updated .gitignore
fixed docstring warnings and errors

Change-Id: Id22ddc446331d52cbf56c3462d8b532fc37f64ac
2012-10-01 17:47:34 +00:00
lrqrun
de8622cd8e Fix PEP8 issues.
Fix some pep8 issues in doc/source/conf.py make the code looks pretty.

Change-Id: Ib1e2f8214ad7f4bc49c8c3dfa016843f8df15fe6
2012-08-29 13:55:32 +08:00
Dean Troyer
d7af8598ae Change underscores in new cert options to dashes
* --os_cacert -> --os-cacert
* --os_cert   -> --os-cert
* --os_key    -> --os-key

* OS_CA_CERT didn't match --os-cacert, change to OS_CACERT

Fixes bug 1040162

Change-Id: Ib03ff492b6ab2b76e54974e5436a444725615ea6
2012-08-22 11:43:43 -05:00
Liem Nguyen
abc7c47c18 Support 2-way SSL with Keystone server if it is configured to enforce
2-way SSL.  See also https://review.openstack.org/#/c/7706/ for the
corresponding review for the 2-way SSL addition to Keystone.

Change-Id: If0cb46a43d663687396d93604a7139d85a4e7114
2012-07-03 17:26:34 -04:00
Dean Troyer
1fa29109c2 Change CLI options to use dashes
Change documented options to use dashes instead of underscores
in option names.  Continue to support old underscore names for
backward compatibility for a release or two (TBD).

Blueprint: command-options

Change-Id: Ied0d325a9fdd32f80bf8c993887e1975aa6adf16
2012-06-28 15:59:27 -05:00
Clark Boylan
3ba7738323 Move docs to doc.
To better facilitate the building and publishing of sphinx
documentation by Jenkins we are moving all openstack projects with
sphinx documentation to a common doc tree structure. Documentation
goes in project/doc/source and build results go in project/doc/build.

Change-Id: I205e8bb1ddf6dae1d7392b32975319c6a6d98673
2012-06-11 13:33:02 -07:00