[00:52:26] [[Tech]]; Erik Baas; /* Empty template variables */ new section; https://meta.wikimedia.org/w/index.php?diff=25014890&oldid=25013039&rcid=27321218 [10:15:55] [[Tech]]; Matěj Suchánek; /* Empty template variables */ Reply; https://meta.wikimedia.org/w/index.php?diff=25016223&oldid=25014890&rcid=27323509 [15:12:18] [[Tech]]; Legoktm; /* Empty template variables */ Reply; https://meta.wikimedia.org/w/index.php?diff=25016580&oldid=25016223&rcid=27324624 [17:30:04] Could somebody who understands the low-level details of how mediawiki handles oauth take a look at https://phabricator.wikimedia.org/T336610 please? [17:30:25] It looks like if you supply oauth credentials, the server doesn't handle redirects properly. [17:30:59] but I'm getting out of my depth on the low-level HTTP details. [17:34:15] roy649: can you reproduce with curl [17:34:37] you mean on the command line? [17:34:52] https://stackoverflow.com/questions/3044315/how-to-set-the-authorization-header-using-curl [17:34:55] roy649: yes [17:35:37] No, because I don't know how to do oauth with curl, but your last message looks like something I should read :-) [17:36:31] Yes :) [17:36:46] That would work out if it's python or mediawiki [17:37:15] that's oauth-2 [17:45:17] Search OAuth1? [17:45:30] yeah, not finding much. [17:45:36] anything, really [17:46:20] my understanding is that oauth1 and oauth2 just describe different flows, but ultimately would end up with the same token. [17:46:32] so as far as curl is concerned, it shouldn't matter. [17:46:43] Try it then [17:46:46] but I can't figure out how to generate a token. [17:48:30] It doesn't make sense to me that anything having to do with auth would affect a redirect, however. [17:48:46] so none of this really makes sense to me. [17:50:21] It doesn't make sense [17:51:32] On the theory that it doesn't actually matter if the token is valid or not, I tried: [17:51:39] curl -H "AuthToken: 0000" -v https://en.wikipedia.org/wiki/Main%20Page [17:51:43] Ye [17:51:54] What response did you get [17:52:04] Compared to without AuthToken [17:52:09] That gets the correct 301 to: [17:52:10] < location: https://en.wikipedia.org/wiki/Main_Page [17:52:44] So Python is at fault then [17:55:20] Yeah, I guess, but the requests library is pretty rock-solid code that's been around forever and used by everything. [17:55:32] it's not the first place I would guess would be at fault. [17:56:09] maybe I'll open a bug against requests and see what they say. [17:56:25] Try it [17:56:31] They might say what's wrong [17:56:46] They might say I'm an idiot, but I'm used to that by now. [17:57:02] That wouldn't be new for me either [17:57:19] I spent about 2 days at work debugging a capital letter [18:36:46] RhinosF1 https://phabricator.wikimedia.org/T336624