Topic on Project:Support desk

does mediawiki support saml authentication?

11
43.225.26.50 (talkcontribs)

does mediawiki support saml authentication? if yes, is there a link/doc i can refer to.


Malyacko (talkcontribs)
43.225.26.50 (talkcontribs)

I have a working installation of simplesamlphp (https://simplesamlphp.org/download). im able to authenticate against my saml provider.i have installed Extension:SimpleSamlAuth by referring doc. however, when i try to login i get below error

Internal error [XKdaxhDr4SfP0V1CUaxoRAAAAAs] 2019-04-05 13:40:22: Fatal exception of type "InvalidArgumentException".

Malyacko (talkcontribs)

See Manual:How to debug how to get a stack trace for that exception. Please also provide exact MediaWiki and exact extension version information.

43.225.26.50 (talkcontribs)

Thank you for the response. i enabled debug log, but logs are populated in given path. and yes, path is writable by application.

43.225.26.50 (talkcontribs)

Thank you for the response. i enabled debug log, but logs are *not populated in given path. and yes, path is writable by application.

43.225.26.50 (talkcontribs)
43.225.26.50 (talkcontribs)

@Malyacko

Here is the debug log,

[XKdpHxf6ZEpFzph3rK7NswAAAAM] /index.php/Special:PluggableAuthLogin InvalidArgumentException from line 203 of /var/www/html/includes/session/SessionManager.php: Invalid session ID

Backtrace:

#0 /var/www/html/includes/session/PHPSessionHandler.php(215): MediaWiki\Session\SessionManager->getSessionById(string, boolean)

#1 [internal function]: MediaWiki\Session\PHPSessionHandler->read(string)

#2 /var/simplesamlphp/lib/SimpleSAML/SessionHandlerPHP.php(342): session_start()

#3 /var/simplesamlphp/lib/SimpleSAML/Session.php(178): SimpleSAML\SessionHandlerPHP->setCookie(string, string, array)

#4 /var/simplesamlphp/lib/SimpleSAML/Session.php(304): SimpleSAML\Session->__construct()

#5 /var/simplesamlphp/lib/SimpleSAML/Auth/Simple.php(51): SimpleSAML\Session::getSessionFromRequest()

#6 /var/www/html/extensions/SimpleSAMLphp/includes/SimpleSAMLphp.php(250): SimpleSAML\Auth\Simple->__construct(string)

#7 /var/www/html/extensions/SimpleSAMLphp/includes/SimpleSAMLphp.php(145): SimpleSAMLphp::getSAMLClient()

#8 /var/www/html/extensions/PluggableAuth/includes/PluggableAuthLogin.php(31): SimpleSAMLphp->authenticate(NULL, NULL, NULL, NULL, NULL)

#9 /var/www/html/includes/specialpage/SpecialPage.php(569): PluggableAuthLogin->execute(NULL)

#10 /var/www/html/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)

#11 /var/www/html/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#12 /var/www/html/includes/MediaWiki.php(860): MediaWiki->performRequest()

#13 /var/www/html/includes/MediaWiki.php(517): MediaWiki->main()

#14 /var/www/html/index.php(42): MediaWiki->run()

#15 {main}

Malyacko (talkcontribs)

As wriiten before, Please also provide exact MediaWiki and exact extension version information.

Cindy.cicalese (talkcontribs)

Yes, version information is very important. I see the that problem is related to sessions and seems to be using the PHP sessions, which is a known bug. See Extension:SimpleSAMLphp#Known_Bugs for a solution.

Reply to "does mediawiki support saml authentication?"