summaryrefslogtreecommitdiff
path: root/openstackclient/identity
Commit message (Collapse)AuthorAgeFilesLines
* Use cacert values when creating identity clientJamie Lennox2014-02-261-1/+4
| | | | | | | | These were ignored when the client was created with a username and password. Change-Id: Id7557a5b07a41c7f79ab1a05ede385da31889940 Closes-Bug: #1284957
* Merge "Fix some help strings"Jenkins2014-02-238-10/+10
|\
| * Fix some help stringsAndreas Jaeger2014-02-218-10/+10
| | | | | | | | | | | | | | | | | | | | This fixes some errors and inconsistencies I found reviewing the help strings: * Capitalize help strings * Add missing space between words (in multi-line strings) * Improve wording Change-Id: I2fb31ab4191c330146e31c1a9651115a6657769a
* | Add ability to prompt for passwords for user create and setTerry Howe2014-02-212-0/+34
|/ | | | | | | | | | * Add get_password method to the utilities * Add --password-prompt option * Call the get_password method if a prompt is requested * Various tests Change-Id: I1786ad531e2a2fbcc21b8bc86aac0ccd7985995a Closes-Bug: 1100116
* Python 3: fix a syntax errorCyril Roelandt2014-02-111-1/+1
| | | | | | "raise AttributeError, name" is invalid in Python 3. Change-Id: Id61bd3747f49c2bd810cbfeae56506e7ed9d2bd0
* Add token create subcommand for identity v3 apiQiu Yu2014-01-291-0/+18
| | | | | | | | | | Implements token create subcommand which is an equivalent of keystone token-get command. Original "wrap" parameter for keystone token-get is not implemented yet due to cliff Bug #1269299 This is a part of: blueprint add-identity-token-support Change-Id: I2255021c9d1f10f757686583b1ebe40b5f3a9ecb
* Merge "Remove copyright from empty files"Jenkins2014-01-233-42/+0
|\
| * Remove copyright from empty filesAlexander Ignatov2014-01-203-42/+0
| | | | | | | | | | | | | | | | | | According to policy change in HACKING: http://docs.openstack.org/developer/hacking/#openstack-licensing empty files should no longer contain copyright notices. Change-Id: Iba09a00f24dfbd1cd03c1c9f70ea216788e64d93 Closes-Bug: #1262424
* | Add token create subcommand for identity v2 apiQiu Yu2014-01-171-0/+38
|/ | | | | | | | | | Implements token create subcommand which is an equivalent of keystone token-get command. Original "wrap" parameter for keystone token-get is not implemented yet due to cliff Bug #1269299 This is a part of: blueprint add-identity-token-support Change-Id: I9e4de93306f2f5959717b5219621da03961524d8
* Add support for specifying custom domainsPaul Belanger2014-01-071-0/+6
| | | | | | | | | | | | Add the ability to pass user_domain_id / user_domain_name, domain_id / domain_name, and project_domain_id / project_domain_name to keystone. These parameters are the first step needed to getting multi-domain support working via the CLI. Closes-Bug: #1198171 Change-Id: I81a8534913978ff1cce01ec02741ae477e8c5fa4 Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com> Signed-off-by: Bo Tang <btang@cs.utsa.edu>
* Expand support for command extensionsDean Troyer2013-11-211-0/+2
| | | | | | | | | | | | Allows client libraries to have complete access to the rest of the OSC ClientManager. In addition, extension libraries can define global options (for API version options/env vars) and define versioned API entry points similar to the in-repo commands. The changes to ClientManager exposed some issues in the existing object api tests that needed to be cleaned up. Change-Id: Ic9662edf34c5dd130a2f1a69d2454adefc1f8a95
* Add options to support TLS certificate verificationDean Troyer2013-10-071-1/+4
| | | | | | | | | | Add --os-cacert and --verify|--insecure options using the same sematics as the other project CLIs. --verify is included for completeness. Bug: 1236608 Change-Id: I8a116d790db5aa4cb17a2207efedce7cb229eba3
* Identity v3 testsDean Troyer2013-09-095-182/+347
| | | | | | | | | * Add project, user, role and service v3 tests * Fix issues in commands with enable/disable * Make commands and tests more consistent between versions * Make formatting and comments more consistent Change-Id: Id21e7a5abd7e421a7742f937861ec46b53095fc7
* Prepare for Identity v3 testsDean Troyer2013-09-093-38/+93
| | | | | | | | | * Split identity/fakes.py for v2_0 and v3 * Split identity/test_identity.py for v2_0 and v3 * Fix issues in commands with enable/disable * Clean up v2 commands Change-Id: I6e536b6a130fc556dbd7dcf9f2e76d939ca1bc1c
* Add Identity v2 role and service testsDean Troyer2013-09-042-9/+21
| | | | | | | | | * Add current auth info (auth_ref) to ClientManager * Fix identity.v2_0.role.ListUserRole to get default user/project from ClientManager.auth_ref * Fix identity.v2_0.role.AddRole call to roles.add_user_role() Change-Id: Ie8bf41c491d97b0292a2b86bdc9b7580989a7f97
* Merge "Re-order oauth commands and sync with keystoneclient"Jenkins2013-08-232-161/+193
|\
| * Re-order oauth commands and sync with keystoneclientSteve Martinelli2013-08-212-161/+193
| | | | | | | | | | | | | | 1) split out token and consumer 2) sync parameters with keystoneclient Change-Id: I2d529f0f9087f9939101e963af3d801497fc1171
* | Add Identity v2 user testsDean Troyer2013-08-191-28/+42
| | | | | | | | | | | | | | | | | | * implement Identity command tests for v2 user Also re-work the user create and set commands for exclusive options (--enable|--disable) to actually behave properly. Yay tests! Change-Id: Ie1ec2569b3d85a9d556ee70f2e8f69fd2a3c03c8
* | Add Identity v2 project testsDean Troyer2013-08-161-17/+27
|/ | | | | | | | | | | | * establish the the form of cliff command classes * implement some common fake objects * implement Identity command tests for v2 project * fix stdout/stderr capture Also re-work the project create and set commands for exclusive options (--enable|--disable) to actually behave properly. Yay tests! Change-Id: Icbb313db544c1f8dd3c9af7709971838b5a4d115
* Merge "Remove tenant round 2 - Identity API"Jenkins2013-07-313-110/+199
|\
| * Remove tenant round 2 - Identity APIDean Troyer2013-07-313-110/+199
| | | | | | | | | | | | | | Rename everything in the Identity v2 code including the file and classes. * role, tenant, user Change-Id: I0b99c60a24f5875120136d2f216aa3b6bce1c641
* | Merge "Remove tenant round 1 - global options"Jenkins2013-07-311-2/+2
|\ \ | |/
| * Remove tenant round 1 - global optionsDean Troyer2013-07-311-2/+2
| | | | | | | | | | | | | | | | | | Change the global auth options to use 'project', leave the original tenant options in place but silent for compatability with the existing project CLI auth options. This is the only compatibility for tenant usage in this changeover. Change-Id: I3cce6e552f18822cc9f445ec5f301b0f5d9003f8
* | Remove 'oauth authorization show' function from identity v3Steve Martinelli2013-07-311-24/+0
| | | | | | | | | | | | Remove the mentioned function since I removed it in the client. Change-Id: I45e713a1cdad92d257b895adfaa269404be6e6d8
* | Merge "Add security group commands"Jenkins2013-07-311-1/+12
|\ \ | |/ |/|
| * Add security group commandsDean Troyer2013-07-291-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add security group: create, delete, list, set, show * Add server: add secgroup, remove secgroup * Add security group rule: create, delete, list * Add Oslo's strutils and gettextutils * Adds parseractions.RangeAction() to handle option arguments of either a single number or a range of numbers: '--port 25' or '--port 1024:65535' Blueprint: nova-client Change-Id: Iad2de1b273ba29197709fc4c6a1036b4ae99725f
* | Begin Python 3 compatabilityDean Troyer2013-07-2916-56/+73
|/ | | | | | | | | | | * use six.iteritems() * replace basestring with six.string_types * convert print statements to functions (they're all debugging and should be removed eventually anyway) * clean up OpenStack copyright: LLC -> Foundation Change-Id: Icb14212bcb408e63816bfec3922a697bc1a6c946
* Add password field to set userSteve Martinelli2013-07-201-0/+2
| | | | | | | Noticed this was missing in set user, the password from parsed args wasn't being passed in. Change-Id: I0eb748444b86b374265b6e1dd02f69a922a9b043
* Merge "Add list and delete authorizations for oauth commands"Jenkins2013-07-191-1/+86
|\
| * Add list and delete authorizations for oauth commandsSteve Martinelli2013-07-161-1/+86
| | | | | | | | | | | | | | | | * List user authorizations * Delete user authorization * Grouped the commands with oauth prefix Change-Id: I032ffa25181aad0fb4689f69cdca5a7adc6e29f1
* | Add --catalog to service showDean Troyer2013-07-161-23/+44
|/ | | | | | Shows endpoints from the service catalog rather than the system services. Change-Id: I842916af9f7c0a76c4d3e27e419bf0fec059ec78
* Merge "Add authenticate method to oauth code"Jenkins2013-07-151-27/+80
|\
| * Add authenticate method to oauth codeSteve Martinelli2013-07-101-27/+80
| | | | | | | | | | | | | | | | | | | | | | Forgot to add one last method when I initially checked in the first set of code; the authenticate method will return an actual keystone token that the user may now use. Also, I added some changes to other methods because the client has been updated. Change-Id: Ie2707689e0df1fb1bc92177f932baf23fe1ca920
* | Remove api = apiName calls from each methodSteve Martinelli2013-07-1216-87/+0
|/ | | | | | | | | | | As discussed in https://review.openstack.org/#/c/36352/ for each command, we were setting api = identity or volume... etc, this was for an old way of calling commands that are is no longer used. Also removed openstackclient/common/command.py Change-Id: I2705f35d343f2ae729dc22d6aed0b852b2f8ca19
* Merge "Add EC2 credentials CRUD"Jenkins2013-07-081-0/+185
|\
| * Add EC2 credentials CRUDDean Troyer2013-07-031-0/+185
| | | | | | | | | | | | ec2 credentials: create, delete, list, show Change-Id: I82ff84ed433cd9a2da9534bf5f584a2e1a3fe68c
* | Merge "Finish up v3 role commands"Jenkins2013-07-053-42/+280
|\ \
| * | Finish up v3 role commandsSteve Martinelli2013-07-033-42/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add remove role * Add --role to group list * Add --role to user list * Fix groups in AddRole() * Remove the tweaks to utils.find_resource for domains; will address that across domains, projects, users and groups in another patch. I want to nail down the structure of these commands and get that into place Change-Id: I8673dd8221ef88978dada5a2833c187026bdb31a
* | | Add methods for user and group interactionsSteve Martinelli2013-07-021-0/+117
| |/ |/| | | | | | | | | | | | | * Add user to group * Contains user in group * Remove user from group Change-Id: If5219fa9d4761d7b97950c39556b3e1b8aab6517
* | Add OAuth support for Identity V3Steve Martinelli2013-06-261-0/+264
|/ | | | | | | | | | | | Added client side support for: * consumer CRUD * create request token * create access token * authroize request token blueprint: delegated-auth-via-oauth Change-Id: I8d325fcab07ac4dfd124a6e55053ded8d6bf662e
* Add domain and description to user for v3 identitySteve Martinelli2013-05-171-4/+41
| | | | | | | * splitting the changes seen in 27142 to a few new patches * this one will just update v3 user to have description and domain Change-Id: I9b4c365703da27e26ddc702f37cf5928e19cebdc
* Fix flake8 errors in anticipation of flake8 patch.Monty Taylor2013-05-146-7/+14
| | | | Change-Id: Ifdc4322b699f2bd91a6900e55695acd3d736568e
* Add policy to identity v3Steve Martinelli2013-03-261-0/+186
| | | | | | | use file for data blobs add create/set/delete/show/list policy for v3 Change-Id: I5f68ef89dfb2241ea1aca00736ee6df5f6f03a9b
* Add endpoint v3 functionalitySteve Martinelli2013-03-191-0/+247
| | | | | | | | | simple rebase integrated dolphm and dtroyer comments Added create,list,delete,set,show endpoints modified setup.py Change-Id: Id6153db16db44130beb3b44a8e3e2f72e9a01e5f
* Add service v3 support for identitySteve Martinelli2013-03-191-0/+186
| | | | | | | | | simple rebase rewrite help for create, remove choices Added create/delete/list/show/set for service Modified setup.py Change-Id: I5ced0e214cc2f7fc70493c66b4381040ce8122fe
* Add functionality for add-role commandsSteve Martinelli2013-03-151-0/+81
| | | | | | | | | keep the functions sorted Please review carefully as I intend to mimic this logic with list and remove, I'm open to suggestions about handling thigs differently Change-Id: Ia6359134c44447f3b758870c4dc306ec1f970852
* Add role v3 support to identity in openstack clientSteve Martinelli2013-03-121-0/+144
| | | | | | | | Added create/delete/set/list/show support for roles Broken up to make reviewing easier. Will add more functionality (add/remove) later Change-Id: I95bddd27d8d9d251ad2fd60c3e3ee1e2cbcd7d4b
* add domain, credential to identity v3 apiSteve Martinelli2013-03-082-0/+392
| | | | | | | | | | | moved policy.py to it's own patch minor changes based on comments reworked it now that the domain specs have changed added credential - create, delete, update, show, list added domain - create, delete, update, show, list update setup.py entry points Change-Id: I6bbbb8fdfbc3e76ba75374e9579eb92c96c928fe
* Multiple API version supportDean Troyer2013-02-062-2/+249
| | | | | | | | | | | | | | | | * Use multiple entry point groups to represent each API+version combination supported * Add some tests Try it out: * Right now only '* user' commands have multiple overlapping versions; you can see the selection between v2.0 and v3 by looking at the command help output for 'tenant' vs 'project': os --os-identity-api-version=2.0 help set user os --os-identity-api-version=3 help set user Change-Id: I7114fd246843df0243d354a7cce697810bb7de62
* Upgraded to PEP8 1.3.3 to stay aligned with Nova, etc.Josh Kearney2013-01-318-261/+148
| | | | | | | | Made all the necessary changes to pass new PEP8 standards. Also cleaned up docstrings to conform to the HACKING stanards. Change-Id: Ib8df3030da7a7885655689ab5da0717748c9edbe