From fa63581a9ebe9593498c09ff1a6d95edcaad415d Mon Sep 17 00:00:00 2001 From: Brant Knudson Date: Sat, 15 Mar 2014 08:18:24 -0500 Subject: [PATCH] Fix incorrect request format for rescoping a token The request format for rescoping a token indicated that the "token" was a string. It's actually an object where the token id is in the "id" attribute. The fix is to change the documentation so that it's more obvious that the "token" is an object that contains an "id" attribute. This will make it easier for users because they won't try to pass the token as a string rather than in the "id" attribute. Change-Id: I2865caa73418e6b26e3ac17686c430b910db4444 Closes-Bug: #1292844 --- .../src/v2.0/samples/auth_token_request.json | 8 +++++ .../src/v2.0/samples/auth_token_request.xml | 6 ++++ .../src/v2.0/wadl/identity-admin.wadl | 30 +++++++++++++++++-- .../identity-api/src/v2.0/wadl/identity.wadl | 30 +++++++++++++++++-- 4 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 api-ref/src/wadls/identity-api/src/v2.0/samples/auth_token_request.json create mode 100644 api-ref/src/wadls/identity-api/src/v2.0/samples/auth_token_request.xml diff --git a/api-ref/src/wadls/identity-api/src/v2.0/samples/auth_token_request.json b/api-ref/src/wadls/identity-api/src/v2.0/samples/auth_token_request.json new file mode 100644 index 000000000..649c83cb5 --- /dev/null +++ b/api-ref/src/wadls/identity-api/src/v2.0/samples/auth_token_request.json @@ -0,0 +1,8 @@ +{ + "auth": { + "tenantName": "demo", + "token": { + "id": "cbc36478b0bd8e67e89469c7749d4127" + } + } +} diff --git a/api-ref/src/wadls/identity-api/src/v2.0/samples/auth_token_request.xml b/api-ref/src/wadls/identity-api/src/v2.0/samples/auth_token_request.xml new file mode 100644 index 000000000..e95ee3e12 --- /dev/null +++ b/api-ref/src/wadls/identity-api/src/v2.0/samples/auth_token_request.xml @@ -0,0 +1,6 @@ + + + + diff --git a/api-ref/src/wadls/identity-api/src/v2.0/wadl/identity-admin.wadl b/api-ref/src/wadls/identity-api/src/v2.0/wadl/identity-admin.wadl index 9ea10f05c..175c2da2f 100644 --- a/api-ref/src/wadls/identity-api/src/v2.0/wadl/identity-admin.wadl +++ b/api-ref/src/wadls/identity-api/src/v2.0/wadl/identity-admin.wadl @@ -373,8 +373,14 @@ A token. Required if you do not provide - password credentials. + >A token object. Required if you do not + provide password credentials. + + + The token ID. This is a required field in the + token object. @@ -396,6 +402,26 @@ + + + + + + + + + + + + + + A token. Required if you do not provide - password credentials. + >A token object. Required if you do not + provide password credentials. + + + The token ID. This is a required field in the + token object. @@ -290,6 +296,26 @@ + + + + + + + + + + + + + +