Jump to content

Help talk:OAuth

About this board

AndreaDileva (talkcontribs)

i would like to know how to set my prefrences i looked in my history before and im bloked or i think i am because another ip is sharing my address and i have been thinking someone is using my ip address and email acct to do things i dont even know if this website is going to help me. can anyone give me advice?

AndreaDileva (talkcontribs)

i dont even know how to read your comment im sorry im learning how to use this sight

Tgr (WMF) (talkcontribs)
Reply to "prefrences and oath?"
RStPierre (talkcontribs)

I want to use batch processing in Quickstatements by I have this message : You can't create a new batch, because you are not autoconfirmed


Can someone help me obtain this confirmation. My account was created on november 1 and have made more than 30 contributions

BDavis (WMF) (talkcontribs)

d:Help:QuickStatements is probably a better place to get support for using the Quickstatements tool. I do see there a link to d:Wikidata:Autoconfirmed users which includes the text "Although the precise requirements for autoconfirmed status vary according to circumstances, most Wikidata user accounts that are more than four days old and have more than 50 edits are considered autoconfirmed."

70.81.84.132 (talkcontribs)

Thank you BDavis

Reply to "Autoconfirmed users"

Expected oauth_callback_confirmed

7
KermitLiu (talkcontribs)

I receive consumer key and secret key from wiki.

I have config consumer key and secret key in phabricator.

and callback url in wiki.


but the phabricator give me a exception :

Unhandled Exception (“Exception”)

Expected ‘oauth_callback_confirmed’ to be ‘true’!


could you give some help?

Tgr (WMF) (talkcontribs)

At a wild guess, poor error handling in your client library, which receives an error and tries to verify it as if it would be a valid token (in which case indeed it should have an oauth_callback_confirmed field).

KermitLiu (talkcontribs)

mediawiki as my wiki provider, phabricator as my consumer,

i use my wiki to try, https://github.com/wikimedia/mediawiki-oauthclient-php , demo directory , as my consumer, success.

and i add print commond, then the return parameter : key,secret, oauth_callback_confirmed .

but the phabricator as the cosumer, the phabricator give me a exception.

so, the wiki is wrong, or the phabricator is wrong?


KermitLiu (talkcontribs)
Tgr (WMF) (talkcontribs)

We use the same setup for Wikimedia's Phabritcator so it can't be that wrong. Again, my best guess is that I think you are getting an error (which can be caused by a lot of things, wrong token configuration, out-of-sync clock, cache problems...) and Phabricator does not show the error because it does not recognize it is an error. willProcessTokenRequestResponse seems to do the right thing so maybe your wiki is returning a fatal error. Check your logs to see if that's the case.

@MModell (WMF) might be able to provide more insight.

KermitLiu (talkcontribs)

thank you very much , i will try

MModell (WMF) (talkcontribs)

What url do you have set for the callback?


You need to specify the callback url like this:

https://your.phabricator.url/auth/login/mediawiki:/

Reply to "Expected oauth_callback_confirmed"

Restrictions for new accounts ?

4
Simon Villeneuve (talkcontribs)

Hi,

I plan to show how to use mix'n'match to a group of newbies and I want to know if there's restrictions for using OAuth for new accounts (like "only autoconfirmed shall pass").

Iluvatar (talkcontribs)

There are no restrictions to users (see that — new acc, no edits, no flags), but developers of tools might add any restrictions in own source code. Sorry for my English.

Tgr (WMF) (talkcontribs)

There might be unintentional limitations coming from the fact that requests through that tool all use the same IP. So if something has an IP-level rate limit for non-autoconfirmed accounts (and several things do, e.g. 8 edits per minute), that will apply. Although for an IRL presentation with everyone using the same internet connection, such limitations would apply to non-OAuth actions as well.

Simon Villeneuve (talkcontribs)
Reply to "Restrictions for new accounts ?"
Vanished user Xorisdtbdfgonugyfs (talkcontribs)

Is it possible to totally disable that ability, so that it will not be enabled for some reason by accident?

Reply to "Disabling?"
Shavene (talkcontribs)

I try sign up phabricar

Unable to get an access token

2
Dmytrodruppov (talkcontribs)

Could help to understand the issue? I am using this endpoint to get an access token https://www.wikidata.org/w/rest.php/oauth2/access_token?client_credentials=client_credentials and providing client id and client secret


{

"error": "access_denied",

"error_description": "The resource owner or authorization server denied the request.",

"hint": "Client 4ab9e80d07a34633cdeab291fd8ead6a is not usable by user with ID 0",

"message": "The resource owner or authorization server denied the request."

}

Tgr (WMF) (talkcontribs)
Reply to "Unable to get an access token"

Connecting Facebook to Wikipedia

2
White Gold AJ Gaspar (talkcontribs)
BDavis (WMF) (talkcontribs)
Reply to "Connecting Facebook to Wikipedia"

User login or registration with Oauth

2
Tribly (talkcontribs)

I would like to use Oauth to help people login or register on my wiki with sites such as Facebook, Twitter, Google, Microsoft etc. How do I go about that?

Tgr (WMF) (talkcontribs)
Reply to "User login or registration with Oauth"

Oauth2.0 JWT validation

6
Gam3 (talkcontribs)

What key is used to sign the JWT (Bearer Token) returned.

Tgr (WMF) (talkcontribs)

$wgOAuth2PrivateKey (as noted on the extension page).

Gam3 (talkcontribs)

That is the question I am asking. What is that variable set to by Wikipedia APi.

Tgr (WMF) (talkcontribs)

As the variable name might suggest, it's a private key.

Gam3 (talkcontribs)

And where can I find the public half of that key?

Tgr (WMF) (talkcontribs)

I don't think we are making it public. You are unlikely to need it, it's used by code that needs to authorize access based on OAuth grants.

In theory it could be made public though - if you have a use case, please file a task to discuss it.

Reply to "Oauth2.0 JWT validation"