[00:48:22] Is there a native way to support MediaWiki authentication against an external service using JWT other than the beta OAuth extension? [00:49:35] extension statuses should not be taken too seriously [00:50:46] I don't think OAuth is beta for any practical purposes; probably just nobody bothered to update the template [00:52:11] tgr, {{fixed}} https://www.mediawiki.org/w/index.php?title=Extension:OAuth&diff=2276641&oldid=2274673 [00:53:56] We have an old OAuth based custom extension we don't want to support any longer as it's unmaintained (built against MW 1.19, upgrading to MW 1.27 and PHP 7) and we just want to use JWT without OAuth on top. [00:54:31] This is me paraphrasing our Dev team, we're not a PHP house so they don't want to support a custom extension. [00:54:47] I am a bit confused as to how to use tables with the #if: without it misparsing [00:55:34] justinl: I don't know of such a thing [00:55:48] how would you even authenticate without OAuth on top? [00:56:02] Ok, thank you. Whenever I search Google for "mediawiki jwt" all I really get is the OAuth extension :P [00:56:32] Not sure, really, but I'm not a Dev. I don't know how our internal auth system works. [00:56:40] Pongles: https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#Escaping_pipe_characters_in_tables [00:57:13] Vulpix: thank you, none of my googling helped because I was thinking about it wrong [00:57:34] yw :) [00:58:14] are you trying to use MediaWiki authentication in your internal syste,, or use use internal authentication system in MediaWiki? [00:58:24] OAuth is for the first one [01:00:06] We're trying to use our internal system to authenticate MediaWiki logins [01:00:22] ie. you register your system as an application in your MediaWiki instance, then you can send users to the wiki to click through an OAuth permission granting dialog (and log in first if they don't have a valid session) and then ask from MediaWiki a JWT describing user identity [01:00:52] (although if you are not stuck on JWT simpler methods exist) [01:01:29] As I understand it, that's how our current custom extension works, but it is no longer maintained and the current devs don't want to maintain it. JWT is the only way I'm told. [01:02:02] if you want single sign-on in MediaWiki (possibly using some external OAuth server), extension:OAuth won't help you, that's for making MediaWiki into an OAuth server, not a client [01:02:59] Extension:OAuthAuthentication is close to what you search for, but it expects the external OAuth server to be another wiki [01:03:07] Ah gotcha. Yes, we basically want a single sign-on for this one wiki as other internal apps use the same auth system. [01:03:21] you could probably adapt it with a small amount of patching [01:03:41] that one really is in beta though :) [01:05:09] if you want to write a new extension from scratch, you should look at https://www.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager which is how authentication works in MediaWiki 1.27 and later [01:06:18] Yeah, as I said, we're not a PHP shop and our devs don't want anything custom going forward for this wiki. Worst case, we have to break from the SSO model and just have the users create regular MW accounts in the wiki. [01:09:02] I'm afraid you are out of luck then [01:09:07] I guess they'd prefer a supported extension that just takes the login credentials, packs them in JWT objects and sends them to a configured service. [01:09:23] Vulpix: I need some more help if you are willing [01:09:23] Yeah, figured, but worth asking about since my Googling wasn't finding a solution. :) [01:09:28] I appreciate the feedback! :) [01:09:37] you could try OAuthAuthenticaion and some heavy URL rewriting but if you are OK with something very hacky [01:10:15] Pongles: yes, what's up? [01:10:22] as it makes a bunch of MediaWiki-specific assumptions about what URLs the OAuth server uses [01:10:52] I'm using the line of {{#if: {{{label1}}} | {{!}} {{{label1}}} {{!}} {{{data1}}} | }} to make it so the row only shows if there is a label for it but for some reason only the data variable is showing [01:12:20] And the label1 doesn't show on either the template page or when using the template [01:14:00] Pongles: in table syntax, it works like this: | cell attributes | cell content [01:14:11] oh, right [01:14:15] so I should use a
? [01:14:38] well, it depends... what are you trying to do, exactly? [01:15:02] Actually a new line worked, I just wanted them to show up as two cells [01:15:08] Thanks Vulpix [01:16:15] for two cells it may be | cell1 || cell2 (note there are 2 pipes to create a new cell on the same line) [01:17:00] Ah [01:41:19] I have the second output of the #if as blank but it still shows me the output as if it was not empty [01:48:15] figured it out, needed another pipe [01:48:24] Mediawiki makes me feel like a plumber [02:11:59] Okay one last issue for a while: For some reason Common.css isn't doing anything even though I have made sure to use the proper selectors (I used to have such problems remember if # or . was the one for idea) [02:12:51] Is there anything special I need to do for the selectors to make it work? Add a bunch of pipes? [02:15:36] ...I just fucked up the comments [02:15:38] go me [02:15:42] * Pongles facepalms [03:26:27] I am having problems getting my table to not have random extra


below it [04:10:07] I'm interested in using Google Fusion Tables for my MediaWiki Maps installation. It seems you call a number ({{#display_map:fusiontables=531109}} but it doesn't explain where that number comes from. Where would I find that number that corresponds to my fusion table? Any ideas? [04:28:02] nevermind, got it. [04:31:53] Can anyone here help me figure out why there seems to be extra linebreaks in the last table row on this fake infobox I made? https://the-whiteboard.wiki/wiki/Template:Databox [04:38:25] Reedy: ^^ [04:49:45] turns out that using html tables outright while using the lua functions makes things a lot shorter and a lot more readable [05:22:31] Though I would like to know how that is solvable natively. If you add comments between lines, then there's no line breaks when there's information in. [05:22:48] There's some magic required I'm guessing [05:50:20] @CZauX_: html tables are more native to the internet than wikitables [05:50:48] That is true, I mean more of a native mediawiki solution, using the markup [09:45:01] Hi there [09:45:19] Just wondering - can I make the mediawiki search bar search for Ä and for AE [09:45:26] when I search for äbc [09:45:28] or aebc [09:45:30] ? [11:23:02] what does the comment "