-
Notifications
You must be signed in to change notification settings - Fork 154
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
How to handle cancelled login or access denied #75
Comments
I've started work on some better handling of errors based on RFC 6749 and extended the |
hmm, what would this fall under for error type? I'm thinking that maybe we should have an exception type for each one of those scenaros? |
Sure, I can implement it that way if you'd like. Currently I have extended the |
What do you think? Seems like we use UnexpectedResponseException for a lot of things |
I'm inclined to agree with you as it makes for easier handling of each scenario and allows us to populate the exceptions with the relevant information from each of the responses without the ambiguity. |
I think we should do it :) @titarenko what do you think? |
Essentially, when I added class P. S. Sorry for very late responses, I'm very busy with my primary projects and rarely have spare time now. |
@titarenko Thanks for your response, we are all in that boat :). I'm just trying to help where I can :). (P.S., I need access to the build server :)). |
We too had this issue, where when the user clicks cancel while giving their credentials to the third party provider. I've taken a similar approach to the one @ProNotion has outlined, reusing the |
@marpstar that would be awesome :) |
@marpstar were you able to create a pr for this? |
How are people handling the scenario where someone chooses a login service, gets redirected to the service login page and then decides to cancel the process. Currently an exception of type 'OAuth2.Client.UnexpectedResponseException' is thrown but that doesn't really handle the situation.
Thanks
The text was updated successfully, but these errors were encountered: