-
Notifications
You must be signed in to change notification settings - Fork 438
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: allow specifying the clientId
when using azure-active-directory-password
auth
#1355
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1355 +/- ##
==========================================
- Coverage 80.86% 79.73% -1.14%
==========================================
Files 88 88
Lines 4662 4672 +10
Branches 860 864 +4
==========================================
- Hits 3770 3725 -45
- Misses 617 679 +62
+ Partials 275 268 -7
Continue to review full report at Codecov.
|
Did we want the warning to emit even if the client ID was specified? |
I'm a bit confused. I don't think we want that, and I don't think the current code does that - it only emits the warning if the client id is not specified. Or am I misunderstanding your question? |
Ah, now I see! 💡 You're right, we should only emit the warning if the value is |
will do! |
1eb7f84
to
b0325da
Compare
if (options.clientId !== undefined && typeof options.clientId !== 'string') { | ||
throw new TypeError('The "config.authentication.options.clientId" property must be of type string.'); | ||
} else { | ||
emitAzureADPasswordClientIdDeprecationWarning(); |
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.
We're emitting a deprecation warning if the user did not provide a value for clientId
because we want to require the user to pass in a clientId
value in the future. 👍
…ory-password` auth Co-authored-by: Michael Sun <v-mutsun@microsoft.com>
b0325da
to
95e98a1
Compare
🎉 This PR is included in version 14.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.