cryptomator icon indicating copy to clipboard operation
cryptomator copied to clipboard

Notify user, when response of Hub Authentication takes a long time

Open infeo opened this issue 2 years ago • 2 comments

Please agree to the following

Summary

Develop and implement ux concept for raising user awarness if server response during authentication exceeds a certain threshold.

Motivation

Some user have different proxy settings for Cryptomator and the default Browser, leading to not being able to authenticate and unlock a vault. #3113 mitigates this issue, but since Cryptomator waits for repsonse from the browser, which requires user interaction, we cannot just time restrict it.

We should develop an UX concept to make the user aware if authentication takes a very long time.

Considered Alternatives

Time restict whole flow: Since the flow requires user interaction, this would need timeout in minutes.

Anything else?

Follow up of #3113

infeo avatar Oct 20 '23 11:10 infeo

I believe I can do this! What kind of time threshold were you thinking of? Just in terms of how long of a wait before telling the user it's taking longer than expected or something along those lines?

jake-brennan714 avatar May 24 '24 20:05 jake-brennan714

We pass an http client to our OAuth authentication library. Furthermore we make some ReST calls. On both cases we need to set timeouts (like 10s...?).

As mentioned above we DO NOT want an overall timeout for the complete flow, as it involves user interaction and can theoretically take various minutes (e.g. if the user first needs to look up a password).

So each http call shall timeout individually.

overheadhunter avatar May 27 '24 06:05 overheadhunter