-
Notifications
You must be signed in to change notification settings - Fork 3
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
Adds Id to Credential Description #94
Conversation
src/Microsoft.Identity.Abstractions/ApplicationOptions/CredentialDescription.cs
Show resolved
Hide resolved
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.
LGTM
I've asked to 2 comment
get | ||
{ | ||
if (_cachedId == null) | ||
_cachedId = $"{SourceType}_{ReferenceOrValue}"; |
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.
Is it enough? or does it require $"{SourceType}_{Container}_{ReferenceOrValue}"
?
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.
ReferenceOrValue can be null, Container can also be null. SourceType will not be null.
Adding Container to the Id will make it stronger. Will update the PR.
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.
Updated the Id to use Container.
Today, Id property doesn't throw an exception if Container and/or ReferenceOrValue is null. It proceeds to generate a string that Id.Web will use to maintain a semaphore for that Id. Any concerns with this?
src/Microsoft.Identity.Abstractions/ApplicationOptions/CredentialDescription.cs
Show resolved
Hide resolved
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.
can you open an issue as well for easier tracking? thx.
Done |
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.
LGTM
Thanks @sruke
Introduces a new property on CredentialDescription
Summary of the changes
Introduces a unique identifier for a CredenentialDescription object