password passing

Last post 09-10-2009 21:44 by uweboldt. 4 replies.
Page 1 of 1 (5 items)
Next
Previous
Sort Posts:
  • uweboldt 09-04-2009 12:04

    • Not Ranked
    • Joined on 09-04-2009
    • Posts: 4

    password passing

    I have a password protected website (htaccess). I would like to have my visitors get access to my password protected zenfolio galleries without having to enter the needed password because they have legitimzed once. Is there a possibility to use the API to pass the password in the background ?

    I think, actually I only need somebody to explain to me how to get the the first Keyring so that I can use the KeyringAddKeyPlain Method. It is not well explained how to get the keyring for the first time. The documentation only mentions "it is returned from a previous call to a keyring management method". Unfortunately the same method does not accept a NULL keyring which should indicate that a new keyring has to be created according to the method's documentation.

    Uwe

  • AF [Zenfolio] 09-06-2009 19:48 In reply to

    • Top 10 Contributor
    • Joined on 03-01-2008
    • San Francisco Bay Area, California
    • Posts: 583

    Re: password passing

    You should be able to pass null or an empty string to indicate an empty keyring. Do you get any error when passing null?

    -- AF [Zenfolio]
  • uweboldt 09-08-2009 11:11 In reply to

    • Not Ranked
    • Joined on 09-04-2009
    • Posts: 4

    Re: password passing

    Ok. Obviously I used a wrong realmId. The method works. Sorry.

    So now I have a correct keyring. How can I pass it when linking to my zenfolio album ?

    My PHP script got the keyring. Next it presents a href-link which the visitor can click. How can I manage that with the clicking or may before the legitimizing keyring is passed to zenfolio?

  • AF [Zenfolio] 09-10-2009 14:08 In reply to

    • Top 10 Contributor
    • Joined on 03-01-2008
    • San Francisco Bay Area, California
    • Posts: 583

    Re: password passing

    You need to set the 'zf_keyring' cookie in the domain of your Zenfolio pages. It is only possible if your site and your Zenfolio pages are in the same domain, in other words you have to use a custom domain for this to work.

    For example, your main site can be at www.mydomain.com and your Zenfolio custom domain can be photos.mydomain.com. A page at www.mydomain.com should set the zf_keyring cookie and scope it by the mydomain.com domain. This way the browser will send the cookie to pages at photos.mydomain.com as well.

     

    -- AF [Zenfolio]
  • uweboldt 09-10-2009 21:44 In reply to

    • Not Ranked
    • Joined on 09-04-2009
    • Posts: 4

    Re: password passing

    That's great. It works. Many thanks for your support !

Page 1 of 1 (5 items)