Skip to content
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

Removed the need to specify a tenant_id for authentication. #345

Merged
merged 1 commit into from
Apr 9, 2014
Merged

Removed the need to specify a tenant_id for authentication. #345

merged 1 commit into from
Apr 9, 2014

Conversation

elliott-davis
Copy link

Occastionally, it is desirable to authenticate with an unscoped token in Keystone.
This patch removes the need to specify a tenant_id when authenticating with a username and password or a token.

To remove the necesity for a patch, some of the safegaurds were remove from base_identity.

To Manually Test:

  1. set_credentials with a username and password (do not specify a tenant_id).
  2. Ensure that pyrax.identity.authenticated returns true.
  3. Grab the auth_token from your previous authentication.
  4. Unauthenticate your previous user.
  5. Use auth_with_token. Do not specify a tenant_id.
  6. Verify that the two tokens are not the same
  7. Verify that pyrax.identity.authenticated still returns true

A unit test was also provided for token based authentication testing.
A unit test was removed that checked the raised error for missing tenant_id.

Occastionally, it is desirable to authenticate with an unscoped token in Keystone.
This patch removes the need to specify a tenant_id when authenticating with a
username and password or a token.

To remove the necesity for a patch, some of the safegaurds were remove from base_identity.

To Manually Test:

1) set_credentials with a username and password (do not specify a tenant_id).
2) Ensure that pyrax.identity.authenticated returns true.
3) Grab the auth_token from your previous authentication.
4) Unauthenticate your previous user.
5) Use auth_with_token.  Do not specify a tenant_id.
6) Verify that the two tokens are not the same
7) Verify that pyrax.identity.authenticated still returns true

A unit test was also provided for token based authentication testing.
A unit test was removed that checked the raised error for missing tenant_id.
EdLeafe added a commit that referenced this pull request Apr 9, 2014
Removed the need to specify a tenant_id for authentication.
@EdLeafe EdLeafe merged commit fc5a386 into pycontribs:working Apr 9, 2014
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.

2 participants