Login via Cookie

Login via Cookie

by Will Muenchow -
Number of replies: 4

Question; I know its possible to validate a user against an external database, but does anyone have any experience with validating a user from a cookie that is brought in from another website? For example.

User A logs into Website A with their username and password.

User A then goes to Website B (moodle system) and the cookie from Website A is brought with to login Website B so the user does not have to login to moodle has as the credentials from website A are used.

Is this possible with Moodle?

Average of ratings: -
In reply to Will Muenchow

Re: Login via Cookie

by Will Muenchow -
Anyone ever done this with Moodle?
In reply to Will Muenchow

Re: Login via Cookie

by Will Muenchow -
Nobody else has done this yet?
In reply to Will Muenchow

Re: Login via Cookie

by Will Muenchow -
Anybody out there? (echo echo echo) ;)
In reply to Will Muenchow

Re: Login via Cookie

by James Dugal -
Will, just noticed your query!  We run uPortal, and had a scheme in place to encrypt auth cookies for use by certain other in-house web apps.  So it seemed easiest to do the same for Moodle.  It is working fine for over a year now.  Moodle has since  added SSO and other auth methods but I think we'll stick with the cookie scheme for now.  We had to add the mcrypt library to PHP as we needed blowfish.  The cookie encrypts the username and issue-timestamp.
-- James
jpd@louisiana.edu