Welcome to the LimeSurvey Community Forum

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

Problem setting up OpenID connect with kanidm

More
3 weeks 12 hours ago #274652 by BugsBunny
Hi all,

I am running LimeSurvey Community Edition  Version 7.0.0+260526 on an Ubuntu server. I am trying to get login using OpenID Connect to work. The IDM is kanidm. The plugin I use is AuthOAuth2 (version 1.4.5).

I've configured the plugin and while I am correctly redirected to the IDM (and there is no error in the log there, I still see an error message "Incorrect username and/or password!" But only when I use only one scope.

Because the only problem (bug?) I noticed with the plugin is that if I set more than one scope (usually "openid, email, profile" is needed) there seems to be a problem with how the scope is URL-encoded (?) because I see a regex matching error in the kanidm log between the requested and offered scopes.
Code:
b256b8da-5db3-44bd-b1c9-48d63881d77c ERROR │ ┕━ 🚨 [error]: Invalid OAuth2 request - requested scopes (profile,email,openid) but (profile,email,openid) failed to pass validation rules - all must match the regex ^[0-9a-zA-Z_]+$ | event_tag_id: 1 b256b8da-5db3-44bd-b1c9-48d63881d77c ERROR ┕━ 🚨 [error]: Unable to authorise - Error ID: b256b8da-5db3-44bd-b1c9-48d63881d77c error: invalid_scope

My questions:
1) Does someone of you also use LimeSurvey together with kanidm and could tell me the specific configuration settings for the plugin?

2) What's the best way to debug this?

Please Log in to join the conversation.

More
3 weeks 11 hours ago #274654 by holch
Before you do any more testing, update to the latest version of LS7 which should be LS7.0.5+260623.

If the error persists, then you can go search how to debug.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
3 weeks 11 hours ago #274655 by BugsBunny
I've upgraded to the latest version but the problem persists, unfortunately.

Please Log in to join the conversation.

More
3 weeks 10 hours ago #274656 by holch
Good, then one factor is already excluded. Now it makes sense to start troubleshooting.

Let's see if someone has experience with setting up OpenId, because I don't.

The plugin I use is AuthOAuth2 (version 1.4.5).


Is this a Limesurvey Plugin? Is it made for LS 7?

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
3 weeks 9 hours ago #274657 by BugsBunny
Yes, it's this plugin. Unfortunately not updated since 5 years but it seems it's the only available OpenID Connect plugin (at least I couldn't find a better/more recent one):  github.com/BDSU/limesurvey-oauth2

It was not originally developed for LS7 but in the issues people managed to get it working with this version.

Please Log in to join the conversation.

More
3 weeks 9 hours ago #274658 by BugsBunny
Wait - I just found this (apparently newer) version:  github.com/ulysseus-eu/limesurvey-oauth2
No idea how I could have missed this so far. Maybe I should try this first before digging deeper into the problem.

I'll report back 

Please Log in to join the conversation.

More
3 weeks 8 hours ago - 3 weeks 8 hours ago #274659 by BugsBunny
Update: It works. Not the new version of the plugin but even the "old" one.

For anybody else struggling with this:
The "trick" was to set space (as in using the spacebar) as the scope separator for the URL in the plugin configuration (how stupid). As scopes I set
Code:
openid,email,profile
(in this order) and as "Identifier Attribute" I set "E-Mail".

 
Last edit: 3 weeks 8 hours ago by BugsBunny. Reason: Clarification

Please Log in to join the conversation.

More
2 days 14 hours ago #274717 by DenisChenu

Wait - I just found this (apparently newer) version:  github.com/ulysseus-eu/limesurvey-oauth2
No idea how I could have missed this so far. Maybe I should try this first before digging deeper into the problem.

I'll report back 
 
github.com/ulysseus-eu/limesurvey-oauth2...mits?author=Shnoulle ;)

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.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose