Jump to content
  • 0

OAuth Request a token for a new consumer - Permission error



I yesterday asked the "Mediawiki Users" community the question, "How can I get the mediawiki's ConsumerKey?". As described in the description, the message " Permission error " was issued when you pressed the " Request a new consumer for a new consumer " page on the OAut hConsumentation page. What can I do? I logged in administrator account and mediawiki's version is 1.29.


Permission error


You do not have permission to propose new OAuth consumers, for the following reason:

You are not allowed to execute the action you have requested.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 1

By default, nobody has permissions to do anything when Extension:OAuth is installed. You can adjust this by setting $wgGroupPermissions at the bottom of your LocalSettings.php. Here is a sample configuration:

$wgGroupPermissions['user']['mwoauthmanagemygrants'] = true; // All logged-in users can manage what access consumers tied to their accounts have. Do NOT change this line to a different group.
$wgGroupPermissions['user']['mwoauthproposeconsumer'] = true; // All logged-in users can propose new consumers
$wgGroupPermissions['user']['mwoauthupdateownconsumer'] = true; // All logged-in users can update details of their own consumers.
$wgGroupPermissions['sysop']['mwoauthmanageconsumer'] = true; // Administrators can manage consumers (approve requests, deactivate consumers, etc.)

// Optional permissions. Uncomment (remove the leading #) to enable.
#$wgGroupPermissions['sysop']['mwoauthsuppress'] = true; // Administrators can hide details about a consumer
#$wgGroupPermissions['sysop']['mwoauthviewsuppressed'] = true; // Administrators can view details about a consumer that were hidden
#$wgGroupPermissions['sysop']['mwoauthviewprivate'] = true; // Administrators can view private details about a consumer, such as the Secret Token. It is recommended that you do NOT enable this.

// If your wiki is not using SSL (HTTPS), do not include this line. If your wiki is using SSL (HTTPS), ensure this line is present.
$wgMWOAuthSecureTokenTransfer = true;


  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.