Page MenuHomeMiraheze

OAuth error on recreated simpleelectronicswiki
Closed, ResolvedPublic

Description

Bug report: @Reception123 and I encountered this problem trying to access the recreated simpleelectronicswiki with not being able to sign in using our two-factor authentication device.

Error was [5c89fb19f251b4f29d2f5c62] 2021-04-05 17:32:22: Fatal exception of type "TypeError"

Partial trace by @Reception123 was:

Argument 1 passed to MediaWiki\Extension\OATHAuth\Auth\SecondaryAuthenticationProvider::getProviderForModule() must be an instance of MediaWiki\Extension\OATHAuth\IModule, null given, called in /srv/mediawiki/w/extensions/OATHAuth/src/Auth/SecondaryAuthenticationProvider.php on line

Full trace by @RhinosF1 from graylog was:

mediawiki_exception_message
Argument 1 passed to MediaWiki\Extension\OATHAuth\Auth\SecondaryAuthenticationProvider::getProviderForModule() must be an instance of MediaWiki\Extension\OATHAuth\IModule, null given, called in /srv/mediawiki/w/extensions/OATHAuth/src/Auth/SecondaryAuthenticationProvider.php on line 64
mediawiki_exception_trace
/srv/mediawiki/w/extensions/OATHAuth/src/Auth/SecondaryAuthenticationProvider.php:64, /srv/mediawiki/w/includes/auth/AuthManager.php:663, /srv/mediawiki/w/includes/specialpage/AuthManagerSpecialPage.php:374, /srv/mediawiki/w/includes/specialpage/AuthManagerSpecialPage.php:502, /srv/mediawiki/w/includes/htmlform/HTMLForm.php:707, /srv/mediawiki/w/includes/specialpage/AuthManagerSpecialPage.php:435, /srv/mediawiki/w/includes/specialpage/LoginSignupSpecialPage.php:319, /srv/mediawiki/w/includes/specialpage/SpecialPage.php:600, /srv/mediawiki/w/includes/specialpage/SpecialPageFactory.php:635, /srv/mediawiki/w/includes/MediaWiki.php:307, /srv/mediawiki/w/includes/MediaWiki.php:940, /srv/mediawiki/w/includes/MediaWiki.php:543, /srv/mediawiki/w/index.php:53, /srv/mediawiki/w/index.php:46

I've tried deleting my simpleelectronics.miraheze.org cookies several times and re-signing into both that wiki and Meta Wiki. I can re-sign in to Meta Wiki fine, but if I visit that wiki again, I get logged out on Meta Wiki again. Reception123 has also tried re-signing into both wikis and can sign into the latter fine each time.

Event Timeline

Dmehus triaged this task as High priority.Mon, Apr 5, 18:14
Dmehus created this task.
Dmehus updated the task description. (Show Details)

@Dmehus I've now managed to log in. Please try again following the exact following steps: open the private browsing mode of your web browser and login, and go to Special:UserLogout. Next, open the regular browsing mode of your web browser, delete your cookies for *.miraheze.org and try and login again.

@Dmehus I've now managed to log in. Please try again following the exact following steps: open the private browsing mode of your web browser and login, and go to Special:UserLogout. Next, open the regular browsing mode of your web browser, delete your cookies for *.miraheze.org and try and login again.

@Reception123 Well, yes, but that's the nuclear option. I'd rather not have to delete all my cookies because of a weird bug with the OAuth extension. I'm willing to try signing out and in again on Loginwiki and deleting my simpleelectronics.miraheze.org cookies.

We really should be creating an upstream task for this.

@Dmehus I've now managed to log in. Please try again following the exact following steps: open the private browsing mode of your web browser and login, and go to Special:UserLogout. Next, open the regular browsing mode of your web browser, delete your cookies for *.miraheze.org and try and login again.

@Reception123 Well, yes, but that's the nuclear option. I'd rather not have to delete all my cookies because of a weird bug with the OAuth extension. I'm willing to try signing out and in again on Loginwiki and deleting my simpleelectronics.miraheze.org cookies.

We really should be creating an upstream task for this.

@Reception123 That worked...just using Special:UserLogout on Loginwiki, then Special:UserLogin on Loginwiki. No need to delete anything more than simpleelectronics.miraheze.org cookies. I didn't want to have to delete all my cookies for this very obscure error.

Perhaps we could lower this task's priority to normal or low and move to stalled and tag with Upstream in order to raise this as an upstream task?

Reception123 lowered the priority of this task from High to Normal.Wed, Apr 7, 15:51

Moving to normal for now until I can file the upstream task. However, the policy is that upstream tasks usually get closed on our side, unless we expect that they will be fixed quickly or are waiting on them to be done in order to do something. Also, it's quite problematic to file this upstream as it would be almost impossible for them to reproduce

Moving to normal for now until I can file the upstream task. However, the policy is that upstream tasks usually get closed on our side, unless we expect that they will be fixed quickly or are waiting on them to be done in order to do something. Also, it's quite problematic to file this upstream as it would be almost impossible for them to reproduce

Okay, fair enough. Perhaps we could add a status reason to "Upstream" that would be considered a "closed" rather than an "open" reason (since we do have Upstream as a project)? Otherwise, feel free to close as resolved or invalid, with a note about it being upstream.

Reception123 claimed this task.

After more thought, I don't think it would make sense to report this to Upstream as they will surely have no way to reproduce due to the fact that we use the CreateWiki system for our wikis, which they don't. Additionally, we did so many things to try to set up this new wiki that I won't even be able to list all the steps.