cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Password protected folders when using the embedder

Password protected folders when using the embedder

mikexavier
New member | Level 2
Go to solution

I have set up an app on dropbox and added some folders. Using the anchor tag method described here it displays the contents of the root folder correctly.

However, it doesn't seem to respect the sharing rules set up of individual folders within that app.

Folder sharing settings:
Screenshot 2021-05-19 at 16.34.48.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If I am on the webpage where this content is displayed, I can double click into this folder without entering a password.

What did I miss?

Thanks for your help!

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

Oh I see, thanks for clarifying. That's expected then. Technically, a password applies to a shared link, not a folder itself. And, supplying a shared link to the parent folder enables access to anything in that folder. Any shared links that may or may not exist for the items underneath, and the settings for those other shared links, that don't come in to play.

 

I don't think there's a good way to set this up the way you want exactly unfortunately, other than rearranging your folders and using multiple Embedders.

View solution in original post

6 Replies 6

Greg-DB
Dropbox Staff
Go to solution

Are you signed in to the account that owns that shared link? If so it won't prompt for the password.

mikexavier
New member | Level 2
Go to solution

I tried signing out, and no joy. 

Does it have anything to do with the parent folder settings?  For the contents of that parent folder to be visible you need to set it to "anyone with link".

Greg-DB
Dropbox Staff
Go to solution

I believe just the settings on the supplied shared link matter, not a parent folder. It may be worth double checking that you've set the password on the same shared link as you've supplied to the Embedder.

 

Also, another thing to note is that it will not prompt for the password again if you've already supplied the password in that session.

 

I put up a simple example of the Embedder with a shared link for a folder protected with a password here: https://brave-wing-9849b2.netlify.app/ . The password for that sample shared link is just "password". That's working as expected for me.

 

If something still isn't working for you, feel free to share a sample page so we can take a look. You can also share privately here if you'd prefer: https://www.dropbox.com/developers/contact

mikexavier
New member | Level 2
Go to solution

There is no password set on the shared link supplied to the Embedder as that's the parent folder. Ideally, anyone can view the contents of that parent folder, but can only access the sub-folder they have the password for.

Parent
- folder1 (password protected)
- folder2 (password protected)

Sorry if that wasn't clear before :grimacing_face:

Greg-DB
Dropbox Staff
Go to solution

Oh I see, thanks for clarifying. That's expected then. Technically, a password applies to a shared link, not a folder itself. And, supplying a shared link to the parent folder enables access to anything in that folder. Any shared links that may or may not exist for the items underneath, and the settings for those other shared links, that don't come in to play.

 

I don't think there's a good way to set this up the way you want exactly unfortunately, other than rearranging your folders and using multiple Embedders.

mikexavier
New member | Level 2
Go to solution

ok, thanks for the insight into how the passwords are working exactly :slightly_smiling_face: Back to the drawing board. Cheers Greg-DB!

Need more support?