refamatrix.blogg.se

Mediawiki oauth
Mediawiki oauth




  1. #Mediawiki oauth install
  2. #Mediawiki oauth update

At this time, RSA private keys are not supported (it would be easy to add, patches welcome). $wgOAuthAuthenticationConsumerSecret - The secret that you received when you registered your app, as explained above.$wgOAuthAuthenticationConsumerKey - The key that you received when you registered your app, as explained above.E.g., if you're delegating authentication to English Wikipedia. $wgOAuthAuthenticationUrl - the path to the Special:OAuth page on the wiki where you are delegating authentication.Additionally, set the following in your LocalSettings.php:.

mediawiki oauth

#Mediawiki oauth update

Run the update script which will automatically create the necessary database tables that this extension needs.WfLoadExtension ( 'OAuthAuthentication' ) Add the following code at the bottom of your LocalSettings.php :.(See task T173141 for potential complications.)

#Mediawiki oauth install

  • Only when installing from Git, run Composer to install PHP dependencies, by issuing composer install -no-dev in the extension directory.
  • Download and place the file(s) in a directory called OAuthAuthentication in your extensions/ folder.
  • Once you have registered your app, you will receive a consumer key and secret to be securely noted (it can't be retrieved at a later time) and used for the OAuthAuthentication configuration as belowĪlso insure that the php-curl module is installed in your system. It must be a sub page called finish of the special page Special:OAuthLogin of the wiki where OAuthAuthentication is installed: the full URl would look like. One information required during registration is the so called OAuth "callback" URL: this is the address where OAuth must redirect the authentication result. For example, register your app on to use any WMF wiki as the remote wiki. Various configuration flags let you set policies about the times of users who can register (restrict it to a set of names, or a particular group).īefore you begin, you need to register a new OAuth 1 application on the wiki where you are delegating authentication.

    mediawiki oauth

    The OAuthAuthentication extension lets your wiki delegate authentication to another wiki that is running Extension:OAuth. Translate the OAuthAuthentication extension if it is available at






    Mediawiki oauth