-
Notifications
You must be signed in to change notification settings - Fork 119
Proposal of solution to #173 #193
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
Conversation
I like the proposal! My only concern is that providing a default implementation of the protocol from the library is already assuming application-specific implementation details. At that point, we are better of doing the return in the I rather copy-paste the protocol implementation. I seem that concerned before in other libraries and it is frustrating to deal with. I do like however the proposed implementation since having the protocol allows the the app to hook into the behavior they would like to see. Being said, I am not sure, that is my general thought in the subject thus far. |
|
Ok.. I am wrong. It halts the connection, and you dont seem to be able to change the code, only render errors. |
What I've written in the strike through message seems to be true for the https://hexdocs.pm/plug/Plug.ErrorHandler.html, but Phoenix seems to only allow you to do the rendering of it. |
Per your proposal moved default impl code to documentation for anyone interested to paste in. Now that I worked with this for a bit, I see another issue with it. If you have two ueberauth apps inside single codebase, you cannot have different behaviour. That is highly unlikely to matter though. |
Yep, Ueberauth in general needs some love, rearchitect the library from bottom up to avoid these global configs as the first approach. Sorry to bother you, do you mind updating the https://github.com/ueberauth/ueberauth/blob/master/CHANGELOG.md and bump the |
Sure thing. |
🚀 💜 |
If the method of the solution will be accepted, I will develop this proposal to full PR with appropriate tests and documentaiton.