solimeme.blogg.se

Mediawiki oauth
Mediawiki oauth










The stack trace from apache logs: Notice: Undefined index: scopes in /var/() /var/MediaWiki->run() /var/MediaWiki->main() /var/MediaWiki->performRequest() /var/SpecialPageFactory::executePath() /var/SpecialPageFactory::getPage() /var/SpecialOAuth2Client->_construct() /var/so after setting the scope I don’t get any errors in the apache logs but media wiki still shows internal error Fatal exception of type "GuzzleHttp\Exception\RequestException Private 'uri' => string 'php://temp' (length=10) Private 'protocol' => string '1.1' (length=3) 'content-type' => string 'content-type' (length=12) Private 'fragment' => string '' (length=0)Ġ => string 'application/x-www-form-urlencoded' (length=33) Private 'path' => string '/oauth/token/' (length=13)

mediawiki oauth

Private 'userInfo' => string '' (length=0) Private 'scheme' => string 'https' (length=5) Private 'method' => string 'POST' (length=4) I think maybe there is something wrong with my request, doing a var_dump on request reveals the following: /var/www/mediawiki/w/extensions/MW-OAuth2Client/vendors/oauth2-client/src/Provider/AbstractProvider.php:629: The exception is caused in $response = $this->getHttpClient()->send($request) $response = $this->getHttpClient()->send($request) Protected function sendRequest(RequestInterface $request) * Sends a request instance and returns a response instance. Upon digging i found out that this exception is caused in the extension file AbstractProvider.php in the sendRequest function: /** When I open the authorization link, I am redirected to the following redirect-URI that was set in client settings at server side: įatal exception of type "GuzzleHttp\Exception\RequestException I have a button on my wordpress page with client id: Connect Your Account

#Mediawiki oauth code

I have tested by using curl and I am able to get the authorization code and using the authorization code I can acquire authentication token. The WPOauthServer is working fine, I am using the Grant type Authorization Code. I want that my users only log in to WordPress and from there they can go to the wiki without logging to wiki again.

mediawiki oauth

And on my wiki I have Extension:OAuth2 Client installed. I have WPOauthServer running on my WordPress (WordPress plugin). I am trying to create Single sign-on from WordPress to MediaWiki.










Mediawiki oauth