-
Notifications
You must be signed in to change notification settings - Fork 46
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
Universal Login closes on error when using WinForms with WebBrowserBrowser #79
Comments
You're not using the New Universal Login, that's the Classic login. |
Ah, 3.x seems to fix it. I was on 2.4.0 |
Yeah 2.x used Internet Explorer - nothing really worked that well with it any more :( Even the GitHub.com sign-in page despite being owned by Microsoft took up about a third of the screen with a giant "Internet Explorer not supported" banner. Feel free to respond here or raise a new issue if you have any problems with 3.x |
Actually I can reproduce this now. If you implement your own IBrowser the window will close with a 400 response. Even if I use the exact code from https://github.com/auth0/auth0-oidc-client-net/blob/master/src/Auth0.OidcClient.WinForms/WebBrowserBrowser.cs It will still do it. Any idea on why that might be? I will fork and reproduce if needed. |
Oh, wait. I see you what you did. You have that one and WebViewBrowser which is the new one. I plopped that in and everything is good again. That's not going to be Win7 compatible though is it? EDIT: Nope, that's Win10 only. So, need to figure out why WebBrowserBrowser does this :P |
Seems like you can "fix" this with the following:
Just ignoring a 400 Bad Request status code. I suppose this could mess up other things, but this does resolve the issue as far as I can tell. |
The From their description:
I'll checked out the |
Oh, it does work on 7 and 8? I found this and it said it was 10 only... Nothing changed, this was always broken there but "fixed" in the latest version. It wasn't really fixed in the WebBrowserBrowser, you just changed the default implementation of IBrowser so this one wasn't used any longer. |
That is the |
Ok, I'll switch to that thing since its compatible with 7. I suppose you can close (again, and for the last time hopefully 😂). Maybe this will help someone else who hasn't updated and has their own IBrowser implementation. Thanks for your help and patience ;) |
No problem. I've been able to reproduce the closing-window on failed password with the older |
My guess is this isn't an issue with this client specifically, but the implementation of the new universal login, but just going to file here.
When using the New Universal Login, if in the winforms client you type in the wrong username/password, the browser just closes and gives you an Http error. In the old flow, the browser would remain open during failed attempts.
The text was updated successfully, but these errors were encountered: