[08:30:59] Hello everyone ! We installed mediawiki to help people using a tool about climate change, where people can add/read info. We already have a bunch of base info about the tool, and we don't want people to be allow to modify it (it's like the rules of the game). We had two ideas : [08:31:55] Hello everyone ! We installed mediawiki to help people using a tool about climate change, where people can add/read info. We already have a bunch of base info about the tool, and we don't want people to be allow to modify it (it's like the rules of the game). We had two ideas : - putting in italic what can't be modified OR - having someone reading [08:31:55] all the modification. It's either not nice to look at or time consuming. Anyone knows if there is a way to protect only some part of a text ? [08:56:31] Schleumpse: There's an extension called Abusefilter [08:56:48] Which allows you to make complex rules for whether an edit is accepted or rejected [08:57:09] You can possibly use that to reject edits changing the part you don't [08:57:32] Schleumpse: Also, you can put some text in a template, and protect the template, but then a vandal could just remove the template [08:57:38] !e AbuseFilter | Schleumpse [08:57:38] Schleumpse: https://www.mediawiki.org/wiki/Extension:AbuseFilter_ [08:57:44] !template | Schleumpse [08:57:44] Schleumpse: For more information about templates, see . See also: !templateproblems , !wptemplates [08:57:49] !templates | Schleumpse [08:57:49] Schleumpse: For more information about templates, see . See also: !templateproblems , !wptemplates [08:57:51] meh [08:58:11] !template is https://www.mediawiki.org/wiki/Help:Templates [08:58:11] Key was added [13:21:06] This is not strictly a Mediawiki question, but it is to do with Mediawikis. Situation: I need to basically move contents from one wiki to another with export-import. Question: How do I explain, on the wiki that I'm phasing out, that the content has moved to a new place? What options Mediawiki provides? In a way that will be good for humans landing in the old domain and also that search engines transfer search relevance towards the new [13:21:06] location. [13:21:07] Relevant info: I have full access to the apache2 too. Thanks in advance and thanks for the awesomest wiki engine and free support [13:25:19] adding a sitenotice is probably the easiest [13:25:26] !sitenotice [13:25:26] Sitenotice is a wiki-wide message that appears at the top of the page for all users. It is editable by users in the sysop usergroup at [[MediaWiki:Sitenotice]]. https://www.mediawiki.org/wiki/Manual:Interface/Sitenotice See also: !anonnotice [21:10:12] Hi. I need some help with OAuth2. I get this message "The authorization server encountered an unexpected condition that prevented it from fulfilling the request." [21:10:27] is this request correct? https://meta.wikimedia.org/w/rest.php/oauth2/authorize?response_type=code&client_id= [21:12:34] I am using this consumer: https://meta.wikimedia.org/wiki/Special:OAuthListConsumers/view/75e6d99d5fbb98606b81150f948cf695 [21:24:22] @chicocvenancio I saw you are implementing OAuth2 for PAWs, do you have any hints? [21:34:25] That would look right from a cursory look at the docs [21:34:45] https://www.mediawiki.org/wiki/OAuth/For_Developers#Authorization_2 [21:35:17] * chicocvenancio in a meeting [21:36:30] Mpaa-irc: Anything else returned? [21:38:00] No, just that. I tried adding 'state' and 'redirect_uri' but always the same message. [21:38:45] Olny if skip one of the two mandatory params I get "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. " [21:39:34] the answer is not very helpful in understanding what's wrong with my GET request :-( [21:42:04] I am using basic example code in python using requests_oauthlib and it is working on other OAuth2 sites, so Iam wondering f I have not understood how it should work on Medùiawiki or if it is not working at all .... [21:42:47] It's possible the MW implementation is partially broken [21:52:45] Mpaa-irc: Want to file a bug report in phab? :) [22:01:37] #Reedy will do, just wanted to make sure I am not ovelooking something trivial [22:16:11] Mpaa-irc: I got it to work with python [22:16:16] let me check my notes [22:28:41] ohh, I got consumer-only tokens to work. Never got through the same issue you're facing [22:28:56] either oauth2 is broken or the docs are, in my view [22:29:17] either or both is quite possible [22:29:41] * chicocvenancio is only confident to write that after seeing someone else struggle with it [22:29:57] I'll submit a ticket as soon as I have time to wrap things up [22:30:01] thanks [22:30:43] Mpaa-irc: for PAWS I'll also need mwoauth and pywikibot to pickup oauth2, so I'm waiting a bit [22:31:16] my idea is to do it for pywkibot [22:32:21] mwoauth I am not so sure it is really needed, was going to look into it after I had done the first bstep manually [22:33:04] If meanwhile someone will figure it out, pls ping me on my talk page at Mpaa [22:37:46] pywikibot uses mwoauth [22:38:00] so if you do mwoauth it is trivial to do it for pywikibot [22:38:37] mwoauth uses only OAuth1 afaik [22:39:04] yeah, but mwoauth uses requests-oauth libbrary [22:39:08] and that supports both [22:39:42] I talked to halfak about it, he thinks it would make sense to have it there [22:39:54] I agree [22:40:33] My php reading skills are bad, but looking at https://github.com/wikimedia/mediawiki-extensions-OAuth/blob/39182b03b05df4814e544516805c6382f651018d/includes/frontend/specialpages/SpecialMWOAuth.php#L104 I don't see how it could work [22:41:11] pywikibot already uses requests_oauthlib directly, mwoauth is used only to get the tokens once to inert them in the config file [22:41:46] Mpaa-irc: true [22:42:50] your php is for OAUTH1 I guess [22:43:14] its for both [22:43:27] its the same extension [22:44:47] the endpoint is different, I think OAuth2 is handed by https://github.com/wikimedia/mediawiki-extensions-OAuth/blob/39182b03b05df4814e544516805c6382f651018d/src/Rest/Handler/Authorize.php [22:46:10] sure, but what is https://github.com/wikimedia/mediawiki-extensions-OAuth/blob/39182b03b05df4814e544516805c6382f651018d/includes/frontend/specialpages/SpecialMWOAuth.php#L104https://github.com/wikimedia/mediawiki-extensions-OAuth/blob/39182b03b05df4814e544516805c6382f651018d/includes/frontend/specialpages/SpecialMWOAuth.php#L85 doing there? thats oauth2 [22:46:37] * chicocvenancio is not good at untangling php [22:46:47] hhmm [23:21:22] chicocvenancio Reedy, see https://phabricator.wikimedia.org/T244187 [23:23:35] thanks, good night [23:24:28] I noticed for a new mediawiki install of mine there is an (extremely simple) math problem required to create an account. I am curious if there is any way to disable this? I recognize that for production systems that would be a bad idea as it is probably keeping bots at bay, but I would like to for study purposes of sorts. [23:25:01] Any assistance that could or [23:25:08] Be provided would be appreciated* [23:25:28] (Just wondering if it’s a setting) [23:25:29] Disable MathCaptcha [23:26:39] Thanks @Reedy ! I’ll try that shortly [23:26:40] :) [23:39:19] most bots won't be stopped by it anyway