Discussion Forums  >  Uncategorized

Replies: 5    Views: 246

Rich May
Apple Fan
Profile
Posts: 9
Reg: Mar 23, 2011
Minneapolis
90
05/09/11 11:09 AM (14 years ago)

Password Protected Third-Party Web URL To PDF's

I can currently host files (PDF's in this example) on my web server and link to these files directly from within BT. However, what if I want to password-protect access to these files at the web host level? I don't want these PDF's to be accessible via any other method via direct web access. Ideally the BT password access could be passed via the URL request to login to these direct file URL's so that no additional user login is required. Possible? Is there a better way? Perhaps BT could provide limited file hosting so that the single sign-on would work along the lines described above?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/09/11 10:05 PM (14 years ago)
Hi in Minny: So... v1.5 allows password protected screens, not sure what version you're working with? May not matter because you're asking about password protecting at the web-server level. There are lots and lots of ways to do this, all take some skill and the method you implement will depend on your backend setup. Assuming you're site is .PHP powered (Apache server with .PHP enabled) you could do something like this without too much trouble.... a) Setup a database to store the PDF files in. If you store them on your site in a web-directory they will always be accessible. They may be hard to find but accessible none-the-less b) Create a PHP script / webpage to load the PDF from the database. The PDF to fetch / return would be determined by the id passed in the URL from the mobile app. c) Add some PHP to the top of the script that checked to make sure the id was present in the URL and stop / end execution if not. Again...lots and lots of ways to do this. If you're using buzztouch v1.5 you could do this by creating a login screen, then password protecting menu options that lead to the PDF's. Same logic on the backend...if the userId (logged in user) is not present in the URL, don't continue. Hope this helps.
 
Rich May
Apple Fan
Profile
Posts: 9
Reg: Mar 23, 2011
Minneapolis
90
like
05/10/11 08:43 AM (14 years ago)
Thanks and sorry for not mentioning that this is a v1.5 app. The password protection in the app is part of the story - I assume based on your response that if using a v1.5 login screen that the userid from that screen could be passed in the URL PHP script to the web database to log in and grab the PDF. I'm not up on my PHP or database skills unfortunately and wish that the BT CMS tool could do all of this backend database/web hosting for me. I would be glad to pay for that functionality if there were some BT+ kind of features that would cost a reasonable monthly fee anyway. Just a thought!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/10/11 10:00 AM (14 years ago)
Paid services...sounds good but it's far more complicated than that - today ;-) Yes, the ID of the user can be appended to any URL. like...http://www.mysite.com/coolpage.php?userId=[userId] You can also do this with user location, device info, etc. Maybe find a developer locally that can help? It's not tough but will take some time to work out the details on your end.
 
Rich May
Apple Fan
Profile
Posts: 9
Reg: Mar 23, 2011
Minneapolis
90
like
05/10/11 10:26 AM (14 years ago)
Okay, I'll bite :) Are there paid services coming soon (or available now) that I should be aware of? Seriously, BT rocks in so many ways and we are about to embark on a major project that requires just a few simple back-end tools like this that having a BT hosted solution to handle all this back-end database stuff would be the best business model for us. We will also have a need to manage hundreds of map locations - I understand the spreadsheet solution from earlier forum posts, but it too would require some scripting abilities that we don't have....
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/10/11 01:59 PM (14 years ago)
Lets do this - becuase we are always interested in trying to help however we can, really. Send an email to info 'at' buzztouch.com with some details about your operation, your needs, your plans. I'll get a look at it to see if I can lend some advice, assistance, who nows. Seeing what you're up to will help me better understand what direction you should talk, with or without us. Who knows, it may be far easier than we (you and I) realize ;-)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.