OAuth dependency is not resolved prior to starting server

Bug #1264803 reported by Anton Frolov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
High
Steve Martinelli

Bug Description

There is no possible way to use OAuth for authentication. Problem is that self.oauth_api is always None on this line: https://github.com/openstack/keystone/blob/cc0c6565e3fe6ed60543e6ebd5e54cba51e59fc6/keystone/token/providers/common.py#L398 .

So even if OAuth is enabled, after trying to authenticate using OAuth you get {"error": {"message": "Oauth is disabled.", "code": 403, "title": "Forbidden"}}.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

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

Changed in keystone:
assignee: nobody → Anton Frolov (anton0)
status: New → In Progress
Revision history for this message
Adam Young (ayoung) wrote : Re: Can't use OAuth authentication

This has been tested...I think you are configuring it wrong. You need to enable oauth in the paste pipeline.

Changed in keystone:
status: In Progress → Incomplete
Revision history for this message
Dolph Mathews (dolph) wrote :
Revision history for this message
Anton Frolov (anton0) wrote :

I configured OAuth as explained in the doc you linked, and was able to receive OAuth access token, but failed on step where you request Keystone session token via /v3/auth/tokens.

Changed in keystone:
assignee: Anton Frolov (anton0) → Steve Martinelli (stevemar)
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

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

commit 8bf22c34fa9848e24de74ef1d72595b58352fd8e
Author: Steve Martinelli <email address hidden>
Date: Mon Jan 6 16:41:06 2014 -0600

    Resolve oauth dependency after paste pipeline is loaded

    When trying to authenticate with the oauth plugin, it is
    possible that the dependency is not yet loaded, and as a result
    the user will receive an error message: "Oauth is disabled"

    This patch will ensure the dependency is loaded after the pipeline

    Fixes: bug #1264803

    Change-Id: I37484bf844896b1a1b560923a8afaf99e91635e4

Changed in keystone:
status: In Progress → Fix Committed
Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → High
summary: - Can't use OAuth authentication
+ OAuth dependency is not resolved prior to starting server
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → icehouse-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: icehouse-2 → 2014.1
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.