Yii Framework Forum: Single Sign-On (Sso) - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Single Sign-On (Sso) did anybody try it? Rate Topic: -----

#1 User is offline   Temir 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 29-November 10
  • Location:Bishkek, Kyrgyzstan

Posted 13 December 2012 - 02:10 PM

Hello, I wanted to implement single sign-on (SSO) on my projects which share same parent domain.
I found this and implemented: http://www.yiiframew...iple-subdomains
Authentication only works if I check "remember me next time" and I should say it works as expected, authenticating user for each subdomain. The problem is if I don't check to stay signed in then it doesn't authenticate, though it does create same session id for each subdomain. In other words, it is creating a session file but not saving sessions only because I changed the savePath.

Can anybody help please?
0

#2 User is offline   Temir 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 29-November 10
  • Location:Bishkek, Kyrgyzstan

Posted 16 December 2012 - 03:12 AM

Today I tried to save session in database
'class' => 'system.web.CDbHttpSession',
            'connectionID' => 'db',

it is now saving session to database and logging in normally, but if I open the other subdomain then it has same session but in database the session file becomes empty and the first subdomain also becomes unauthenticated.
0

#3 User is offline   nsanden 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 06-December 11

Posted 29 December 2012 - 02:00 PM

Did you ever figure this out? I'm having same issues.
0

#4 User is offline   nsanden 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 06-December 11

Posted 29 December 2012 - 02:25 PM

I was able to get it working actually. I'm not sure what I did differently. Just followed the wiki exactly.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users