Change the login form with a custom authentication plugin

Mehr
1 Monat 2 Wochen her #194282 von coffeecodec
Hello there,

I am currently developing an authentication plugin for LimeSurvey using OpenID Connect.

To make it easy for the user to login, I would like to remove the default Username/Password form elements and only leave the "Login"-Button if my authentication plugin is selected.

I tried to edit the form as follows, but when selecting my authentication plugin at the login screen, the default form is still displayed.

Could someone help me with this situation? Maybe I misunderstand the newLoginForm event.

public function init(){
    $this->subscribe('newLoginForm');
}
 
public function newLoginForm(){
    $this->getEvent()->getContent($this)->cleanContent();
}
 

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

LimeSurvey Partners
Mehr
1 Monat 2 Wochen her #194353 von DenisChenu
Yes , you're right.

Not documented, but seems
$this->getEvent()->setContent('Authdb', '');
do the tricik.

PS : i'm really happy to get the final plugin. Framasoft already thinking of using LimeSurvey for framaform, but lack of such system (and some other things ...)

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 .
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
1 Monat 2 Wochen her - 1 Monat 2 Wochen her #194420 von coffeecodec
Hi Denis,

thank you for your advice, it worked out pretty well!

In the end I decided to keep the original Login Form in order to allow admins to use authdb authentication if OpenID Connect doesn't work out.

I am quiet new to the Open Source, Limesurvey and OpenID Connect community :laugh:. So I'm happy to receive feedback on the Plugin and suggestions.

Currently I am able to login through Keycloak, still some topics are open to be done.

The Repository is available on Github .
Letzte Änderung: 1 Monat 2 Wochen her von coffeecodec. Begründung: Edit Link and grammar.
Folgende Benutzer bedankten sich: DenisChenu

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha