30 Commits

Author SHA1 Message Date
liushuobj
b9adc77b44 adjust response code order in 'authenticate-v3.inc'
Change-Id: Ie5027c9ee2b15afa4e805bada4cef6bf81456146
2018-01-15 16:24:40 +08:00
Suramya Shah
338e8552e0 Reorganize api-ref: v3 authenticate-v3
Reorganize as per the documentation session at PTG:
https://etherpad.openstack.org/p/queens-ptg-keystone-doc-cleanup

Change-Id: I18177430489ce465c83b219b36cbbab65a3413ae
2018-01-02 20:32:48 +00:00
wangxiyuan
3cc3986a89 Remove extra parameter for token auth
The /v3/auth/token API's response body doesn't contain
extra at all.
It has been removed here: https://review.openstack.org/#/c/249480/

This patch remove the "extra" from api-ref to avoid misleading.

Change-Id: I3d41c022835bc43e5bf46d1d522dfcdcc0a8922e
2017-12-11 17:07:30 +08:00
Jenkins
a2f722786e Merge "Add response example in authenticate-v3.inc" 2017-06-28 00:40:33 +00:00
Lance Bragstad
e156d337a7 Add HEAD API to auth
This commit adds HEAD counterparts to all GET APIs within the
authentication API.

There was also some inconsistencies in the existing documention
saying a few GET APIs return 204 No Content when the response
was actually 200 OK. This corrects that as well.

Change-Id: Ic1f74b73e27a14428b129bed610d3d1d3d18f24e
Partial-Bug: 1696574
2017-06-21 15:11:05 +00:00
zlyqqq
3f63e22fa9 Add response example in authenticate-v3.inc
Change-Id: Ic7914c34b41a7efaa36d6d0449c2dcb6f2a52d22
2017-06-06 07:37:29 +00:00
zlyqqq
5bf6849a3b Remove X-Auth-Token from response parameters
Change-Id: Ic04164e4d679ef40ce21a76ac7cf2a8585aafec8
2017-05-03 14:47:33 +08:00
SamriddhiJain
8da2c6d5cc Updated scope parameter description in v3 API-ref
The description of scope parameter in the API docs is inconsistent for
scoped and explicit unscoped authorization. It doesn't explain clearly
when the parameter should be set to keyword 'unscoped' (explicit
unscoped authorization) and when to include ID/name of the project/
domain (scoped authorization). This patch covers the required update
for the scope parameter by introducing separate descriptions for the
above mentioned cases.

For explicit unscoped authorization, the keystone server specifies
scope value as 'unscoped' whereas in some old versions of keystoneauth
the value is {'unscoped': {}}. Added a comment to keystone/auth/schema.py
to make sure the type of scope parameter is object and not string, so
that it is consistent with older versions too.

In v3 API docs the case for token authentication with explicit unscoped
authorization is missing. Added documentation and request example for
that case.

Partial-Bug #1637682

Change-Id: I10d38e4cc59934c421443322b14f4f971acf3a29
2017-04-11 05:10:34 +05:30
ZhangHongtao
9a2979557d Remove x-subject-token in api-ref for v3/auth/catalog
Only x-auth-token is required for these api calls, but the
api-ref mentions x-subject-token as required also.
This fixes that by removing x-subject-token from the call docs.

Change-Id: I26342250c74918c21fce951bf0706d50141aa58c
Closes-Bug: 1673301
2017-03-16 10:22:13 +08:00
Anthony Washington
d83b502620 API-ref return code fix
Currently the api ref states the return code for
GET /v3/auth/catalog returns 204 no content. However
after testing the return code is 200 ok. This commit
updates api-ref to correct return code.

Change-Id: I5f1049b565b1e11fb6e748b43ae9dfe1e16250a6
Closes-Bug: 1670380
2017-03-06 16:52:03 +00:00
Kristi Nikolla
df139efda5 Remove x-subject-token in api-ref for v3/auth/{projects,domains}
Only x-auth-token is required for these api calls, but the
api-ref mentions x-subject-token as required also.
This fixes that by removing x-subject-token from the call docs.

Change-Id: Ib30a71b81939b11363aced4aecd545049c210380
Closes-Bug: 1667194
2017-02-27 11:53:11 -05:00
Samuel Pilla
c90db0375e Renaming of api parameters
Some parameters of similar name would follow the convention
such as `region_id` and `region_id_1` which gave no good
information as to the differences.

This patch changes these names to help give such information.

Change-Id: I2dec61ed06042990ff54e86c02dc3fca9d566366
2017-02-03 15:23:40 -06:00
Eric Brown
30d9095d28 Use https for docs.openstack.org references
The openstack.org pages now support https and our references to
the site should by default be one signed by the organization.

Change-Id: I30a462e03d1fd7852511e22cac34c6bc0e8917f4
2017-01-30 16:05:08 -08:00
jolie
1a004987a4 [api] set is_admin_project on tokens for admin project
This patch update api_doc to include 'is_admin_project'

Change-Id: I7d8345ea75659f6397098979531edf286df69485
Closes-Bug:#1523012
2016-12-21 10:32:17 +08:00
Jamie Lennox
fcebc2fa8d Allow fetching an expired token
A service user from auth_token middleware should be able to fetch a
token that has expired within a certain window so that long running
operations can finish.

