Skip to content
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

How to configure QuickStatements with external OAuth provider #816

Open
lucamauri opened this issue Jan 10, 2025 · 1 comment
Open

How to configure QuickStatements with external OAuth provider #816

lucamauri opened this issue Jan 10, 2025 · 1 comment

Comments

@lucamauri
Copy link

I am trying to setup an OAuth provider for QuickStatements instead of the containerised Wikibase as in the base setting.
I was able to setup the endpoints and the OAUTH_CONSUMER_SECRET and the OAUTH_CONSUMER_KEY, when I click the login button I am redirected to the proper page, I can authorise the application and then I am redirected back to the QuickStatements site, but i am not logged in. No error is shown, so I am not sure how to troubleshoot and solve this.

Beside the consumers as mentioned above, I use th following config.json:

{
  "site": "${SITENAME}",
  "bot_config_file": "/var/www/html/bot.ini",
  "logfile": "/var/log/quickstatements/tool.log",
  "sites": {
    "${SITENAME}": {
      "oauth": {
        "language": "${LANGUAGE_CODE}",
        "project": "${SITENAME}",
        "ini_file": "/quickstatements/data/oauth.ini",
        "publicMwOAuthUrl": "${OAUTH_SCRIPT_PATH}/index.php?title=Special:OAuth",
        "mwOAuthUrl": "${OAUTH_SCRIPT_PATH}/index.php?title=Special:OAuth",
        "mwOAuthIW": "mw"
      },
      "server": "${WIKIBASE_SCHEME}://${WIKIBASE_HOST}",
      "api": "${WIKIBASE_SCHEME}://${WIKIBASE_HOST}${WIKIBASE_API_PATH}",
      "pageBase": "${WIKIBASE_SCHEME}://${WIKIBASE_HOST}/wiki/",
      "toolBase": "${QUICKSTATEMENTS_PUBLIC_URL}/",
      "types": {
        "P": {
          "type": "property",
          "ns": "${WB_PROPERTY_NAMESPACE}",
          "ns_prefix": "${WB_PROPERTY_PREFIX}"
        },
        "Q": {
          "type": "item",
          "ns": "${WB_ITEM_NAMESPACE}",
          "ns_prefix": "${WB_ITEM_PREFIX}"
        }
      }
    }
  }
}

I think this problem is similar to the #348 but I can't understand the solution in that issue. Can you please help me with this, or point me to proper documentation if it exist somewhere?
Thanks.

Copy link

welcome bot commented Jan 10, 2025

Hi! 👋

Thank you so much for opening your first issue with us! 🎉 We are thrilled to have you here and really appreciate you taking the time to contribute.

Your input is valuable in making our project better for everyone. If you have any questions, do not hesitate to ask. We're here to help and support you along the way!

Here are a few links to get you started:

Looking forward to collaborating with you. We will get back to you on this issue within the next 14 days. 😊

Happy contributing! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant