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

Fix "NameError: uninitialized constant OmniAuth::Auth0::TokenValidationError" #96

Merged
merged 4 commits into from
Mar 27, 2020
Merged

Fix "NameError: uninitialized constant OmniAuth::Auth0::TokenValidationError" #96

merged 4 commits into from
Mar 27, 2020

Conversation

stefanwork
Copy link
Contributor

Changes

This fixes the following error:

NameError: uninitialized constant OmniAuth::Auth0::TokenValidationError

in case there's an error inside of callback_phase. In our case, the error was a DNS resolution error. This caused the wrong error to display in our exception reporting system (but digging in revealed the DNS error).

Faraday::ConnectionFailed: Failed to open TCP connection to xxxxxx.auth0.com:443 (getaddrinfo: Temporary failure in name resolution)

I think 2.3.1 should be released with this fix.

References

N/A

Testing

rspec still passes.

Checklist

@stefanwork stefanwork requested a review from a team March 19, 2020 01:32
@stefanwork stefanwork changed the title Fix link to CONTRIBUTING.md. Fix "NameError: uninitialized constant OmniAuth::Auth0::TokenValidationError" Mar 19, 2020
@stefanwork
Copy link
Contributor Author

stefanwork commented Mar 19, 2020

Umm.. something went wrong in my rebase. Let me fix the commits.

Done.

@jeremiemv
Copy link

Thanks for this fix. I am currently hitting this error in local dev when I have an exception in my auth0 controller callback action .

Copy link

@relston relston left a comment

Choose a reason for hiding this comment

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

Bump on this! Also running into this issue.

@davidpatrick davidpatrick merged commit 14ce5a7 into auth0:master Mar 27, 2020
@davidpatrick davidpatrick added this to the 2.3.1 milestone Mar 27, 2020
@davidpatrick davidpatrick mentioned this pull request Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants