- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
SAML authentication working, but Yii loses my user object?
- aglspruit
- Topic Author
- Offline
- New Member
Less
More
6 years 4 months ago #161094
by aglspruit
SAML authentication working, but Yii loses my user object? was created by aglspruit
I am experimenting with LimeSurvey SAML authentication, based on the plugin found here:
github.com/pitbulk/limesurvey-saml .
Everything seems to be working just fine, users gets created in the database etc. but Yii loses the identity of the user right after the login. In particular: Yii::app()->user->getId() returns nothing after the final redirect to AdminController.
This causes LimeSurvey to redirect back and forth, indefinitely, between the AdminController (application/controllers/AdminController) and the authentication action (application/controllers/admin/authentication).
Any hints much appreciated,
Sandor
github.com/pitbulk/limesurvey-saml .
Everything seems to be working just fine, users gets created in the database etc. but Yii loses the identity of the user right after the login. In particular: Yii::app()->user->getId() returns nothing after the final redirect to AdminController.
This causes LimeSurvey to redirect back and forth, indefinitely, between the AdminController (application/controllers/AdminController) and the authentication action (application/controllers/admin/authentication).
Any hints much appreciated,
Sandor
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
6 years 3 months ago #161903
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic SAML authentication working, but Yii loses my user object?
Why not create an issue in github ?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- aglspruit
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
6 years 2 months ago #162349
by aglspruit
Replied by aglspruit on topic SAML authentication working, but Yii loses my user object?
Because it looks like 'issues' have been disabled for the LimeSurvey repository on Github?
Unlike my own repositories, the LimeSurvey repository does not seem to have an 'issues' tab...
Unlike my own repositories, the LimeSurvey repository does not seem to have an 'issues' tab...
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
6 years 2 months ago #162358
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic SAML authentication working, but Yii loses my user object?
The LimeSurvey github page is lacking the issue tab.
As far as I see the code is from someone else.
What do you get here:
github.com/pitbulk/limesurvey-saml/issues
As far as I see the code is from someone else.
What do you get here:
github.com/pitbulk/limesurvey-saml/issues
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- aglspruit
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
6 years 2 months ago #162361
by aglspruit
Replied by aglspruit on topic SAML authentication working, but Yii loses my user object?
Good to get confirmation on the missing 'issues' tab, thought it could be my account.I have just created an issue on the SAML plugin repository, over at Github. Hope it helps, it's unfortunate to have a plugin working at 90-95%.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
6 years 2 months ago #162370
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic SAML authentication working, but Yii loses my user object?
I have to work on SAML in some week … maybe i get the plugin maintenance at same time.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- aglspruit
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
6 years 2 months ago #162372
by aglspruit
Replied by aglspruit on topic SAML authentication working, but Yii loses my user object?
That would be very nice. I noticed that the behaviour of the plugin has changed since a comfort upgrade.
Time permitting, I'll try and analyse the issue further.
Time permitting, I'll try and analyse the issue further.
The topic has been locked.
- aglspruit
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
6 years 2 months ago #162715
by aglspruit
Replied by aglspruit on topic SAML authentication working, but Yii loses my user object?
@DenisChenu: how to get in touch?
The topic has been locked.
- aglspruit
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
6 years 2 months ago #163053
by aglspruit
Replied by aglspruit on topic SAML authentication working, but Yii loses my user object?
Note the last couple of lines here
simplesamlphp.org/docs/stable/simplesamlphp-sp#section_6
about php, simple saml and sessions. Sounds like it could be very relevant...
about php, simple saml and sessions. Sounds like it could be very relevant...
The topic has been locked.