-
Notifications
You must be signed in to change notification settings - Fork 669
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
[OAuth2] Authorization fails with a Connection refused after 5min delay #6612
Comments
Hey @mirekys! Thanks for reporting! Timing out is actually a good practice not to leave an unused, open connection for too long in any piece of software. Back in the client's wizard, you have " Do you see this after step 2? Re-opening and authorizing works for you? |
There is a 5 minute timeout i the client. After this timeout we abort the connection procedure. (Forget all the states and stop listening on localhost)
Not really an open connection, just an open port. (listening on localhost only) I'm actually considering removing the timeout. There is maximum one active connection attemps per account. But yes, once connected, or when the wizard is closed, the server is shut down. So the browser will not be able to connect. Overall I think this is a minor inconvinience, and probably not worth fixing. |
Hello @SamuAlfageme , I'm using an already configured account in the client (which was previously set up using BaseAuth), not the wizard, and in that case only a message 'Signed out from server x as user y' is shown in the client. I share the same viewpoint that this is just a minor inconvinience for the user, and I'm okay with the timeout. But we already received some complaints about this, because it looks scary for the users. :) Maybe the server listening on the port for callback can be replaced by something simple that just serves a nice static error page after the timeout occurs? |
Yes, please remove the timeout. I'd agree with @mirekys .. it looks scary to users. |
There is no real reason to have a timeout. The connection can stay open as long as we are not authenticated. The User can still re-open a browser from the UI at any time. Issue #6612
There is no real reason to have a timeout. The connection can stay open as long as we are not authenticated. The User can still re-open a browser from the UI at any time. Issue #6612
Timeout removed: #6617 |
Expected behaviour
Client's web-side OAuth2 authorization should either succeed or
fail with a meaningful error message to the user (that time period
for authorization has expired an he should try again faster).
Actual behaviour
Connection refused to the following callback URL is shown in the browser after clicking Authorize:
Steps to reproduce
Server configuration
Operating system: RHEL7
Web server: Apache
Database: PostgreSQL
PHP version: 7.1
ownCloud version: 10.0.8
Storage backend (external storage): local
OAuth2 provider app enabled on the server
Client configuration
Client version: 2.4.1
Operating system: probably all
OS language: en_US
Qt version used by client package (Linux only, see also Settings dialog): Qt 5.11.0
Client package (From ownCloud or distro) (Linux only): distro
Logs
The text was updated successfully, but these errors were encountered: