- Posts: 5
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Webserver Authentication question
- davidzxc12
- Topic Author
- Offline
- New Member
Less
More
7 years 7 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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
7 years 7 months ago #139661
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 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.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
7 years 7 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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
7 years 7 months ago #139679
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 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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
7 years 7 months ago #139854
by davidzxc12
Replied by davidzxc12 on topic Webserver Authentication question
Thanks a lot. I have successed.
The topic has been locked.