Page MenuHomePhabricator

Vrghost1 (Bengt Bjorkberg)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Saturday

  • Clear sailing ahead.

User Details

User Since
Sep 15 2015, 9:09 AM (348 w, 1 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Vrghost1 [ Global Accounts ]

Recent Activity

Sep 22 2015

Vrghost1 added a comment to T112705: passport-mediawiki does not set oauth_token.

I think a 403 would have been more useful as that error message would have pointed me in the right direction a lot quicker.
Also as I can't think of a scenario where oauth:initiate would be called other than server to server, so getting the login screen seems wrong.
Don't know if pages can have custom read access denied behaviour though?

Sep 22 2015, 7:27 AM · MediaWiki-extensions-OAuth

Sep 21 2015

Vrghost1 closed T112705: passport-mediawiki does not set oauth_token as Resolved.

After a lot of faffing about. I managed to get around the issue by doing a fresh install to 1.25.2.
Do not thing I can get it running in 1.24 at all. Seems like lack of error messages that made sense to me was the actual reason.
For anyone else that have this issue.

Sep 21 2015, 2:43 PM · MediaWiki-extensions-OAuth
Vrghost1 added a comment to T112705: passport-mediawiki does not set oauth_token.

One step forward, a few steps sideways?

Sep 21 2015, 11:14 AM · MediaWiki-extensions-OAuth

Sep 18 2015

Vrghost1 added a comment to T112705: passport-mediawiki does not set oauth_token.

@Ricordisamoa: As a test, would it be possibly for you to point your app to my wiki at
http://v-ghost.port0.org:8081/dbfswiki/
Just to see if it works (its a development system) Especially if you pick up a oauth_token.

Sep 18 2015, 5:22 PM · MediaWiki-extensions-OAuth
Vrghost1 added a comment to T112705: passport-mediawiki does not set oauth_token.

There is one other thing that is surprising me.
The default setting for passport (yours and the other one) seems to assume that they should initiate against index.php. But if I do that it breaks (well, more that it is already broken), will try upgrading it to 1.25 and see if that makes any difference.

Sep 18 2015, 3:29 PM · MediaWiki-extensions-OAuth
Vrghost1 added a comment to T112705: passport-mediawiki does not set oauth_token.

@Ricordisamoa: Tried that, seems to have the same issue. No oauth_token once it gets to that stage.
Which version of mediawiki and oauth are you using?
MediaWiki 1.24.1
PHP 5.4.16 (apache2handler)
No version information on Oauth

Sep 18 2015, 2:50 PM · MediaWiki-extensions-OAuth
Vrghost1 added a comment to T112705: passport-mediawiki does not set oauth_token.

So have been looking into this issue, and as far as I can tell the issue seems to be that passport-mediawiki-oauth does not pick up the oauth token it should receive from
/index.php?title=Special%3AOAuth%2Finitiate

Sep 18 2015, 2:12 PM · MediaWiki-extensions-OAuth
Vrghost1 added a comment to T112635: OAuth should return a useful error message when oauth_token is missing.

Seems like the first issue is that for one reason or another the oauth initiaion part does not pick up the oauth token returned. Will try to get it working

Sep 18 2015, 2:02 PM · MW-1.28-release (WMF-deploy-2016-08-30_(1.28.0-wmf.17)), MW-1.27-release (WMF-deploy-2015-09-29_(1.27.0-wmf.1)), MW-1.27-release-notes, Patch-For-Review, MediaWiki-extensions-OAuth

Sep 17 2015

Vrghost1 added a comment to T112635: OAuth should return a useful error message when oauth_token is missing.

@csteipp: Just to be clear, I did not write the actual passport-mediawiki-oauth module. So I do not know if it is correct other than indication is that it did work some time in the pass (I am certain that Dan did a good work even if he calls it a hack). So at some point it did work.

Sep 17 2015, 4:55 PM · MW-1.28-release (WMF-deploy-2016-08-30_(1.28.0-wmf.17)), MW-1.27-release (WMF-deploy-2015-09-29_(1.27.0-wmf.1)), MW-1.27-release-notes, Patch-For-Review, MediaWiki-extensions-OAuth
Vrghost1 added a comment to T112635: OAuth should return a useful error message when oauth_token is missing.

And would I be right in saying that in theory, this should be the "registration" prior to actually trying to access oauth.

Sep 17 2015, 4:10 PM · MW-1.28-release (WMF-deploy-2016-08-30_(1.28.0-wmf.17)), MW-1.27-release (WMF-deploy-2015-09-29_(1.27.0-wmf.1)), MW-1.27-release-notes, Patch-For-Review, MediaWiki-extensions-OAuth
Vrghost1 added a comment to T112635: OAuth should return a useful error message when oauth_token is missing.

So started hacking around a bit in the code, and have manage to get the request to be
http://v-ghost.port0.org:8081/dbfswiki/index.php?title=Special%3AOAuth%2Fauthorize&oauth_token=98dfb1734b0db5cf765d3db1366737f37c652eaa&oauth_consumer_key=449c71620457972e86ef20e083ccb87b

Sep 17 2015, 3:55 PM · MW-1.28-release (WMF-deploy-2016-08-30_(1.28.0-wmf.17)), MW-1.27-release (WMF-deploy-2015-09-29_(1.27.0-wmf.1)), MW-1.27-release-notes, Patch-For-Review, MediaWiki-extensions-OAuth

Sep 15 2015

Vrghost1 added a comment to T112635: OAuth should return a useful error message when oauth_token is missing.

This is the best I can do for debug log (captured from the window below the confirmation box)

Sep 15 2015, 9:27 AM · MW-1.28-release (WMF-deploy-2016-08-30_(1.28.0-wmf.17)), MW-1.27-release (WMF-deploy-2015-09-29_(1.27.0-wmf.1)), MW-1.27-release-notes, Patch-For-Review, MediaWiki-extensions-OAuth
Vrghost1 created T112635: OAuth should return a useful error message when oauth_token is missing.
Sep 15 2015, 9:20 AM · MW-1.28-release (WMF-deploy-2016-08-30_(1.28.0-wmf.17)), MW-1.27-release (WMF-deploy-2015-09-29_(1.27.0-wmf.1)), MW-1.27-release-notes, Patch-For-Review, MediaWiki-extensions-OAuth