-
Notifications
You must be signed in to change notification settings - Fork 35
feat: Modify Auth Callback Controller to support Xero errors #92
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
e625b45 to
ae68ddf
Compare
- adds error param validation - throw custom OAuthException if an error is found - update README to describe error handling for Laravel 8-11
ae68ddf to
eddea44
Compare
|
Thanks @joe-niland, |
|
This has been released as 4.5.0 :) |
|
Thanks for maintaining this great project @hailwood ! |
|
Hi @JamesFreeman, I had considered releasing this as a 5.0.0 release, but thought that adding additional array keys shouldn't be breaking unless you're comparing the exact array which outside of tests I couldn't think of any given reason to so considered it a feature release. Though I realise now reading your last part that the error response logic has indeed changed as an error will result in a 500 rather than a 422 validation exception, which I hadn't considered. I apologise for releasing this as a breaking change, Thank you for bringing it to my attention! |
|
Alright, that release has been reverted and released as version 5.0.0 along with a description of what are breaking changes. @JamesFreeman, Would you consider providing any tests that you think would be useful for the package to have? Even if you don't have time for a PR, just dumping them in an issue so I can reference them when I finally add tests would be immensely helpful. |
|
Thanks @JamesFreeman for raising this. @hailwood thanks for sorting this out. It didn't occur to me that it could be a breaking change because, at least in my experience, the previous default behaviour was to redirect back to the Xero auth page, on which Xero would return a 500 error. I'm not too sure how to implement this change in an alternative way, other than perhaps adding a config item to control whether an exception is raised or not. @JamesFreeman what was your code doing in response to an 'access declined' error from Xero? |

What
Why