Skip to content
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

Merged
merged 1 commit into from
Jan 23, 2022

Conversation

arthurschreiber
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Oct 6, 2021

Codecov Report

Merging #1355 (95e98a1) into master (6de53dd) will decrease coverage by 1.13%.
The diff coverage is 9.09%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
src/connection.ts 61.99% <9.09%> (-4.61%) ⬇️
src/incoming-message-stream.ts 92.68% <0.00%> (-4.88%) ⬇️
src/token/handler.ts 52.12% <0.00%> (-1.22%) ⬇️
src/login7-payload.ts 89.74% <0.00%> (-0.52%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6de53dd...95e98a1. Read the comment docs.

@mShan0
Copy link
Contributor

mShan0 commented Jan 19, 2022

Did we want the warning to emit even if the client ID was specified?

@arthurschreiber
Copy link
Collaborator Author

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?

@arthurschreiber
Copy link
Collaborator Author

Ah, now I see! 💡 You're right, we should only emit the warning if the value is undefined. Would you mind fixing this up?

@mShan0
Copy link
Contributor

mShan0 commented Jan 19, 2022

will do!

@mShan0 mShan0 force-pushed the arthur/azure-ad-password-client-id branch 2 times, most recently from 1eb7f84 to b0325da Compare January 19, 2022 20:28
if (options.clientId !== undefined && typeof options.clientId !== 'string') {
throw new TypeError('The "config.authentication.options.clientId" property must be of type string.');
} else {
emitAzureADPasswordClientIdDeprecationWarning();
Copy link
Collaborator Author

@arthurschreiber arthurschreiber Jan 19, 2022

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>
@mShan0 mShan0 force-pushed the arthur/azure-ad-password-client-id branch from b0325da to 95e98a1 Compare January 19, 2022 20:34
@arthurschreiber arthurschreiber merged commit 70e77e1 into master Jan 23, 2022
@arthurschreiber arthurschreiber deleted the arthur/azure-ad-password-client-id branch January 23, 2022 13:58
@github-actions
Copy link

🎉 This PR is included in version 14.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants