-
Notifications
You must be signed in to change notification settings - Fork 22
Improve error messages for Azure AD error codes #193
Conversation
Everyone contributing to this PR have now signed the CLA. Thanks! |
862f19f
to
56498a9
Compare
Hey! Thanks for this enhancements and making aad-auth better. The code itself looks good and will help a lot of users as we saw bug reports around this. There are two things to consider before merging:
Do not hesitate if this triggers any questions or if you need any help! Thanks again :) |
56498a9
to
1a794c7
Compare
I've actually signed CLA right after I submitted this PR, but I guess it has to be checked by a human before an entitlement is added. Anyway, should be solved now. The test cases are added. |
Codecov Report
@@ Coverage Diff @@
## main #193 +/- ##
==========================================
+ Coverage 83.00% 83.24% +0.23%
==========================================
Files 36 36
Lines 2913 2948 +35
Branches 279 274 -5
==========================================
+ Hits 2418 2454 +36
+ Misses 377 376 -1
Partials 118 118
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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 for the changes!
A few minor nitpicks to improve readability, but everything else is great.
These errors usually comes from a mistake in setting up Azure AD application. Shows more useful messages (and sometimes a remedy) in the log to help in debugging.
1a794c7
to
25a148c
Compare
This makes the life easier when debugging.
25a148c
to
b1f06b7
Compare
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.
Looks great now! Thanks for addressing the suggestions.
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.
Excellent work! Thanks for your help here, I’m sure it will unlock a lot of users who wants to set that up.
This PR improve error messages for 2 cases:
65001
and7000218
[1], which can be found when the Azure AD application is mis-configured. Error65001
could even be resolved by just following the link in the error message.[1]