Client: [OAuth2] When opening the browser for authentication, the account wizard displays no content and allows forward navigation

Created on 2 Jun 2017  路  8Comments  路  Source: owncloud/client

Relates to: https://github.com/owncloud/client/issues/5811

Steps to reproduce

  1. Use the URL of a server with OAuth app active in the account wizard.
  2. Clicking on the tray icon brings back the wizard with no content but the navigation buttons

  • If next > is selected, wizard will take you to next page where it fails to connect but create the local sync folder.
  • If Skip folders configuration is selected next without authenticating in the browser, a _userless_ account will be created (i.e. @<server.tld> on the account tab, etc.)

Expected behavior

  • [x] Display a spinner or some other component to inform the user that an action is required (maybe also a button to relaunch the browser in case it was closed by mistake)
  • [ ] Still offer the "Application Password" option as a fallback from OAuth.

  • [x] Change the behavior of the buttons:

    • Cancel: will close the wizard and discard the account creation (e.g. if the user forgot the password and wants to stop the action for good)

    • Back will allow to go back to wizard's first page to change the URL in case of mistake.

cc/ @ogoffart

Design & UX ReadyToTest bug p1-urgent p2-high

Most helpful comment

I can't imagine a use case, where Application Password is required instead of OAuth2. Fallback for what? I would propose to drop this. @SamuAlfageme ?

Do you know if this will be server configurable to force OAuth and block Application Password?

@Emil-G This is not the right repository for the server-side implementation. Needs to be addressed in https://github.com/owncloud/oauth2 or can be discussed on https://central.owncloud.org/ .

All 8 comments

I'm thinking this should be higher priority, maybe even mandatory for 2.4.0
What do you think @pmaier1 @ogoffart @tomneedham @lukebier @joneug ?

I agree!

"Still offer the "Application Password" option as a fallback from OAuth." - Do you know if this will be server configurable to force OAuth and block Application Password?

I can't imagine a use case, where Application Password is required instead of OAuth2. Fallback for what? I would propose to drop this. @SamuAlfageme ?

Do you know if this will be server configurable to force OAuth and block Application Password?

@Emil-G This is not the right repository for the server-side implementation. Needs to be addressed in https://github.com/owncloud/oauth2 or can be discussed on https://central.owncloud.org/ .

Status with @ogoffart's tweaks: https://github.com/owncloud/client/pull/5825:

| Wizard waiting for browser | OAuth flow error |
|:-----------------------:|:----------------------------------------:|
| screenshot 2017-06-12 09 36 35 | screenshot 2017-06-12 09 30 15 |

As for the

Still offer the "Application Password" option as a fallback from OAuth.

I can't imagine a use case, where Application Password is required instead of OAuth2. Fallback for what?

You're right. I agree we could drop the application password support for the client and restrict it's use to authenticate with WebDAV clients (see this 2FA use-case example) or other software that does not implement all auth methods we currently support.

However, If and only if the server announces and supports basic auth. as well, we could temporarily offer support for it as fallback for the OAuth application malfunctioning to avoid the user being locked out of his account. As said, as a temporary solution until the OAuth workflow is reliable enough to wrap all authentication flows, when it'd not only be prioritized, but the only method if the server supports it.

Some more error handling requested by @SamuAlfageme : https://github.com/owncloud/client/pull/5668#issuecomment-307722242

yes, this issue might confuse users and this is important since we need it for SAML scenarios: p1

Closing here as this is ready, merged and tested 馃憤

Follow-up issues for some more OAuth2 aspects in https://github.com/owncloud/client/issues/5847 & https://github.com/owncloud/client/issues/5848

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michaelstingl picture michaelstingl  路  4Comments

vco1 picture vco1  路  3Comments

ctrlbru picture ctrlbru  路  5Comments

michaelstingl picture michaelstingl  路  5Comments

tflidd picture tflidd  路  3Comments