Single sign on

A place for users and developers of the Xataface to discuss and receive support.

Postby joelthedrummer » Tue Jun 12, 2007 8:34 pm

Hi,

I am working on a web site where there will be a forum and web auction. The web auction will use dataface and the web auction project.

I would like the users to be able to log in once for both applications (on the same server, but different directories). Are there some session variables I can set so that the user can be automatically logged into the web auction?

Thanks,
Joel
joelthedrummer
 
Posts: 2
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Tue Jun 12, 2007 8:44 pm

HI Joel,

The $_SESSION['UserName'] variable is used to track the username of the logged in user for all Dataface applications.

In order for this to work properly Web Auction still needs to have the user's info (e.g. email address) in the Web Auction users table.Ê You can do this by either writing an authentication handler for Web Auction to use the forum for authentication (See the CAS authentication module for an example authentication handler), or to create a function to import the user information from the forum if it doesn't already exist.

For the SFU plantsale auction we used the University's CAS (Central Authentication Service) and LDAP to allow users to just use their University accounts, so this sort of thing is definitely possible.


-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby joelthedrummer » Wed Jun 13, 2007 6:41 am

Great! Thanks a ton!

Joel
joelthedrummer
 
Posts: 2
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 34 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved