Skip to content

Allow pure token based auth on DAV #24763

Closed

Description

@ChristophWurst

Currently we're using a Sabre plugin for HTTP basic auth, which checks the Authorization: basic xxxx header. With basic auth it's possible to authenticate either with user + login password or user + token. The latter is an interim solution to not break existing/legacy clients.

With pure token based auth, the client sends a HTTP header Authorization: token xxxx.

Steps to reproduce

  1. Generate device token
  2. Make DAV request using the Authorization: token xxx format

Expected behaviour

The client should authenticate successfully.

Actual behaviour

Auth exception is thrown as no HTTP basic header is found

ownCloud version: (see ownCloud admin page)
9.1.0.2

@LukasReschke @PVince81 @rullzer @owncloud/desktop-developers

Activity

  1. added this to the milestone on May 23, 2016
  2. DeepDiver1975 commented on May 23, 2016

    @DeepDiver1975
    Contributor
  3. PVince81 commented on May 23, 2016

    @PVince81
    Contributor

    Great stuff, yes.

    We still need to have a fallback in case we're connecting to older ownCloud versions that don't support token based auth.

  4. PVince81 commented on May 23, 2016

    @PVince81
    Contributor

    Why "bug" ? This is mostly an enhancement. @ChristophWurst

    I doubt there's enough time for 9.1 before the freeze for this to be covered properly. But would be a nice addition, yes.

    CC @cmonteroluque

  5. PVince81 commented on May 23, 2016

    @PVince81
    Contributor

    Okay, now I realize that I have mixed up "server support" and "client support".

    So first we need:

    1. make ownCloud DAV's endpoints support token auth
    2. make ownCloud's DAV client (fed shares, etc) use token auth when connecting to other ownClouds

    I guess this ticket is mostly about 1) which is important for clients to be able to use token auth.
    In that case it might still be feasible for 9.1. @ChristophWurst can you confirm ?

  6. ChristophWurst commented on May 23, 2016

    @ChristophWurst
    ContributorAuthor

    Exactly, it's about the server support. If there is enough time I'd like to implement this for 9.1.

  7. PVince81 commented on May 23, 2016

    @PVince81
    Contributor

    No more time for 9.1, moving to 9.2.

  8. modified the milestones: , on May 23, 2016
  9. PVince81 commented on May 23, 2016

    @PVince81
    Contributor

    @cmonteroluque FYI, note that this was not in any plan and is just nice to have

  10. MTRichards commented on May 26, 2016

    @MTRichards
    Contributor

    concur! thanks for asking.

  11. 10 remaining items

  12. ownclouders commented on Dec 21, 2017

    @ownclouders
    Contributor

    Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

    (This is an automated comment from GitMate.io.

  13. PVince81 commented on Dec 21, 2017

    @PVince81
    Contributor

    I'll let @DeepDiver1975 evaluate whether this is still relevant in the future, considering that we have oauth2 now and some slightly different plans

  14. ownclouders commented on Jan 29, 2018

    @ownclouders
    Contributor

    Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

    (This is an automated comment from GitMate.io.)

  15. PVince81 commented on Jan 29, 2018

    @PVince81
    Contributor

    Likely already implemented with oauth token

  16. lock commented on Jul 31, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  17. locked as resolved and limited conversation to collaborators on Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions