-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Identity] Comment improvements. Identity generally doesn't return null anymore #15783
Conversation
sdk/identity/identity/src/credentials/interactiveBrowserCredential.ts
Outdated
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.
Couple of nitpicks and a typo where a sentence didn't get completely removed.
* client secret details from environment variables. If the expected | ||
* environment variables are not found at this time, the getToken method | ||
* will return null when invoked. | ||
* Creates an instance of the EnvironmentCredential class and reads client secret details from environment variables. |
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.
Nit: certificates as well as username/password can also be used, maybe they should be mentioned as well (currently it just says "client secret details")?
sdk/identity/identity/src/credentials/interactiveBrowserCredential.browser.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Will Temple <witemple@microsoft.com> Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
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.
This comment has been minimized.
This comment has been minimized.
909e2f8
to
e1dde79
Compare
Hello @sadasant! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
I had an issue with the git history of this PR, but it should be good now. |
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 readme.python.md for Service Bus and Event Hub for 2021-06-01-preview (Azure#15783) Co-authored-by: v-ajnava <v-ajnava@microsoft.com>
updated readme.python.md for Service Bus and Event Hub for 2021-06-01-preview (Azure#15783) Co-authored-by: v-ajnava <v-ajnava@microsoft.com>
I’ve got some customers writing to me directly with some confusion regarding getToken returning null. We’ve got some remnants of this type, but at this point, Identity doesn’t return null (except for ClientSecretCredential in the browser, which is generally unusable outside of our tests). This PR is to update these docs and to give a bit of clarity on what errors we’re throwing.