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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Shared Access Token

    Surfer
    3
    7
    209
    Loading More Posts
    • 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
      JLX89 last edited by

      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!

      nebulon 1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff @JLX89 last edited by 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 2 Replies Last reply Reply Quote 0
        • J
          JLX89 @nebulon last edited by

          @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 Reply Quote 0
          • J
            JLX89 @nebulon last edited by

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

            girish 1 Reply Last reply Reply Quote 0
            • girish
              girish Staff @JLX89 last edited by

              @JLX89 thanks, looking into the security report.

              1 Reply Last reply Reply Quote 0
              • nebulon
                nebulon Staff last edited by

                The latest package version has that security issue fixed.

                J 1 Reply Last reply Reply Quote 0
                • J
                  JLX89 @nebulon last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB