[identity][v3/auth/tokens] Incorrect responses .

Bug #1538544 reported by Anh Tran
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Invalid
Medium
Unassigned

Bug Description

I have tested the Identity API v3 following http://developer.openstack.org/api-ref-identity-v3.html#authenticate-v3
The document states that the responses must consist of "extras" parameter, but my responses did not.

Example: "Password authentication with unscoped authorization"
There is a parameter THAT WAS MISSED: "extras" as you can see in the below:

==================samples response================
{
    "token": {
        "methods": [
            "password"
        ],
        "expires_at": "2015-11-06T15:32:17.893769Z",
        "extras": {}, <========================== Here
        "user": {
            "domain": {
                "id": "default",
                "name": "Default"
            },
            "id": "423f19a4ac1e4f48bbb4180756e6eb6c",
            "name": "admin"
        },
        "audit_ids": [
            "ZzZwkUflQfygX7pdYDBCQQ"
        ],
        "issued_at": "2015-11-06T14:32:17.893797Z"
    }
}
================my response======================
{
    "token": {
        "issued_at": "2016-01-26T07:44:44.846341Z",
        "audit_ids": [
             "kTlnO7qJRleA7TW_ICoR_g"
        ],
        "methods": [
            "password"
        ],
        "expires_at": "2016-01-26T09:44:44.846310Z",
        "user": {
            "domain": {
                "id": "default",
                "name": "Default"
            },
            "id": "1fbb2c4c22b54e6d9a5f99bf6137d53a",
            "name": "admin"
        }
    }
}

All other resposnses are incorrect too, so we need to change for more exact.

[UPDATE]
The "extras" parameter is already removed from token data by this patch: https://review.openstack.org/#/c/249480/

Tags: keystone
Anh Tran (trananhkma)
Changed in openstack-api-site:
assignee: nobody → Anh Tran (anhtt)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

Fix proposed to branch: master
Review: https://review.openstack.org/273457

Changed in openstack-api-site:
status: New → In Progress
Anh Tran (trananhkma)
description: updated
Anne Gentle (annegentle)
Changed in openstack-api-site:
importance: Undecided → Medium
Revision history for this message
Anne Gentle (annegentle) wrote :

I'd rather you wait for the bug to be marked Confirmed before working on it. Which cloud provider does not have extras in the response? Since it's configurable based on http://docs.openstack.org/developer/keystone/configuration.html, it's possible it still needs to be documented on this site (developer.openstack.org).

Changed in openstack-api-site:
status: In Progress → Incomplete
Anh Tran (trananhkma)
Changed in openstack-api-site:
status: Incomplete → Opinion
status: Opinion → Incomplete
Revision history for this message
Anh Tran (trananhkma) wrote :

@annegentle: Thank you for your quick reply, and sorry for my mistake.

I have tested Identity on OpenStack deployed by newest version of Devstack on master branch, with minimal configuration with added "ENABLE_IDENTITY_V2=False" in local.conf file. No other configuration.

The GET method of "http://identity:5000/" returned v3.5 as the version of Identity.

All cases of POST method of "v3/auth/tokens" API returned the same results, "extras" parameter was missed from all responses.

Revision history for this message
Anh Tran (trananhkma) wrote :

"extras" is removed from token data in this commit: https://review.openstack.org/#/c/249480/

Anh Tran (trananhkma)
description: updated
Anh Tran (trananhkma)
tags: added: keystone
Revision history for this message
Sharat Sharma (sharat-sharma) wrote :

I am assigning this bug to myself since there has been no activity since a long time. If anybody has issues please let me know.

Changed in openstack-api-site:
assignee: Anh Tran (trananhkma) → Sharat Sharma (sharat-sharma)
Changed in openstack-api-site:
status: Incomplete → Confirmed
Revision history for this message
Anh Tran (trananhkma) wrote :

Hi Sharat Sharma, I already push my patch for this bug: https://review.openstack.org/#/c/273457/

This patch need a confirmation of core reviewer.

Revision history for this message
Sharat Sharma (sharat-sharma) wrote :

ok then. Go on with it!

Changed in openstack-api-site:
assignee: Sharat Sharma (sharat-sharma) → nobody
Changed in openstack-api-site:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on api-site (master)

Change abandoned by Anh Tran (<email address hidden>) on branch: master
Review: https://review.openstack.org/273457

Anh Tran (trananhkma)
Changed in openstack-api-site:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.