Welcome to the LimeSurvey Community Forum

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

authenticate user backend to allow user to preview question/group/survey

  • addigraddi
  • addigraddi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 months 1 week ago #265829 by addigraddi
Please help us help you and fill where relevant: 
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
LimeSurvey Community Edition   Version 6.5.14+240624 
Own server or LimeSurvey hosting:
Own server

Survey theme/template:
==================
I have have a saas application and a limesurvey installation on the same server but with different subdomains. 

Problem: 
I want the user of my saas application to be able to preview a question/group or survey without him/her logging in manually. Is there a way to do achieve this?
 

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 months 1 week ago #265830 by DenisChenu
How you think it can be done ?

I really don't have idea here …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • addigraddi
  • addigraddi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 months 1 week ago #265834 by addigraddi
Right now I have it set up so the user from the saas first lands in a "preview loading..." page where in the background a iframe is used to log in the user with credentials in the url.

I have edited the limesurvey login-page so that if there are login credentials in the url the form gets autosubmitted.

The user then gets redirected after a set time of 1 second to the limesurvey preview page.

This works but is not an ideal approach so I figured someone here might have a solution or come up with an idea :P

Cheers!

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 months 1 week ago #265835 by DenisChenu
Oh,

Get it : maybe use a plugin with
www.limesurvey.org/manual/BeforeHasPermission

test done : github.com/LimeSurvey/LimeSurvey/blob/b1...SurveyIndex.php#L735

event happen before testing if user are loggued.
github.com/LimeSurvey/LimeSurvey/blob/b1.../Permission.php#L536

Then you can check a session variable for example.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: addigraddi

Please Log in to join the conversation.

  • c_schmitz
  • c_schmitz's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
4 months 1 week ago #265836 by c_schmitz
In Globale settings you could just disable
"Survey preview only for administration users:"

That way anyone can preview a survey if they know the link.

Best regards

Carsten Schmitz
LimeSurvey project leader

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 months 1 week ago #265838 by DenisChenu

In Globale settings you could just disable
"Survey preview only for administration users:"

That way anyone can preview a survey if they know the link.
 
Not for preview a question/group

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • addigraddi
  • addigraddi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 months 1 week ago #265842 by addigraddi
Yea that makes sense! Thank you so much!

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose