Skip to content

token: pass the project id to get the catalog #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

goneri
Copy link

@goneri goneri commented Dec 25, 2021

Keystone returns the service catalog only with the scoped token. If the
user has no default project and we don't pass a project_id, we end up
in the case where the token is unscoped.

By passing the project id, we ensure the token is scoped.

Note, the behaviour is not recent, it was already the case OpenStack
Havana. From the changelog:

A token without an explicit scope of authorization is issued if the user
does not specify a project and does not have authorization on the project
specified by their default project attribute

See: https://docs.openstack.org/api-ref/identity/v3/#service-catalog-and-endpoints

Keystone returns the service catalog only with the scoped token. If the
user has no default project and we don't pass a project_id, we end up
in the case where the token is unscoped.

By passing the project id, we ensure the token is scoped.

Note, the behaviour is not recent, it was already the case OpenStack
Havana. From the changelog:

https://docs.openstack.org/api-ref/identity/v3/#service-catalog-and-endpoints

    A token without an explicit scope of authorization is issued if the user
    does not specify a project and does not have authorization on the project
    specified by their default project attribute

See: https://docs.openstack.org/api-ref/identity/v3/#service-catalog-and-endpoints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant