incorrect method list is returned when scoping tokens with federation

Bug #1501032 reported by Lance Bragstad
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Ron De Rose

Bug Description

In keystone, when a user gets an unscoped token using a password and their username, the unscoped token response contains a method list. This method list will consist of ['password'], since it was the method used to obtain the token. When the user goes to scope their unscoped token to a project, the project scoped response will contain a method list of ['password', 'token'], since a password was used initially, and the unscoped token was also used as a form of authentication.

In federation, when a user gets an unscoped token from a valid SAML assertion, the unscoped response's method list will consist of ['saml2']. When the user goes to get a project scoped token, the project scoped response's method list will only contain ['saml2']. The 'token' entry is missing from the method list for rescoped federated tokens, despite using an unscoped token as a method of authentication.

This seems to be an inconsistency between the authentication API and the federated authentication API.

I've pushed a patch that exposes this bug here - https://review.openstack.org/#/c/229125/

Tags: federation
tags: added: federation
Revision history for this message
Dolph Mathews (dolph) wrote :

Marking this as Low because the primary use case for the method list is to convey whether the token is multifactor or not. That's already obscured when the value is "saml2", so adding "token" doesn't add anything meaningful beyond a duplicated audit trail.

Changed in keystone:
importance: Undecided → Low
status: New → In Progress
status: In Progress → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to keystone (master)

Reviewed: https://review.openstack.org/229125
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=ec4ff65d73166b602eff8c52d7e3ccf809038c37
Submitter: Jenkins
Branch: master

commit ec4ff65d73166b602eff8c52d7e3ccf809038c37
Author: Lance Bragstad <email address hidden>
Date: Tue Sep 29 19:56:03 2015 +0000

    Expose method list inconsistency in federation api

    The federated authentication API might return the wrong list of authentication
    methods when rescoping tokens. This patch exposes those bugs in the current
    tests and documents them.

    Related-Bug: 1501032

    Change-Id: I327e4c0c5b58e1c1ab2ea7417773ed5c7546baf3

Changed in keystone:
assignee: nobody → Ron De Rose (ronald-de-rose)
Revision history for this message
Steve Martinelli (stevemar) wrote :

unassigning due to inactivity

Changed in keystone:
assignee: Ron De Rose (ronald-de-rose) → nobody
Changed in keystone:
assignee: nobody → Ron De Rose (ronald-de-rose)
Changed in keystone:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/431181
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=a7677be518d193518286ba3539541bb6d75970ca
Submitter: Jenkins
Branch: master

commit a7677be518d193518286ba3539541bb6d75970ca
Author: Ronald De Rose <email address hidden>
Date: Wed Feb 8 21:21:06 2017 +0000

    Include 'token' in the method list for federated scoped tokens

    Closes-Bug: #1501032
    Change-Id: I52b1c236569db7cbddf44a196c9a98a0b1547215

Changed in keystone:
status: In Progress → Fix Released
Changed in keystone:
milestone: none → pike-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/keystone 12.0.0.0b1

This issue was fixed in the openstack/keystone 12.0.0.0b1 development milestone.

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.