-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying setup with LemonLDAP + Mediawiki #2
Comments
I was getting this error as well and just posted my findings about it in #3. The handler that returns the user info expects to see the data inside the "user" key. My SSO was returning only a JSON object of the user properties. I was able to fix this by modifying my User Info endpoint at my SSO provider to also return the user data inside a "user" key. Alternatively, I could only modify the required key by editing the _userHandling() function and removing the "user" key reference which won't survive a code update should another version be released. From:
To:
|
I edit this function on SpecialOauth2Client.php file but still get same error, also on PHP and seems variable empty...
|
I guess that you should check that your endpoint is actually returning data. There may be more to the data structure than this function is expecting. What SSO provider software are you using? |
I use LemonLDAP... I have Grafana where i have similar configuration. |
I don't know how LemonLDAP works so I can't be of much help. Check how LemonLDAP sends the user info to be sure you're getting information first, then make sure this Oauth extension can read it. |
I now get username from User attribute (sub):
But continue working to also email address |
* Replace isLoggedIn * Replace deprecated wgUser --------- Co-authored-by: Mo8it <[email protected]>
Specs:
--
Login working but when redirect back to mediawiki go this error:
Backtrace:
The text was updated successfully, but these errors were encountered: