← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1354408] [NEW] Role list in tokens does not match identity-api spec

 

Public bug reported:

According to the identity-api specification the list or roles in a
scoped token is of the form:

            "roles": [
                {
                    "id": "76e72a",
                    "links": {
                        "self": "http://identity:35357/v3/roles/76e72a";
                    },
                    "name": "admin"
                },
                {
                    "id": "f4f392",
                    "links": {
                        "self": "http://identity:35357/v3/roles/f4f392";
                    },
                    "name": "member"
                }
            ],

In fact , the links are not present in our tokens (presumably to keep
token size down?), so a token role list actually looks like:

            "roles": [
                {
                    "id": "76e72a",
                    "name": "admin"
                },
                {
                    "id": "f4f392",
                    "name": "member"
                }
            ],

I am presuming we should fix the documentation to match?

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1354408

Title:
  Role list in tokens does not match identity-api spec

Status in OpenStack Identity (Keystone):
  New

Bug description:
  According to the identity-api specification the list or roles in a
  scoped token is of the form:

              "roles": [
                  {
                      "id": "76e72a",
                      "links": {
                          "self": "http://identity:35357/v3/roles/76e72a";
                      },
                      "name": "admin"
                  },
                  {
                      "id": "f4f392",
                      "links": {
                          "self": "http://identity:35357/v3/roles/f4f392";
                      },
                      "name": "member"
                  }
              ],

  In fact , the links are not present in our tokens (presumably to keep
  token size down?), so a token role list actually looks like:

              "roles": [
                  {
                      "id": "76e72a",
                      "name": "admin"
                  },
                  {
                      "id": "f4f392",
                      "name": "member"
                  }
              ],

  I am presuming we should fix the documentation to match?

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1354408/+subscriptions


Follow ups

References