desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: Authentication waits forever

Open jvir opened this issue 2 years ago • 2 comments

⚠️ Before submitting, please verify the following: ⚠️

Bug description

When we configure an account in the client and it takes us to the authentication URL, if we do not enter data, it waits forever consuming server resources. There should be a time limit (10 minutes for example) and after that time the process should be cancelled. This is a BUG because each client could be making requests "indefinitely".

Steps to reproduce

  1. Open client
  2. Add new account
  3. Wait indefinitely

Expected behavior

Authentication process timeout

Which files are affected by this bug

n/a

Operating system

Linux

Which version of the operating system you are running.

Debian 12

Package

Other

Nextcloud Server version

29.0.0

Nextcloud Desktop Client version

3.7

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • [ ] Default internal user-backend
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Nextcloud Server logs

No response

Additional info

No response

jvir avatar Jul 11 '24 11:07 jvir

Are you referring to the window of your web browser that gets opened to the Nextcloud login page?

if we do not enter data, it waits forever consuming server resources.

Have you actually experienced a problem or seen evidence of this?

joshtrichards avatar Aug 11 '24 17:08 joshtrichards

Hello. In our infrastructure we find in the logs several open clients (approximately 10) making requests every 30 seconds which makes 120 requests/hour or 2880 requests/day (1200 and 28800 in our case). Knowing that a token is valid for 20 minutes that's a lot of requests saved and a cleaner log.

jvir avatar Aug 16 '24 12:08 jvir