Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ekk

ekk

  1. Home
  2. Categories
  3. Technical Support
  4. SSO / Login with MediaWiki

SSO / Login with MediaWiki

Scheduled Pinned Locked Moved Technical Support
9 Posts 2 Posters 70 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S This user is from outside of this forum
    S This user is from outside of this forum
    scrapblox@community.nodebb.org
    wrote 14 days ago last edited by
    #1

    Hey 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 🙂

    J 1 Reply Last reply 14 days ago
    0
    • S scrapblox@community.nodebb.org
      14 days ago

      Hey 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 🙂

      J This user is from outside of this forum
      J This user is from outside of this forum
      julian@community.nodebb.org
      wrote 14 days ago last edited by
      #2

      ScrapBlox does MediaWiki expose their login via OAuth2?

      1 Reply Last reply
      0
      • S This user is from outside of this forum
        S This user is from outside of this forum
        scrapblox@community.nodebb.org
        wrote 14 days ago last edited by
        #3

        I don't think the base install does but there is a popular extension OAuth to implement an OAuth server.

        J 1 Reply Last reply 14 days ago
        0
        • S scrapblox@community.nodebb.org
          14 days ago

          I don't think the base install does but there is a popular extension OAuth to implement an OAuth server.

          J This user is from outside of this forum
          J This user is from outside of this forum
          julian@community.nodebb.org
          wrote 14 days ago last edited by
          #4

          ScrapBlox in that case if you install that extension you should be able to use sso-oauth2-multiple to connect to it and log in via MediaWiki credentials.

          1 Reply Last reply
          0
          • S This user is from outside of this forum
            S This user is from outside of this forum
            scrapblox@community.nodebb.org
            wrote 14 days ago last edited by
            #5

            Ah 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.

            EDIT 2: I got the connection mostly to work now it just returns a message failed to obtain access token the nodebb config I got is
            Authorization URL
            https://{domain.tld}/rest.php/oauth2/authorize
            Token URL
            https://{domain.tld}/rest.php/oauth2/access_token
            Client ID
            {the actual id}
            Client Secret
            {the actual secret}
            User Info URL
            https://{domain.tld}/rest.php/oauth2/resource/profile
            Scope
            " "

            J 1 Reply Last reply 14 days ago
            0
            • S scrapblox@community.nodebb.org
              14 days ago

              Ah 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.

              EDIT 2: I got the connection mostly to work now it just returns a message failed to obtain access token the nodebb config I got is
              Authorization URL
              https://{domain.tld}/rest.php/oauth2/authorize
              Token URL
              https://{domain.tld}/rest.php/oauth2/access_token
              Client ID
              {the actual id}
              Client Secret
              {the actual secret}
              User Info URL
              https://{domain.tld}/rest.php/oauth2/resource/profile
              Scope
              " "

              J This user is from outside of this forum
              J This user is from outside of this forum
              julian@community.nodebb.org
              wrote 14 days ago last edited by
              #6

              ScrapBlox any errors from the MediaWiki side? Not sure if there are logs you can check. Similarly, check for logs in the NodeBB side.

              1 Reply Last reply
              0
              • S This user is from outside of this forum
                S This user is from outside of this forum
                scrapblox@community.nodebb.org
                wrote 14 days ago last edited by
                #7

                julian 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"
                
                1 Reply Last reply
                0
                • S This user is from outside of this forum
                  S This user is from outside of this forum
                  scrapblox@community.nodebb.org
                  wrote 11 days ago last edited by
                  #8

                  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.

                  J 1 Reply Last reply 10 days ago
                  0
                  • S scrapblox@community.nodebb.org
                    11 days ago

                    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.

                    J This user is from outside of this forum
                    J This user is from outside of this forum
                    julian@community.nodebb.org
                    wrote 10 days ago last edited by
                    #9

                    ScrapBlox hi, sorry about the delay. Sometimes it's hard to think of what to debug next.

                    Can you screen shot the settings on both sides? Feel free to blur out the client id and secret

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes

                    4/9

                    25 May 2025, 17:14


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    Powered by NodeBB Contributors
                    4 out of 9
                    • First post
                      4/9
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups