feat: allow domain names or IDs in keystone connector#3506
Merged
Conversation
nabokihms
requested changes
May 31, 2024
Member
nabokihms
left a comment
There was a problem hiding this comment.
@cardoe thanks, idea looks great. Could you check why tests didn't pass?
--- FAIL: TestValidUserLogin (3.44s)
--- PASS: TestValidUserLogin/test_with_email_address (1.00s)
--- PASS: TestValidUserLogin/test_without_email_address (0.99s)
--- FAIL: TestValidUserLogin/test_with_domain_ID (0.51s)
--- FAIL: TestValidUserLogin/test_with_domain_Name (0.52s)
Contributor
Author
Absolutely. Thank you for catching that. |
Contributor
Author
|
It's cause the dex project has actual good tests and is testing against a real keystone while I fudged it in the tests and had hand added the data into my local keystone. So 👍 on having a good test environment. I'll clean this up and improve the test coverage. Thanks again for the review. |
OpenStack Keystone allows a user to authenticate against a domain. That domain can be specified either as the domain ID or the domain name when authenticating. The domain ID is a UUID or the special "default" domain ID so key off of that when deciding what to submit to the keystone API. Collapsed the code to share the domainKeystone struct by utilizing omitempty to skip unset fields. Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Contributor
Author
|
I've now tested it with the rocky container used in the tests as well as my local keystone. |
Contributor
Author
|
I've also rebased and fixed up for the log changes that happened recently. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OpenStack Keystone allows a user to authenticate against a domain. That domain can be specified either as the domain ID or the domain name when authenticating. The domain ID is a UUID or the special "default" domain ID so key off of that when deciding what to submit to the keystone API. Collapsed the code to share the domainKeystone struct by utilizing omitempty to skip unset fields.