Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Webserver Authentication question

  • davidzxc12
  • davidzxc12's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #139635 by davidzxc12
Webserver Authentication question was created by davidzxc12
I am new to PHP. I want to use SSO to login to my Limesurvey. I already have a login page and a web service(.asmx),
When the user go to /admin , rediecting to my login page . after successing , I get the parameter RID and then redirect to /admin?RID=numbers .
Passing RID to the web service can get user infomation.

I want to write some code to auto redirect when user need to login , and get infomation via RID and create account in limesurvey.
Where should I rewrite?
is it in Authwebserver ? or I should write a new auth plugin? thanks.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #139661 by DenisChenu
Replied by DenisChenu on topic Webserver Authentication question
You can start by copy/paste AuthWebserver, and rename it before put in plugins directory.

Else : next time you update : your code are deleted.

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 following user(s) said Thank You: davidzxc12
The topic has been locked.
  • davidzxc12
  • davidzxc12's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #139676 by davidzxc12
Replied by davidzxc12 on topic Webserver Authentication question
Thank you Denis ! I am now facing another problem. How can I get the RID parameter and pass it to Authwebserver after user logged in.

My thinking is adding parsing rule to router ? Is it correct?

But where is the router code? I don't know which file to edit.

Or is there some better solution? thanks
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #139679 by DenisChenu
Replied by DenisChenu on topic Webserver Authentication question
Did you auth webservice have some API ????

Else to get a GET parameters :
$rid=isset($_GET) ? $_GET : null; (or with Yii : App()->getRequest()->getQuery('RID'); )

BUT : if you don't knwo how to do this .... i can not help a lot.

Do some test, show some code, etc .... and if you need a PHP dev : hire a pHP dev

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 following user(s) said Thank You: davidzxc12
The topic has been locked.
  • davidzxc12
  • davidzxc12's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #139854 by davidzxc12
Replied by davidzxc12 on topic Webserver Authentication question
Thanks a lot. I have successed.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose