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

Bubble http exceptions so apps could catch them #269

Merged
merged 1 commit into from
Oct 30, 2020

Conversation

rayluo
Copy link
Collaborator

@rayluo rayluo commented Oct 22, 2020

This can likely close #263 .

@AlmogBentz You can install this branch for your smoke testing:

pip install git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@differentiate-oidc-discovery-errors

After this patch, when the lower level network-relevant error (came from requests) occurs, they would be bubbled up as-is, therefore you won't see the "Authority would typically be in a format of ..." error message. You could catch them and treat them differently, therefore satisfying your desire to handle different exception differently.

@rayluo rayluo marked this pull request as ready for review October 26, 2020 23:18
@rayluo rayluo requested a review from abhidnya13 October 26, 2020 23:19
@rayluo
Copy link
Collaborator Author

rayluo commented Oct 26, 2020

Did not (yet?) hear back from @AlmogBentz . @abhidnya13 please help take a look.

Copy link
Contributor

@abhidnya13 abhidnya13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me overall, just some questions/suggestions around supportability !

@abhidnya13 abhidnya13 self-requested a review October 30, 2020 00:22
Copy link
Contributor

@abhidnya13 abhidnya13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@rayluo rayluo merged commit 1f56396 into dev Oct 30, 2020
@rayluo rayluo deleted the differentiate-oidc-discovery-errors branch October 30, 2020 00:26
@rayluo rayluo mentioned this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Getting "Unable to get authority configuration" Error when Authority is properly sent
2 participants