Comments (14)
Great! Let me know when you know what your availability will be during those days. During the workweek, I am generally available at night (around 8pm-11pm UTC).
from wikibase-cli.
OAuth authentification is now possible (and recommanded!) in wikibase-cli >= v8
, that might (finally) solve your issue \o/
see config documentation
from wikibase-cli.
no, your normal Wikidata username and password should do normally
from wikibase-cli.
Well, I have my Wikimedia account set up for 2FA, not sure if that interferes here.
from wikibase-cli.
@waldyrious possibly. Also to have in mind: the current implementation relies on a deprecated query https://github.com/maxlath/wikidata-token/issues/5
from wikibase-cli.
@waldyrious hey, will you be in Vienna for the Wikimedia Hackathon next week? we could take the occasion to tackle this issue :)
from wikibase-cli.
Unfortunately not :( but we could set up a time to chat over IRC during the hackathon :)
from wikibase-cli.
sure! I should be able to find knowledgeable people in the room to give us a clue or two ;)
from wikibase-cli.
so it seems we can take inspiration on @addshore's login code that does support 2FA: MWApi.java
from wikibase-cli.
Great to hear that, @maxlath. However I think the UX needs a little polish:
❯ wd set-label Q4115189 pt "Testing wikidata-cli"
This operation requires to set your crendentials for https://www.wikidata.org
Which authentification mecanism would you like to use to login to https://www.wikidata.org ?:
/!\ Beware that those will be stored in plain text on your computer
1 - OAuth tokens (recommanded)
2 - username - password
- 1
If you don't have OAuth tokens yet, you can request owner-only tokens OAuth consumers at
https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose?wpname=wikibase-cli-myusername&wpdescription=tokens%20for%20wikibase-cli%20%28https%3A%2F%2Fgithub.com%2Fmaxlath%2Fwikibase-cli%29&wpownerOnly=1
Select "Request authorization for specific permissions" and adjust to your needs.
Required authorizations:
- Edit existing pages
Recommanded authorizations:
- Create, edit, and move pages
A clear message and call should be shown, e.g. "You don't seem to have an OAuth token set yet; please open the following URL to create one".
Especially since when I open that URL I see this huge and complex form:
...when I expected an authorization screen like those that appear when I authorize a Labs tool on mediawiki.org (i.e. a dialog where I can just click "Authorize").
So although this may work (I didn't continue further), is it OK if I keep this issue open until that flow is smoothed out a bit?
from wikibase-cli.
So although this may work (I didn't continue further), is it OK if I keep this issue open until that flow is smoothed out a bit?
could you open a new issue on this?
from wikibase-cli.
could you open a new issue on this?
Sure. Something like "Improve authentication flow"?
from wikibase-cli.
"Improve OAuth authentication flow"?
from wikibase-cli.
Sounds good, will do 👍
from wikibase-cli.
Related Issues (20)
- Update commander from 8 to 9 HOT 7
- wd open --wikipedia silently failing HOT 2
- v16.0.0: Cannot perform queries on Ubuntu 20.04, node 14. -- v15.17.0 works HOT 2
- wb label q5 HOT 1
- Help needed on a more complex item edit HOT 8
- query for object and query HOT 2
- set-sitelink does not work on redirecting articles HOT 2
- wd search --type property does not find property HOT 4
- Use OAuth2 so users do not have to create their own owner-only OAuth consumers
- `wb sparql`: Support reading from stdin
- Add the ability to get the Wikidata IDs for multiple Wikipedia articles
- stray argument in static js object example HOT 5
- Error: invalid id -make less verbose
- Bad token error HOT 4
- Some qualifiers probably cannot be removed
- wikibase-cli 17.0.0 build issue HOT 2
- support custom datatypes HOT 4
- wb search: --properties results get ignored when --json is specified
- removing qualifier in lexeme form, invalid guid HOT 1
- Updating claim does not load the current timezone in time-datatype properties HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wikibase-cli.