Extension talk:XenForoAuth
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
FYI: This extension breaks using [bd] API versions >1.5.1
[edit]It seems there are additional permissions added to the /users API endpoint in versions >1.5.1 that cause the authorization flow to fail. Formina Sage (talk) 02:36, 12 February 2018 (UTC)
- Just ran into this also, anyone have a workaround / solution? BD API 1.6.1 is required for PHP 7.2 Tiggleshorts (talk) 15:16, 17 June 2018 (UTC)
- What is the exact error message you get? And what additional permissions you've in mind? Florianschmidtwelzow (talk) 23:11, 28 June 2018 (UTC)
- This is the message I get when clicking "Login with Xenforo" using the latest version (1.6.1) of [bd] API:
- The external site refused to authenticate you or encountered an error. Please try it again or contact the administrator of the site. The message was:
- On the [bd] API discussion page I saw another user post with these details:
GET /api/index.php?users/me- Request
- array(0) {
- }
- Response (403)
- array(1) {
- ["error"] => string(34) "You must be a logged-in, registered member of this site to perform this action. "
}Tiggleshorts (talk) 13:51, 29 June 2018 (UTC)- It would seem that "users/me" doesn't behave the same in 1.6.x as it did in 1.5.x. Forum posts on th haven't been responded to, sadly. TheRealFunar (talk) 20:03, 11 August 2018 (UTC)
- @Florianschmidtwelzow is there any update on a fix? 96.234.163.212 (talk) 02:16, 6 January 2019 (UTC)
- Hi, sorry for not replying earlier :( Unfortunately I do not plan to maintain this extension anymore. I do not have any usage of this extension anymore, neither have I any way to test the actual implementation (as I do not own a XenForo installation). So, until anyone want to take over the maintenance of his extension, it is unmaintained and should not be used anymore :( Best, Florian Florianschmidtwelzow (talk) 14:39, 3 February 2019 (UTC)
- @Tiggleshorts @TheRealFunar Good news - with [bd] API 2.0.1 beta (I'm running the latest Xenforo 2.1.5), this is working properly again. The client setup is slightly different, but otherwise everything works as expected.
- https://xfrocks.com/resources/bd-api-for-xenforo-2-0.36/ Formina Sage (talk) 07:48, 28 November 2019 (UTC)
- @Formina Sage Excellent news, I'm just working on moving to Xenforo 2.1 now. I will check it out, thank you!! Tiggleshorts (talk) 17:42, 25 January 2020 (UTC)
- @Formina Sage I think I have it set up properly with Xenforo 2.1.6, MediaWiki 1.34.0 and [bd] API 2.0.1 Beta 1 but am seeing this error when clicking the 'login with Xenforo' button. Did your run into this?
- Error from line 321 of .../extensions/XenForoAuth/includes/auth/XenForoPrimaryAuthenticationProvider.php: Class 'XenForoBDClient\Clients\OAuth2Client' not found Tiggleshorts (talk) 19:09, 25 January 2020 (UTC)
- Update: I got it working by: 1. running composer update in the extensions/XenForoAuth/ directory (didn't see this in the directions) which added the missing files. 2. running maintenance/update.php again 3. turning off basic auth I had on my test site. Looking good! Tiggleshorts (talk) 02:07, 26 January 2020 (UTC)
- Triggleshorts, I managed to get to the point you were at but can't run composer. What is actually missing? 2A02:C7E:4929:9500:159F:4C2E:BFFC:AC62 (talk) 00:10, 17 June 2022 (UTC)
- I have everything setup but not having any luck, Not sure what to set for
- $wgXenForoAuthClientId = '';
- Going round in circles and the error logs in Xenforo keep showing not matter what I do.
- array:1 [
"errors" => array:1 [ 0 => "requested_page_not_found" ]
- ] SyrinxCat (talk) 16:51, 17 June 2022 (UTC)
- @SyrinxCat Sorry I didn't see the previous message, were you able to get it working?
- I just upgraded to the latest MediaWiki v1.39.1 and I did not run into any issues, still working fine. Tiggleshorts (talk) 23:34, 5 January 2023 (UTC)
- @Tiggleshorts. No problem. I did eventually get it working yes. Took some messing about but got there in the end :) SyrinxCat (talk) 23:42, 5 January 2023 (UTC)
- Awesome! Tiggleshorts (talk) 00:59, 7 January 2023 (UTC)
Confirm Email option Problem
[edit]So on our wiki this is working fine, however, we also want people to be able to register a normal wiki account and not a Xenforo account if they so choose.
Annoyingly, if you have $wgEmailConfirmToEdit = true; set for emails, it stops Xenforo users being able to edit.
Had anyone got a solution for this? SyrinxCat (talk) 01:20, 18 February 2023 (UTC)
- In my case I prefer to have a single login so have just used XenForo, but the usage of the wiki has been small. Sorry, haven't checked that option out. Tiggleshorts (talk) 14:45, 4 March 2023 (UTC)
v1.43 compatability
[edit]I updated to the latest MediaWiki release v1.43.0 and downloaded the latest version of the extension. Was getting an error in includes/XenForoUser.php related to "IDBAccess".
Fixed by adding to the file includes/XenForoUser.php
use Wikimedia\Rdbms\IDBAccessObject; DavidTseng (talk) 03:12, 19 January 2025 (UTC)
- Just a note - I've moved from bd-api / XenForoAuth to XenForo's oauth2 client / WSOAuth / PluggableAuth. Kirby provided the custom XenForo AuthenticationProvider and instructions in this thread:
- https://xenforo.com/community/threads/xenforo-oauth-troubleshooting-help-needed-mediawiki.230291/ Tiggleshorts (talk) 16:10, 8 November 2025 (UTC)