Was there any further tips to resolve the “failed to obtain access token” error? I haven’t been able to figure it out thanks and apologies for the bumping of a topic.
scrapblox@community.nodebb.org
Indlæg
-
SSO / Login with MediaWiki -
SSO / Login with MediaWikijulian Kind of new to NodeBB and not entirely sure how to find the output stuff, sorry. Here’s debug and oauth logs from MediaWiki though.
debian@vps-fb921451:/var/www/mywiki$ tail -f /var/log/mediawiki/debug.log [rdbms] MediaWiki\MediaWikiEntryPoint::restInPeace [0.072ms] localhost: COMMIT [DeferredUpdates] DeferredUpdates::run: started MediaWiki\Deferred\MWCallableUpdate_require_once #506 [rdbms] Wikimedia\Rdbms\LoadBalancer::reuseOrOpenConnectionForNewRef: reusing connection for 0/testwiki [rdbms] Wikimedia\Rdbms\Database::beginIfImplied (MediaWiki\Installer\Pingback::wasRecentlySent) [0.065ms] localhost: BEGIN [rdbms] MediaWiki\Installer\Pingback::wasRecentlySent [0.129ms] localhost: SELECT ul_value FROM `updatelog` WHERE ul_key = 'Pingback-1.43.1' LIMIT 1 [rdbms] require_once [0.067ms] localhost: COMMIT [DeferredUpdates] DeferredUpdates::run: ended MediaWiki\Deferred\MWCallableUpdate_require_once #506, processing time: 0.00063896179199219 [rdbms] LBFactory shutdown completed Request ended normally [session] Saving all sessions on shutdown
debian@vps-fb921451:/var/www/mywiki$ tail -f /var/log/mediawiki/oauth.log 2025-05-25 21:00:50 vps-fb921451 testwiki: OAuth2: Authorization request, func MediaWiki\Extension\OAuth\AuthorizationProvider\Grant\AuthorizationCodeAuthorization::init, for client edafcdddb9fb12394583b5edda9e388a and user (id) 1 using grant "authorization_code" 2025-05-25 21:00:50 vps-fb921451 testwiki: OAuth2: Starting authorization request for client edafcdddb9fb12394583b5edda9e388a and user (id) 1 2025-05-25 21:00:50 vps-fb921451 testwiki: MediaWiki\Extension\OAuth\Frontend\SpecialPages\SpecialMWOAuth::execute: doing 'approve' for OAuth2 with client_id 'edafcdddb9fb12394583b5edda9e388a' for 'ScrapBlox' 2025-05-25 21:00:51 vps-fb921451 testwiki: MediaWiki\Extension\OAuth\Frontend\SpecialPages\SpecialMWOAuth::execute: doing 'approve' for OAuth2 with client_id 'edafcdddb9fb12394583b5edda9e388a' for 'ScrapBlox' 2025-05-25 21:00:51 vps-fb921451 testwiki: MediaWiki\Extension\OAuth\Backend\ConsumerAcceptance: skipping DB update; object unchanged. 2025-05-25 21:00:51 vps-fb921451 testwiki: ScrapBlox performed action accept on consumer edafcdddb9fb12394583b5edda9e388a 2025-05-25 21:00:51 vps-fb921451 testwiki: OAuth2: Authorization request, func MediaWiki\Extension\OAuth\AuthorizationProvider\Grant\AuthorizationCodeAuthorization::init, for client edafcdddb9fb12394583b5edda9e388a and user (id) 1 using grant "authorization_code" 2025-05-25 21:00:51 vps-fb921451 testwiki: OAuth2: Starting authorization request for client edafcdddb9fb12394583b5edda9e388a and user (id) 1 2025-05-25 21:00:51 vps-fb921451 testwiki: OAuth2: Authorization request, func MediaWiki\Extension\OAuth\AuthorizationProvider\Grant\AuthorizationCodeAuthorization::authorize, for client edafcdddb9fb12394583b5edda9e388a and user (id) 1 using grant "authorization_code"
-
SSO / Login with MediaWikiAh okay. I installed the extension and sso-oauth2-multiple and created the app. filled in the information on MediaWiki and NodeBB but I don’t see anywhere to test the OAuth. How can I make it show up on the login/register area?
EDIT: Got it to show up on the login screen but I don’t know how to connect it to the MW extension.
-
SSO / Login with MediaWikiI don’t think the base install does but there is a popular extension OAuth to implement an OAuth server.
-
SSO / Login with MediaWikiHey there I want to use NodeBB as a forum to a MediaWiki install. I want to allow users to login/SSO with their existing MediaWiki account. How could I accomplish something like this? Thanks in advanced