Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Surfer
  3. webdav on surfer

webdav on surfer

Scheduled Pinned Locked Moved Solved Surfer
17 Posts 6 Posters 2.3k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      D Offline
      drew
      wrote on last edited by
      #1

      Does this generally work? The docs says it does but I can't get it to authenticate with my cloudron credentials. Tried the windows drive mounter, chromium, and firefox... no dice.

      I saw this still-open GH issue referenced in another thread:
      https://github.com/OpenMarshal/npm-WebDAV-Server/issues/85

      But my PW doesn't contain a colon... and is that still what surfer uses for webdav auth? I don't think I want any of my content protected by an auth library that, according to the repo, hasn't been updated in four years??

      jdaviescoatesJ 1 Reply Last reply
      0
      • D drew

        Does this generally work? The docs says it does but I can't get it to authenticate with my cloudron credentials. Tried the windows drive mounter, chromium, and firefox... no dice.

        I saw this still-open GH issue referenced in another thread:
        https://github.com/OpenMarshal/npm-WebDAV-Server/issues/85

        But my PW doesn't contain a colon... and is that still what surfer uses for webdav auth? I don't think I want any of my content protected by an auth library that, according to the repo, hasn't been updated in four years??

        jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote on last edited by
        #2

        @drew said in webdav on surfer:

        I can't get it to authenticate with my cloudron credentials

        I think perhaps the docs are out of date and you now need to use an access token. @nebulon

        I use Cloudron with Gandi & Hetzner

        1 Reply Last reply
        0
        • girishG girish moved this topic from Support on
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #3

          Correct, have to update the docs then. So for webdav access surfer uses an accesstoken as the password since we moved the app to use OpenID

          1 Reply Last reply
          1
          • nebulonN nebulon marked this topic as a question on
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #4

            Docs have been updated https://docs.cloudron.io/apps/surfer/#webdav

            1 Reply Last reply
            1
            • nebulonN nebulon has marked this topic as solved on
            • D Offline
              D Offline
              drew
              wrote on last edited by
              #5

              Thanks! I'll check it out.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                drew
                wrote on last edited by drew
                #6

                Hrm... using the API key as the PW I'm still getting 401s. Updated to the latest version that just dropped, too. I tried using the API key as the password with my cloudron username, no username, the api key name, on a URL with the trailing slash in the docs, without, in a subdirectory, using the windows native client and firefox, and I still can't get it to authenticate.

                Any idea where I should go from here? It's not a production site so "blow it away and try again" is fine as long as it stands a chance of working.

                The credential values are definitely correct and I know the URL is hitting the right place because I can see the requests in the logs:

                [etc. etc. etc. ]
                Sep 26 12:34:28OPTIONS /_webdav 401 0.850 ms - -
                Sep 26 12:34:28OPTIONS /_webdav 401 1.054 ms - -
                Sep 26 12:34:28OPTIONS /_webdav 401 1.400 ms - -
                Sep 26 12:34:29PROPFIND / 200 1.722 ms - 2077
                Sep 26 12:36:00OPTIONS /_webdav 401 1.484 ms - -
                Sep 26 12:36:00OPTIONS /_webdav 401 2.019 ms - -
                Sep 26 12:36:01OPTIONS / 200 2.816 ms - 2077
                Sep 26 12:36:01OPTIONS /_webdav 401 0.968 ms - -
                Sep 26 12:36:01PROPFIND / 200 1.397 ms - 2077
                Sep 26 12:41:19GET /wp-login.php 404 2.514 ms - -
                Sep 26 12:41:32GET /_webdav/ 401 0.832 ms - -
                Sep 26 12:41:41GET /_webdav/ 401 1.130 ms - -
                Sep 26 12:42:13GET /favicon.ico 404 1.339 ms - -
                Sep 26 12:42:14GET /_webdav 401 0.924 ms - -
                Sep 26 12:42:20GET /_webdav 401 0.942 ms - -
                Sep 26 12:43:38GET /_webdav 401 0.911 ms - -
                Sep 26 12:43:44GET /_webdav/ 401 0.711 ms - -
                Sep 26 12:44:01GET /_webdav/ 401 1.219 ms - -
                Sep 26 12:45:07GET /_webdav/ 401 0.755 ms - -
                Sep 26 12:45:14GET /_webdav/ 401 0.723 ms - -
                Sep 26 12:45:22GET /_webdav 401 1.043 ms - -
                Sep 26 12:45:24GET /_webdav 401 0.770 ms - -
                Sep 26 12:46:30GET /_webdav/public/ 401 0.751 ms - -
                Sep 26 12:46:33GET /_webdav/public/ 401 0.780 ms - -
                Sep 26 12:46:41GET /_webdav/public/ 401 0.671 ms - -
                Sep 26 12:46:50GET /_webdav/public 401 2.330 ms - -
                Sep 26 12:46:54GET /_webdav/public 401 0.719 ms - -
                Sep 26 12:46:57GET /_webdav/public 401 0.771 ms - -```
                1 Reply Last reply
                0
                • nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #7

                  Just tried also on a fresh installation and as far as I can tell nothing really changed there and it works at least from the gnome filemanager with the uri davs://surfer.domain.com/_webdav and username (which is not relevant) and the api token for the password.

                  D jdaviescoatesJ 2 Replies Last reply
                  0
                  • nebulonN nebulon

                    Just tried also on a fresh installation and as far as I can tell nothing really changed there and it works at least from the gnome filemanager with the uri davs://surfer.domain.com/_webdav and username (which is not relevant) and the api token for the password.

                    D Offline
                    D Offline
                    drew
                    wrote on last edited by
                    #8

                    @nebulon Ok I'll poke a little more at it.

                    1 Reply Last reply
                    0
                    • nebulonN nebulon

                      Just tried also on a fresh installation and as far as I can tell nothing really changed there and it works at least from the gnome filemanager with the uri davs://surfer.domain.com/_webdav and username (which is not relevant) and the api token for the password.

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #9

                      @nebulon said in webdav on surfer:

                      Just tried also on a fresh installation and as far as I can tell nothing really changed there and it works at least from the gnome filemanager with the uri davs://surfer.domain.com/_webdav and username (which is not relevant) and the api token for the password.

                      It does work. But unlike other webdav mounts (i.e. my various Nextcloud accounts) it doesn't stay connect/ remember the password like it used to before you moved to Access Tokens only.

                      I find this rather frustrating as every time I want to do anything on my local machine, like save a file to my Surfer app, I first have to login via the web and copy the Access Token again.

                      I use Cloudron with Gandi & Hetzner

                      1 Reply Last reply
                      0
                      • girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #10

                        Interesting. AFAIK, there is no difference between tokens and username/password (for the webdav client).

                        1 Reply Last reply
                        0
                        • robiR Offline
                          robiR Offline
                          robi
                          wrote on last edited by
                          #11

                          what about what happens after, session caching, cookies, etc

                          Conscious tech

                          1 Reply Last reply
                          0
                          • girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #12

                            WebDAV doesn't have session/cookies etc

                            1 Reply Last reply
                            0
                            • nebulonN Offline
                              nebulonN Offline
                              nebulon
                              Staff
                              wrote on last edited by
                              #13

                              most likely this is a client issue, where for some reason your webdav client does not cache the password (now password is that access token)

                              jdaviescoatesJ 1 Reply Last reply
                              1
                              • nebulonN nebulon

                                most likely this is a client issue, where for some reason your webdav client does not cache the password (now password is that access token)

                                jdaviescoatesJ Offline
                                jdaviescoatesJ Offline
                                jdaviescoates
                                wrote on last edited by
                                #14

                                @nebulon but it does cache it for Nextcloud username/ passwords and used to cache it for Surfer too before you changed it to acess token/ pw only.

                                The only thing that has changed in my set up is Surfer itself.

                                I use Cloudron with Gandi & Hetzner

                                girishG 1 Reply Last reply
                                0
                                • jdaviescoatesJ jdaviescoates

                                  @nebulon but it does cache it for Nextcloud username/ passwords and used to cache it for Surfer too before you changed it to acess token/ pw only.

                                  The only thing that has changed in my set up is Surfer itself.

                                  girishG Offline
                                  girishG Offline
                                  girish
                                  Staff
                                  wrote on last edited by
                                  #15

                                  @jdaviescoates yeah, that is what is strange. for the client, the access token is no different from a password. there's no difference.

                                  jdaviescoatesJ 1 Reply Last reply
                                  1
                                  • bmannB Offline
                                    bmannB Offline
                                    bmann
                                    wrote on last edited by
                                    #16

                                    Working for me on fresh installs!

                                    1 Reply Last reply
                                    0
                                    • girishG girish

                                      @jdaviescoates yeah, that is what is strange. for the client, the access token is no different from a password. there's no difference.

                                      jdaviescoatesJ Offline
                                      jdaviescoatesJ Offline
                                      jdaviescoates
                                      wrote on last edited by jdaviescoates
                                      #17

                                      @girish said in webdav on surfer:

                                      @jdaviescoates yeah, that is what is strange. for the client, the access token is no different from a password. there's no difference.

                                      I worked it out!

                                      When clicking Connect in Nautilus, it wasn't prompt/ asking if I wanted to save my password at all, I was just presented with this:

                                      Screenshot from 2023-10-19 19-23-26.png

                                      And the only thing possible to do when that screen is displayed it to either enter a password or cancel, it's not even possible to view another app or anything.

                                      But it seems it should as per e.g. this image from this guide https://www.knthost.com/nextcloud/setup-gnome-nautilus-access-nextcloud-files-webdav

                                      416dd0a1-cd03-4b2d-8786-75293ce3cfe9-image.png

                                      And because I must've chosen "Remember forever" when setting up Nextcloud mount (either that or just adding Nextcloud Accounts via Ubuntu Online Account settings does that anyway), when I tried testing it with an instance of Nextcloud instead of Surfer it doesn't even ask for a password at all. So I figured it must've remember the password somewhere...

                                      So I searched for Passwords and found this Passwords and Keys app that I've never seen/ used before

                                      7219f139-e7fc-4d62-8fa4-b67a120cad09-image.png

                                      And I saw there was a pw stored for library.uniteddiversity.coop

                                      4cb386f0-3268-4dc5-b7e4-2de7a6f4dcb9-image.png

                                      But of course that was the old password before Surfer updated to just use access tokens. So I edited the pw to be the new access token, and now it all works again! Phew.

                                      And just to test, I decided to try and connect to a Surfer app that I've never tried to mount locally before, and lo and behold this time it did show this:

                                      Screenshot from 2023-10-19 20-20-15.png

                                      Although I note that Nautilus required me to add a Username before being able to hit the Connect button (the button remained greyed out until both a Username and Password were entered into the fields).

                                      Anyways, all working again now (and now I now where to find/ how to change the "Remembered forever" passwords too, so bonus!) 🙂

                                      I use Cloudron with Gandi & Hetzner

                                      1 Reply Last reply
                                      2
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • Bookmarks
                                        • Search