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. Shared Access Token

Shared Access Token

Scheduled Pinned Locked Moved Solved Surfer
7 Posts 3 Posters 1.4k Views 3 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.
  • J Offline
    J Offline
    JLX89
    wrote on last edited by
    #1

    Hello,
    We currently have Surfer setup as User Restricted Access. We'd like the ability to generate a "Shared Access Signature" or Access Token, to publish some files publicly.

    This would be mainly for sharing files publicly via URL, if we would want to distribute a specific file for download. So when someone gets a direct link with the token, they can download the file but not list anything else in the directory.

    Example: https://files.cloudron.server/public-files/file.txt?token=api6fc346eb80d8bc3cf286d08f103f8ed2

    Thank you!

    nebulonN 1 Reply Last reply
    0
    • J JLX89

      Hello,
      We currently have Surfer setup as User Restricted Access. We'd like the ability to generate a "Shared Access Signature" or Access Token, to publish some files publicly.

      This would be mainly for sharing files publicly via URL, if we would want to distribute a specific file for download. So when someone gets a direct link with the token, they can download the file but not list anything else in the directory.

      Example: https://files.cloudron.server/public-files/file.txt?token=api6fc346eb80d8bc3cf286d08f103f8ed2

      Thank you!

      nebulonN Away
      nebulonN Away
      nebulon
      Staff
      wrote on last edited by nebulon
      #2

      @JLX89 you can already use the regular REST api for this. Generate an access token via the user interface and then you can hand out links with them like:

      https://files.cloudron.server/api/files/<filepath>?accessToken=<accesstoken>
      
      J 2 Replies Last reply
      0
      • nebulonN nebulon

        @JLX89 you can already use the regular REST api for this. Generate an access token via the user interface and then you can hand out links with them like:

        https://files.cloudron.server/api/files/<filepath>?accessToken=<accesstoken>
        
        J Offline
        J Offline
        JLX89
        wrote on last edited by
        #3

        @nebulon Perfect, thank you! I didn't see the URL Endpoints listed in the documentation and wasn't sure if that was possible.

        1 Reply Last reply
        0
        • nebulonN nebulon

          @JLX89 you can already use the regular REST api for this. Generate an access token via the user interface and then you can hand out links with them like:

          https://files.cloudron.server/api/files/<filepath>?accessToken=<accesstoken>
          
          J Offline
          J Offline
          JLX89
          wrote on last edited by
          #4

          @nebulon I just sent an email to the Cloudron Support email address, it's urgent if you can take a look.

          girishG 1 Reply Last reply
          0
          • J JLX89

            @nebulon I just sent an email to the Cloudron Support email address, it's urgent if you can take a look.

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

            @JLX89 thanks, looking into the security report.

            1 Reply Last reply
            0
            • nebulonN Away
              nebulonN Away
              nebulon
              Staff
              wrote on last edited by
              #6

              The latest package version has that security issue fixed.

              J 1 Reply Last reply
              0
              • nebulonN nebulon

                The latest package version has that security issue fixed.

                J Offline
                J Offline
                JLX89
                wrote on last edited by
                #7

                @nebulon Perfect, thank you! @nebulon @girish thanks for the fast response on this!

                1 Reply Last reply
                0
                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