Skip to content

How to configure QuickStatements with external OAuth provider #816

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

Open
lucamauri opened this issue Jan 10, 2025 · 5 comments
Open

How to configure QuickStatements with external OAuth provider #816

lucamauri opened this issue Jan 10, 2025 · 5 comments

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! 🚀

@addshore
Copy link
Contributor

addshore commented Mar 20, 2025

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

Tick tock ;)
I don't mean to troll, but if the 14 days isn't a real goal then perhaps it's best removing it from the message. It's been 70 days ish now!

@deepeshaburse
Copy link
Contributor

Hi @lucamauri I see that the phabricator ticket regarding this has been replied to on phabricator on 7th Feb. Would you still like to keep this GitHub issue open?

@lucamauri
Copy link
Author

Hi @lucamauri I see that the phabricator ticket regarding this has been replied to on phabricator on 7th Feb.

I am sorry you are wrong: the topic of the Phabricator ticket you mentioned is unrelated to this issue.
The ticket is about endpoint URL configuration, this is about OAuth from a provider other than the Wikibase instance.

@deepeshaburse
Copy link
Contributor

Hi @lucamauri I see that the phabricator ticket regarding this has been replied to on phabricator on 7th Feb.

I am sorry you are wrong: the topic of the Phabricator ticket you mentioned is unrelated to this issue.
The ticket is about endpoint URL configuration, this is about OAuth from a provider other than the Wikibase instance.

Apologies for misunderstanding, I will try to get someone to look into this in that case.

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

3 participants