- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
OAuth "question type"?
- matthewlehew
- Topic Author
- Offline
- New Member
Less
More
7 years 4 months ago #145217
by matthewlehew
OAuth "question type"? was created by matthewlehew
This may be an odd request; I can't find it anywhere in the forums. This question is hypothetical and high-level...I'm not necessary looking for specific implementations or sample code, just your assessment on whether you think it would even be possible.
Summary: I want to create a public survey that has a "question" that allows the respondent to authenticate through an OAuth workflow and save the result of an API query as a response.
Hypothetical flow: The respondent begins the survey. The first question has a button labeled "authenticate." The respondent clicks the button and a popup appears requesting authentication to the identity service. After logging in, the popup requests the permissions for the LimeSurvey installation to read specific information. After access is granted, the popup closes and the respondent continues with the survey. The respondent's user ID with the identity service is saved as a response.
Reason: I am conducting surveys for PhD research among users of a specific service. The service offers an OAuth 2.0 API. The obvious fallback option is to have respondents self-report their ID with the service and just not validate it, but I'm attempting due diligence to see if there's a way to validate that the respondent actually owns the ID.
Issues: I've only been familiar with LimeSurvey for a while, but I know this would obviously require an extension of some sort. I have enough of a programming background to try it myself, and I also have much more experienced friends that can help, but I'm not familiar enough with LimeSurvey's architecture (or Yii2, for that matter) to make a determination of whether this is feasible at all, or where the best place would be to try to implement it. Because OAuth 2.0 utilizes redirects, the main thing I'm trying to figure out is how to handle the OAuth URI redirect followed by my server's query for data and then reloading the page while preserving the survey instance. My first thought was to develop a custom entry page that contained the OAuth login, and then my server can grab the data and use it to craft a custom URL that will prefill the ID and hide the data, but then there's the problem of knowing that I've gone to all the trouble of using OAuth just to provide a way for the respondent to manually alter that data by altering the URL.
My other thought is trying to see if there's some kind of hook available for manually adding data as discussed in manual.limesurvey.org/Workarounds:_Surve...to_manually_add_data , but this is where my knowledge of LimeSurvey is falling short and I could use some more information.
Any thoughts or suggestions or context would be greatly appreciated!
Summary: I want to create a public survey that has a "question" that allows the respondent to authenticate through an OAuth workflow and save the result of an API query as a response.
Hypothetical flow: The respondent begins the survey. The first question has a button labeled "authenticate." The respondent clicks the button and a popup appears requesting authentication to the identity service. After logging in, the popup requests the permissions for the LimeSurvey installation to read specific information. After access is granted, the popup closes and the respondent continues with the survey. The respondent's user ID with the identity service is saved as a response.
Reason: I am conducting surveys for PhD research among users of a specific service. The service offers an OAuth 2.0 API. The obvious fallback option is to have respondents self-report their ID with the service and just not validate it, but I'm attempting due diligence to see if there's a way to validate that the respondent actually owns the ID.
Issues: I've only been familiar with LimeSurvey for a while, but I know this would obviously require an extension of some sort. I have enough of a programming background to try it myself, and I also have much more experienced friends that can help, but I'm not familiar enough with LimeSurvey's architecture (or Yii2, for that matter) to make a determination of whether this is feasible at all, or where the best place would be to try to implement it. Because OAuth 2.0 utilizes redirects, the main thing I'm trying to figure out is how to handle the OAuth URI redirect followed by my server's query for data and then reloading the page while preserving the survey instance. My first thought was to develop a custom entry page that contained the OAuth login, and then my server can grab the data and use it to craft a custom URL that will prefill the ID and hide the data, but then there's the problem of knowing that I've gone to all the trouble of using OAuth just to provide a way for the respondent to manually alter that data by altering the URL.
My other thought is trying to see if there's some kind of hook available for manually adding data as discussed in manual.limesurvey.org/Workarounds:_Surve...to_manually_add_data , but this is where my knowledge of LimeSurvey is falling short and I could use some more information.
Any thoughts or suggestions or context would be greatly appreciated!
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
7 years 4 months ago #145244
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 OAuth "question type"?
I really think the best way is to
- Token enable survey
- Use a register allowed survey
- Create a plugin to replace 'register' form by an Oauth form github.com/LimeSurvey/LimeSurvey/blob/ma...rController.php#L174
- Token enable survey
- Use a register allowed survey
- Create a plugin to replace 'register' form by an Oauth form github.com/LimeSurvey/LimeSurvey/blob/ma...rController.php#L174
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.
- markusfluer
- Visitor
5 years 10 months ago #170134
by markusfluer
Replied by markusfluer on topic OAuth "question type"?
There is an oAuth registration plugin already.
It will be made available shortly.
It will be made available shortly.
The topic has been locked.
- Blendman974
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
5 years 7 months ago #174365
by Blendman974
Replied by Blendman974 on topic OAuth "question type"?
So still no release for OAuth plugin ?
The topic has been locked.
- markusfluer
- Visitor
5 years 7 months ago #174379
by markusfluer
Replied by markusfluer on topic OAuth "question type"?
We will make the OAuth plugin available as a part of our Premium packages in October.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
5 years 7 months ago #174383
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 OAuth "question type"?
It's starting … premium feature …
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.
- holch
- Online
- LimeSurvey Community Team
Less
More
- Posts: 11649
- Thank you received: 2739
5 years 7 months ago #174391
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic OAuth "question type"?
What did you expect, Denis? I am surprised you are surprised...
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- LouisGac
- Visitor
5 years 7 months ago #174405
by LouisGac
Replied by LouisGac on topic OAuth "question type"?
not a "premium feature", an extension.
and it will be full GPL as always.
and it will be full GPL as always.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
5 years 7 months ago #174427
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 OAuth "question type"?
About extension : for mine : remind it can be AGPL for public distribution and GPL for limesurveySAAS (if you need some adaptation).
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.
- dliouville
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 1
5 years 2 months ago #180056
by dliouville
Replied by dliouville on topic OAuth "question type"?
I can't find oauth plugin, not released yet ?
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
5 years 1 month ago #181525
by Mazi
Long Term Support Releases (5)
Survey Themes (4)
Survey Templates (6)
Where can I find the mentioned plugin?
Why is it not available to the public?
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic OAuth "question type"?
When being logged in I can only find these sections for downloads:markusfluer wrote: We will make the OAuth plugin available as a part of our Premium packages in October.
Long Term Support Releases (5)
Survey Themes (4)
Survey Templates (6)
Where can I find the mentioned plugin?
Why is it not available to the public?
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- holch
- Online
- LimeSurvey Community Team
Less
More
- Posts: 11649
- Thank you received: 2739
5 years 1 month ago #181527
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic OAuth "question type"?
Because it probably has never been finished...Why is it not available to the public?
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.