Skip to content

Implement token-based authentication with opening URL in external browser #4798

Closed

Description

@jturcotte

QtWebKit is now deprecated and the clock is ticking as Qt 5.6 is going to be the last release that we can rely on it working reliably on all our platforms.

There is the option to switch to QtWebEngine (#4692), but this would triple the size of our binary packages and might not be available on all linux distributions.

Having a custom authentication between the ownCloud client and server would also mean that we don't limit the authentication method supported by the server based on what the client can do.

The general idea would be:

  • The user enters the server URL in the client's wizard
  • The client asks the server to generate an authentication token
  • The client opens the desktop browser passing this token as a GET parameter
  • The user authenticates the token by signing in in the ownCloud web application using the configured server auth (user/pass, shibboleth, etc) and then confirm that he wants the client to have access
  • The client, meanwhile polling the server for the status of the token, gets told that it was associated with the account xyz through the browser

This will need infrastructure in the server, so we will need to keep using QtWebKit until we can require a server that supports this method.

Activity

  1. jturcotte commented on May 6, 2016

    @jturcotte
    ContributorAuthor

    /cc @owncloud/desktop-developers

  2. dragotin commented on May 6, 2016

    @dragotin
    Contributor
  3. dragotin commented on May 6, 2016

    @dragotin
    Contributor

    @MTRichards @cmonteroluque @LukasReschke FYI, please consider for quickly on the roadmap, as we (apart from striving for a cool solution) have a problem described in #4692

  4. MTRichards commented on May 6, 2016

    @MTRichards

    OK. I like this idea. But not sure how it integrates with what we have planned...need to connect the dots. @LukasReschke does this complement the plan we discussed for a new auth core in ownCloud?

  5. dragotin commented on May 17, 2016

    @dragotin
    Contributor

    A little image to show how it could work:

    auth_ne

  6. changed the title [-]Replace the QtWebKit dependency with an indirect token-based authentication[/-] [+]Implement token-based authentication and later remove QtWebKit dependency[/+] on May 20, 2016
  7. changed the title [-]Implement token-based authentication and later remove QtWebKit dependency[/-] [+]Implement token-based authentication with opening URL in external browser[/+] on May 20, 2016
  8. added this to the 2.3.0 milestone on May 20, 2016
  9. rullzer commented on May 20, 2016

    @rullzer
    Contributor

    Related to #4877

  10. modified the milestones: 2.4.0, 2.3.0 on May 20, 2016
  11. rullzer commented on May 20, 2016

    @rullzer
    Contributor

    COPIED IN:

    In order to support proper 2 factor support on the client we want to change the way you log in.

    In order to do this properly with supporting all 2 factor providers out there we figured it is easy to move the auth entirely to the server.

    So the workflow:

    1. First client start, user enters URL
    2. Server reports back that there is 2FA
    3. Client registers temp token with server
    4. Client opens https:///..../
    5. Users logs in via web
    6. Client gets a real token via its temp token
    7. All is well in the world
  12. guruz commented on May 21, 2016

    @guruz
    Contributor
  13. ChristophWurst commented on May 21, 2016

    @ChristophWurst

    thanks @guruz. Is this what we talked about in the call? cc @danimo

  14. rullzer commented on May 21, 2016

    @rullzer
    Contributor

    @ChristophWurst yes it is. And what we will discuss in a bit more detail on monday (with the others as well). Basically how to handle 2 factor on the client.

  15. butonic commented on Mar 22, 2017

    @butonic
  16. added a commit that references this issue on Mar 30, 2017
  17. added
    p2-high
    on Apr 26, 2017
  18. added a commit that references this issue on May 22, 2017
  19. added a commit that references this issue on Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Enhancementp2-highsev2-high

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions