You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While attempting to configure MediaWiki's OAuth Extension (OAuth v1.0a).
I wanted to create the provider, but it turns out that the current model to create a provider (at least what I understand of it) is either not supporting the implementation details of MediaWiki OAuth extension, or I'm missing something.
My question is, due to those limitations, how can I configure in oauthd? Is it possible?
Quoting, in Extension:OAuth: When constructing your url, use /w/index.php?title=Special:OAuth/initiate instead of /wiki/Special:OAuth/initiate, because MediaWiki Extension will silently creates in the index.php?title=Special:OAuth/initiate format and therefore makes the hash invalid.
url in provider conf.json therefore has to have this format. I guess that when you append request_token{Request-Object} parameters to it, it would create a different address to call, right?
The key given by MediaWiki is within the body of the response, in the following format:
OAUTH_VERIFIER_VALUE is inside the body of the content (i.e. out of band). They also require that oauth_callback=oob; oob is for Out Of Band, it is not a random string.
I understand that I could configure oauth1 members (e.g. "request_token" with a few keys based on (url, parameters, etc) but
Here is what I ended up trying:
The text was updated successfully, but these errors were encountered:
renoirb
changed the title
Configuring a provider in request_token when the key is part of the body
In the case of MediaWiki's OAuth Extension; Configuring a provider in request_token when the key is part of the body
Apr 5, 2014
While attempting to configure MediaWiki's OAuth Extension (OAuth v1.0a).
I wanted to create the provider, but it turns out that the current model to create a provider (at least what I understand of it) is either not supporting the implementation details of MediaWiki OAuth extension, or I'm missing something.
My question is, due to those limitations, how can I configure in oauthd? Is it possible?
Extension implementation details
Extension uses OAuth 1.0
Note: most of my attempts were made through a shell script that shows how to use the extension and it might be much helpful to see the implementation details.
base url HAS to be in the form 'http://mediawikihost/w/index.php?title=Special:OAuth' (as in, must have
index.php
(known Caveat).url
in providerconf.json
therefore has to have this format. I guess that when you appendrequest_token
{Request-Object}
parameters to it, it would create a different address to call, right?The key given by MediaWiki is within the body of the response, in the following format:
And the extension requires that you request your token with
oauth_callback
set to oob (i.e. "Out Of Band"), see Endpoint samples below.Endpoint samples:
request_token:
OAUTH_VERIFIER_VALUE is inside the body of the content (i.e. out of band). They also require that
oauth_callback=oob
; oob is for Out Of Band, it is not a random string.access_token:
authorize:
Attempt to create a provider
I understand that I could configure
oauth1
members (e.g. "request_token
" with a few keys based on (url, parameters, etc) butHere is what I ended up trying:
The text was updated successfully, but these errors were encountered: