Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • 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
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Ikke-kategoriseret
  3. SSO / Login with MediaWiki

SSO / Login with MediaWiki

Planlagt Fastgjort Låst Flyttet Ikke-kategoriseret
9 Indlæg 2 Posters 0 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • S This user is from outside of this forum
    S This user is from outside of this forum
    scrapblox@community.nodebb.org
    wrote sidst redigeret af
    #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 🙂

    julian@community.nodebb.orgJ 1 Reply Last reply
    0
    • S scrapblox@community.nodebb.org

      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 🙂

      julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.org
      wrote sidst redigeret af
      #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 sidst redigeret af
        #3

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

        julian@community.nodebb.orgJ 1 Reply Last reply
        0
        • S scrapblox@community.nodebb.org

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

          julian@community.nodebb.orgJ This user is from outside of this forum
          julian@community.nodebb.orgJ This user is from outside of this forum
          julian@community.nodebb.org
          wrote sidst redigeret af
          #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 sidst redigeret af scrapblox@community.nodebb.org
            #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.

            1 Reply Last reply
            0
            • julian@community.nodebb.orgJ This user is from outside of this forum
              julian@community.nodebb.orgJ This user is from outside of this forum
              julian@community.nodebb.org
              wrote sidst redigeret af
              #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 sidst redigeret af
                #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 sidst redigeret af
                  #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.

                  julian@community.nodebb.orgJ 1 Reply Last reply
                  0
                  • S scrapblox@community.nodebb.org

                    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.

                    julian@community.nodebb.orgJ This user is from outside of this forum
                    julian@community.nodebb.orgJ This user is from outside of this forum
                    julian@community.nodebb.org
                    wrote sidst redigeret af
                    #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
                    Svar
                    • Svar som emne
                    Login for at svare
                    • Ældste til nyeste
                    • Nyeste til ældste
                    • Most Votes


                    • Log ind

                    • Har du ikke en konto? Tilmeld

                    • Login or register to search.
                    Powered by NodeBB Contributors
                    Graciously hosted by data.coop
                    • First post
                      Last post
                    0
                    • Hjem
                    • Seneste
                    • Etiketter
                    • Populære
                    • Verden
                    • Bruger
                    • Grupper