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

User-friendly authentication errors #63

Merged
merged 1 commit into from
Jul 5, 2023
Merged

User-friendly authentication errors #63

merged 1 commit into from
Jul 5, 2023

Conversation

Anthirian
Copy link
Contributor

This code adds a bit of exception handling around the various authentication options to parse the error returned by Microsoft and display it in a user-friendly format (instead of a stack trace) like so:

AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '00000002-0000-0ff1-ce00-000000000000'.
Trace ID: bfee79c7-0207-4e2c-a58b-14a16ad20300
Correlation ID: 1de9b66c-7cb3-4a30-9326-7b74319f6b63
Timestamp: 2023-06-23 10:16:39Z
Not enough information was supplied to authenticate

@dirkjanm dirkjanm merged commit c4ea49f into dirkjanm:master Jul 5, 2023
@dirkjanm
Copy link
Owner

dirkjanm commented Jul 5, 2023

thanks, appreciate the PR!

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.

None yet

2 participants