summaryrefslogtreecommitdiff
path: root/openstackclient/identity
Commit message (Collapse)AuthorAgeFilesLines
* Complete Identity v3 list command filtersDean Troyer2014-06-192-23/+74
| | | | | | | Complete the 'group list' and 'user list' filter options following the refactor in https://review.openstack.org/69878 Change-Id: Ib4af417c56d4f7da4b88852f191af615cc7fa2ec
* Merge "Refactor role list subcommand for identity v3 api"Jenkins2014-06-193-158/+115
|\
| * Refactor role list subcommand for identity v3 apiQiu Yu2014-06-133-158/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently parts of user list and group list command are actually functioning as role listing, which is quite counter intuitive and misleading. This refactor change move role related logic to a single place of role list command. It now allows role grants listing for user/group + domain/project combinations. If no user or group specified, it will list all roles in the system, which is the default behaviour. Change-Id: I4ced6df4b76f018d01000d28b4281ad9f252ffcc
* | Merge "Change the token verb to issue/revoke"Jenkins2014-06-182-3/+3
|\ \
| * | Change the token verb to issue/revokeTerry Howe2014-06-182-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Change the token verb to issue/revoke as documented in: https://wiki.openstack.org/wiki/OpenStackClient/Commands#token https://wiki.openstack.org/wiki/OpenStackClient/Commands#Actions Change-Id: I44f77f98ad3269c4f2149301c204804dcb75ac81
* | | Merge "Add token delete command for identity v2"Jenkins2014-06-181-0/+22
|\ \ \ | |/ /
| * | Add token delete command for identity v2Terry Howe2014-05-231-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | Identity v2 has undocumented support for token delete and keystoneclient also has support. Change-Id: Ib98d17958ceb88f7b63471691dee71fdb884ce2e Closes-Bug: #1318442
* | | Refactor oauth1 code for updatesSteve Martinelli2014-06-142-141/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The keystoneclient code for oauth1 support has changed. As such, we should remove the delete, list and authenticate functions, since they are not in keystoneclient. Also, we must now pass in the project id when creating a request token. Additionally we must now pass in roles when authorizing a request token. Added functional tests to ensure output and input args are the same. bp add-oauth-support Change-Id: I559c18a73ad95a0c8b7a6a95f463b78334186f61
* | | Merge "Add role assignments list support to identity v3"Jenkins2014-06-131-0/+156
|\ \ \ | |_|/ |/| |
| * | Add role assignments list support to identity v3henriquetruta2014-05-301-0/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The assignments manager and its test class were created. Some fake stubs were also added on the fakes.py module. The "openstack role assignment list" command was created. Change-Id: Iae94f4fee608ea3e09ff38961ad22edc38efb89c Implements: blueprint roles-assignment-list Closes-Bug: 1246310
* | | Merge "replace string format arguments with function parameters"Jenkins2014-06-1019-97/+97
|\ \ \ | |/ / |/| |
| * | replace string format arguments with function parametersChristian Berendt2014-05-2019-97/+97
| |/ | | | | | | | | | | | | | | There are files containing string format arguments inside logging messages. Using logging function parameters should be preferred. Change-Id: Ic749ac9eb55564ed631d57055a5a4dfc3aebd169
* | Fixed several typos throughout the codebaseAlex Gaynor2014-05-212-2/+2
|/ | | | Change-Id: I048ee857fc1215fea7f60978364894e1b5abdf66
* Merge "Implement CRUD operations for Identity Providers"Jenkins2014-05-091-0/+180
|\
| * Implement CRUD operations for Identity ProvidersMarek Denis2014-04-241-0/+180
| | | | | | | | | | | | | | | | | | | | | | | | Operations for: * adding Identity Provider * listing Identity Providers * showing Identity Provider * updating Identity Provider * deleting Identity Provider Change-Id: I4557168309f93e4670116b5c3c0e29252ff0c40f Implements: bp/add-openstackclient-federation-crud
* | Merge "Make endpoint commands more consistent"Jenkins2014-04-235-118/+74
|\ \
| * | Make endpoint commands more consistentTerry Howe2014-03-285-118/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make endpoints more consistent across create, show, etc * Make the name option required for create * Use a common function to fetch services by id, name or type * Have show work by endpoint id or by service id, type or name * Have show display all the fields by default * Remove capability to filter queries by attribute value pairs Change-Id: Idaa4b8d930ba859fd62de777e44a10b1ed58c79b Partial-Bug: #1184012
* | | Merge "Fix the project option to user list so it filters"Jenkins2014-04-231-2/+17
|\ \ \
| * | | Fix the project option to user list so it filtersTerry Howe2014-04-011-2/+17
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | The --project option to the user list command was not implemented * Allow users to be filted by project * Support id or name of project with the find_resource command * Make sure the report does not contain duplicates Change-Id: Ic0e10cccd7749d38a7d4b80bbdc68e61a660084b Closes-Bug: #1177255
* | | Merge "Pass arguments to v3 keystoneclient by kwarg"Jenkins2014-04-179-24/+24
|\ \ \
| * | | Pass arguments to v3 keystoneclient by kwargJamie Lennox2014-04-049-24/+24
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Keystoneclient has added the positional decorator which emits a warning if arguments aren't passed by keyword. This means we are getting warnings in certain places in openstackclient. Change-Id: Ic5446cd6f122cbb56fce543011386d53bc31fe18 Closes-Bug: #1302199
* | | move read_blob_file_contents to utilsSteve Martinelli2014-04-141-8/+2
|/ / | | | | | | | | | | | | | | Thinking ahead, a few other upcoming keystone features could benefit from reading contents from a file. Thus, moving the function from policy to utils. Change-Id: I713ab0e5a00c949ad996daf83b775a7c19044888
* | Correct display of project/tenant id on display of credentialsChris Johnson2014-03-211-2/+4
| | | | | | | | | | | | | | | | | | This change corrects the display of ec2 credentails within the ListEC2Creds method. Added explicit headers and corrected data listt o specify tenant_id instead of project id. Change-Id: I2ea579082bee800d774f202bdc38e2d546e57e77 Closes-Bug: #1292337
* | identity v3 allow project list filtering by domainSteven Hardy2014-03-131-1/+13
| | | | | | | | | | | | | | | | | | The underlying keystoneclient interface allows filtering by domain, so support it in the cli interface because it makes project list much nicer to use in a multi-domain deployment. Change-Id: If3f5cf1205c1e9cf314f8286a3ae81bda4456b8f Closes-Bug: #1289513
* | Merge "Add ability to set key value pairs in projects"Jenkins2014-03-132-0/+44
|\ \ | |/ |/|
| * Add ability to set key value pairs in projectsTerry Howe2014-03-062-0/+44
| | | | | | | | | | | | | | | | | | Add supporto of extra key value pairs for projects (aka tenants) * Added option --property key=value to create and set commands * Support for versions v2 and v3 Change-Id: I84064b8b308579d1b66c83b1ed3d1a37614ec087 Closes-Bug: #1220280
* | add interface and url to endpoint listDolph Mathews2014-03-071-14/+2
|/ | | | | | endpoint list is not terribly useful without these details Change-Id: I65b0bdf7667d73ceaad5856171678cabcde003f3
* 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