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.
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
feat: add a new basic type identity #563
base: master
Are you sure you want to change the base?
feat: add a new basic type identity #563
Changes from 23 commits
f76470c
6d8ee59
b4abc9a
a274276
a2c07e6
4ebb633
7468b95
790a8f9
272005b
5be3e96
a6c374d
1bd54cb
98ea11e
68c18b7
7fc255e
31a0617
306f2d3
6c53491
e49419d
35794e6
c8f3aba
af5e0b2
edccbac
c49f565
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we probably want
&&
here (which matches the comment above too - "if both username and password are provided").There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per Harry's comment, I think we want to be strict and on the safer side: since both user/pass are intentionally set by the user if any is set, it means the user doesn't want to use the "basic" type identity, and it's likely that they used a empty password. If we change it to
&&
, the user might get a basic type identity, if it also has read access, it will be granted metrics access.For example, if the identities are:
And if the user input is (42, "nancy", ""), it will match bob although the user's intention is to use nancy since they set the username explicitly.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, that makes sense. In that case, let's just update the doc comment to match.