does mediawiki support saml authentication? if yes, is there a link/doc i can refer to.
Topic on Project:Support desk
Yes. See Extension:SimpleSAMLphp, which depends upon Extension:PluggableAuth.
Have you tried Extension:SimpleSamlAuth ?
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".
See Manual:How to debug how to get a stack trace for that exception. Please also provide exact MediaWiki and exact extension version information.
Thank you for the response. i enabled debug log, but logs are populated in given path. and yes, path is writable by application.
Thank you for the response. i enabled debug log, but logs are *not populated in given path. and yes, path is writable by application.
@Cindy.cicalese Can you please help me on this?
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}
As wriiten before, Please also provide exact MediaWiki and exact extension version information.
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.