Notify user, when response of Hub Authentication takes a long time
Please agree to the following
- [X] I have searched existing issues for duplicates
- [X] I agree to follow this project's Code of Conduct
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
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?
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.