Implements bp: allow-expired
Change-Id: I784f719be88481048f5aa7a79d34a54907438cf3
2016-11-28 04:07:26 +00:00
Jenkins
af4b4ba116 Merge "api-ref: Splitting status lines in API v3." 2016-08-29 15:29:34 +00:00
Anh Tran
e332a3ad50 Add Response Example for 'Passwd auth with unscoped authorization'
API link:
http://developer.openstack.org/api-ref/identity/v3/index.html#password-authentication-with-unscoped-authorization

Change-Id: I196d32e3608b4306fda116ad7ab200827c84bb41
2016-08-29 09:21:34 +00:00
Anh Tran
43df6125f9 api-ref: Splitting status lines in API v3.
Currently, 'Normal response codes' and 'Error response codes' are
in the same line. We should split them.

Change-Id: Iecfa8849a57dc895f639ab2e7d910a2a8763f83a
2016-08-25 13:14:34 +07:00
Anh Tran
729c989c3e api-ref: Correcting V3 OS-INHERIT APIs
Correcting all parameters of OS-INHERIT APIs.
http://developer.openstack.org/api-ref/identity/v3/index.html#os-inherit-api
Finish on V3 APIs.

Change-Id: I670130a2f874e1921ecdc8c06d756ece79505d50
Partial-Bug: #1610777
2016-08-15 08:47:33 +07:00
gage hugo
d36e555788 [api] add relationship links to v3
Nearly all the "relationship" links are missing in v3 APIs.

Added relationship links to v3 API pages.

Change-Id: If519692a5b48e563719e8cde5c694edad6e01ef8
Partial-Bug: #1609159
2016-08-11 15:17:59 -05:00
liyingjun
b9c671718d Document get auth/catalog,projects,domains
This patch adds GET /auth/catalog, GET /auth/projects and GET /auth/domains
to the API site.

Change-Id: Ifda4676680bb9759348bbf7f3353741c45308b8c
Closes-bug: #1609178
2016-08-11 15:36:27 +08:00
Anh Tran
b3c838153f api-ref: Correcting V3 Authentication APIs
http://developer.openstack.org/api-ref/identity/v3/index.html#authentication-and-token-management

Change-Id: I17a3a974c36c0992c681100833f0443963edbf69
Partial-Bug: #1610777
2016-08-11 08:29:42 +07:00
Jenkins
93248d23a1 Merge "api-ref: Correcting V3 Endpoints APIs" 2016-08-10 22:14:22 +00:00
Anh Tran
6919253c8f api-ref: Correcting V3 Endpoints APIs
Correcting all parameters of Show/Create/List/Update/Delete APIs.
http://developer.openstack.org/api-ref/identity/v3/index.html?#show-endpoint-details

Change-Id: Iea796c4cd475bd0bb2879f4810abf9a645ff58ea
Partial-Bug: #1610777
2016-08-09 14:17:00 +07:00
Tin Lam
82bf342f20 api-ref: Add "nocatalog" option to GET /v3/auth/tokens
Added missing "nocatalog" query parameter for GET /v3/auth/tokens API
to api-ref.  See [1].

[1] http://specs.openstack.org/openstack/keystone-specs/api/v3/identity-api-v3.html#validate-token

Change-Id: Ie2310b7dfaf8d6a05b6a61ac6f9639d181798930
Closes-Bug: #1609177
2016-08-09 00:51:58 -05:00
Lance Bragstad
179f0fdaca Correct normal response codes for auth docs
The authentication docs for v3 were listing 20X http status codes as Error
responses. This commit corrects the documentation to list 20X codes as Normal
response codes.

Change-Id: I317d7e3571e5a80b5efa74141be1c12226a13699
2016-07-13 20:09:17 +00:00
Jenkins
3eed447128 Merge "[doc/api]Remove space within word" 2016-07-05 14:36:05 +00:00
Atsushi SAKAI
e37db54212 [doc/api]Remove space within word
Following two words should not have space.
 X-Subject-Token
 X-Auth-Token
But currently these two words have CR within these words,
This causes redundunt spaces.

http://developer.openstack.org/api-ref/identity/v3/authenticate-v3.html

Change-Id: I3ae39cdaf19b73b5f7750eeb9b01d1447e2ca73a
2016-07-05 16:39:10 +09:00
Steve Martinelli
ebccd23b78 Add missing preamble for v3 and v3-ext
The api-ref site had a short blurb about the resources listed
in the document, add that back.

Change-Id: I2bac40a250a5b73fb70320d598a12c34c359e3c2
2016-07-04 14:35:49 -07:00
Samuel de Medeiros Queiroz
9a5395f1b2 Migrate identity /v3 docs from api-ref repo
Docs at [1] have already been converted from WADL (SGML / XML) to RST
using fairy-slipper [2].

This commit polish the results from the conversion and migrate the docs
to our repository under 'api-ref/source' directory. In addition, it
added missing descriptions for access_token_id and consumer_id to
'parameters.yaml'.

Polishing the generated RST files include:
- Removing unnecessary blank lines;
- Removing empty references.

Polishing the generated RST files do not include:
- Modifying their content;
- Modifying file names;
- Wrapping lines at the maximum of 79 chars.

Updating the documentation will be done after this migration step.

This change also adds a tox environment to build the docs using sphinx
under 'api-ref/build', which in turn is added to '.gitignore'.

Lastly, 'os-api-ref' is added as a test requirement. It provides the
sphinx stanzas rest_method and rest_parameter, used to define OpenStack
APIs in RST docs.

[1] https://github.com/openstack/api-site/tree/master/api-ref/source/identity/v3
[2] https://github.com/russell/fairy-slipper

Change-Id: If1b9a3e1b2e4ea7211c337071254c26b881893a3
2016-05-24 09:58:23 -03:00