Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

URL string for automatic sign in
Noel Thomas
#1 Posted : Wednesday, 22 June 2011 4:19:29 PM(UTC)
Rank: Member

Joined: 14/10/2010(UTC)
Posts: 16
Location: Bracknell, UK

I'm hoping this is a straightforward request and I'm happy to provide more details and even a donation ;-)

We have the current version of the gallery installed and working fine (almost, sometimes getting timeouts when trying to sync the gallery) We also have a separate web application where authenticated users log on to and access and process their work. Quite a few of these users also have access to the gallery to view pictures that have been automatically imported into separate albums (we generally give the albums a 4 digit number)that are limited to them.
We want to place a link in our web application that would open a new screen/page (the gallery) and show their pictures so I need to know if there is functionality in the gallery to generate a url string that can pass the user name and password as well as the album number so that the relevant album can be viewed.

In failing any predefined configuration, can you suggest/help implement this for us? Look forward to hearing from you.

Noel
Roger Martin
#2 Posted : Wednesday, 22 June 2011 7:19:27 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Album IDs can be passed via the query string parameter "aid", but there is no support for passing usernames and passwords this way - the main reason being it violates security best practices to pass a password in plain text in an URL.

How about this: just redirect them to their album. Disable anonymous access and GSP will automatically throw up the login prompt where they can enter their credentials. The biggest advantage to this approach is you use a shipping build of GSP, enabling you to easily upgrade when new versions come out.

If you really want to automate the process - which I understand - then you need to encrypt the username and password in the URL. Setting up a custom build that handles this wouldn't be too much work. If you want to hire me, contact me via roger*at*techinfosystems*dot*com with more details about your requirements and I'll give you a quote.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.