summaryrefslogtreecommitdiff
path: root/openstackclient/identity/v3/token.py
Commit message (Collapse)AuthorAgeFilesLines
* take_action() method from command.Command shouldn't returnMohan Muppidi2016-02-291-1/+0
| | | | | | | | | | | | command.Command and command.Showone are base classes implemented in cliff framework. Showone extends Command to allow take_action() to return data to be formatted using a user-selectable formatter. Most of the classes which are extended from Command in openstackclient/identity/v3/ in some cases return data or return nothing where it is not necessary, this commit fixes most of them. Change-Id: I84c72ea4d6680f8bdbef5449316dd9a8af8c8286 Closes-Bug: 1550892
* Support unscoped token requestguang-yee2016-02-191-0/+3
| | | | | | | | Make scope check optional for the "token issue" command as unscoped token is a valid Keystone V2/V3 API. Change-Id: Ie1cded4dbfdafd3a78c0ebdf89e3f66762509930 Closes-Bug: #1543214
* Add "token revoke" for identity v3lin-hua-cheng2016-02-091-0/+19
| | | | | Change-Id: Ie631600d02942fe6ce035f31af46abe44e543631 Closes-bug: #1543226
* log take_action parameters in a single placeAkihiro Motoki2016-02-021-20/+5
| | | | | | | | | | | | Previously each command logs take_action parameters explicitly by using @utils.log_method decorator or log.debug(). Some commands have no logging. This commit calls a logger in the base class and drops all logging definition from individual commands. Closes-Bug: #1532294 Change-Id: I43cd0290a4353c68c075bade9571c940733da1be
* Use a common decorator to log 'take_action' activationJoshua Harlow2015-09-011-1/+1
| | | | | | | | | Instead of duplicating the same log statement throughout the code, the same logic can be provided by a shared decorator that abstracts away the logging capability and unifies it behind a common function instead. Change-Id: Icc63bced7347c8bbf0299a4c5821425a10892a79
* Command doc: access tokenSteve Martinelli2015-01-091-9/+7
| | | | Change-Id: I1b7103e28273f0a63c7d6b6003317b9e69702b05
* Request token authorizeSteve Martinelli2015-01-091-10/+16
| | | | | | Command doc and tweaks to the code Change-Id: I8f251bf9ca77f16b01a509844e79ddde82048b0d
* Request token creation docs + tweaksSteve Martinelli2015-01-081-11/+32
| | | | | | | Added command docs, and changed request token to take in name or id of a project, and also support a domain option. Change-Id: I87363274e5b7a0c687e234f5a4bcaaf166d28840
* Fix token issue after auth changeupDean Troyer2014-10-201-3/+1
| | | | | | | | | | | IssueToken.take_action() was missed in updating the structure of the ClientManager. Also, TOKEN_WITH_TENANT_ID in v3 is just wrong... Closes-Bug: #1383396 Change-Id: If2dd82a26af1d743ee9df73e0c1aebce497bf22e
* Fix issue token for v3Steve Martinelli2014-10-111-2/+2
| | | | | | | | Currently the code is broken as it references a part of keystoneclient that does not exist. Change-Id: I7fbc754537fbb4acffb166b5854840acfaef1fb8 Closes-Bug: #1379871
* Rename token classes to match commandDean Troyer2014-06-271-7/+8
| | | | | | | The token create/delete commands were renamed but not the class names. Rename them to match. Change-Id: Icbf9c0a954ed0332fa4c99e4ee2612bb11f89e3a
* Merge "Change the token verb to issue/revoke"Jenkins2014-06-181-1/+1
|\
| * Change the token verb to issue/revokeTerry Howe2014-06-181-1/+1
| | | | | | | | | | | | | | | | | | 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
* | Refactor oauth1 code for updatesSteve Martinelli2014-06-141-127/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | replace string format arguments with function parametersChristian Berendt2014-05-201-7/+7
|/ | | | | | | | There are files containing string format arguments inside logging messages. Using logging function parameters should be preferred. Change-Id: Ic749ac9eb55564ed631d57055a5a4dfc3aebd169
* Fix some help stringsAndreas Jaeger2014-02-211-3/+3
| | | | | | | | | | 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 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
* Re-order oauth commands and sync with keystoneclientSteve Martinelli2013-08-211-0/+246
1) split out token and consumer 2) sync parameters with keystoneclient Change-Id: I2d529f0f9087f9939101e963af3d801497fc1171