Topic on Project:Support desk

SimpleSAMLphp w/ AWS SSO

5
Lumen1118 (talkcontribs)

I'm trying to set up and configure SimpleSAMLphp on a MediaWiki installation to connect with and authenticate via the AWS SSO service. I'm totally new to setting up SSO, so am completely stumbling and haven't been able to track down much of any documentation on how to do this. The end goal is to move the entire MediaWiki site behind authentication. SimpleSAMLphp and PluggableAuth are installed and a rough configuration is in place. The LocalSettings.php file currently contains the following:

# PluggableAuth

wfLoadExtension( 'PluggableAuth' );

$wgGroupPermissions['*']['autocreateaccount'] = false;

$wgPluggableAuth_EnableAutoLogin = true;

$wgPluggableAuth_EnableLocalLogin = true;

$wgPluggableAuth_EnableLocalProperties = false;

$wgPluggableAuth_ButtonLabel = 'Sign On with SSO';

$wgPluggableAuth_ExtraLoginFields = [];

#SimpleSAML

wfLoadExtension( 'SimpleSAMLphp' );

$wgSimpleSAMLphp_InstallDir = '/bitnami/mediawiki/extensions/SimpleSAMLphp';

$wgSimpleSAMLphp_AuthSourceId = 'https://portal.sso.us-west-2.amazonaws.com/saml/assertion/<<redacted>>';

$wgSimpleSAMLphp_RealNameAttribute = 'RealNameAttribute';

$wgSimpleSAMLphp_EmailAttribute ='EmailAttribute';

$wgSimpleSAMLphp_UsernameAttribute = 'UsernameAttribute';


When we go to the MediaWiki, we're presented with the login screen and an option to use SSO. Once the username and password are provided and we click on the "Sign On with SSO" button, we're given a blank http://<<site>>/wiki/Special:PluggableAuthLogin page.


What are we missing?

Bawolff (talkcontribs)
Lumen1118 (talkcontribs)

Right... that gave us enough error data to at least get a missing prerequisite installed. Thanks! Now digging into configuration to make sure we've gotten that right.

Lumen1118 (talkcontribs)

Okay, got quite a bit further. We now need to exchange metadata with the IdP, but only MediaWiki is running on this server so we have no access to the /simplesaml web portal. Do we need to install Apache and configure all of that, or can this be done through MediaWiki since that's the only place we're using SimpleSAMLphp?

Lumen1118 (talkcontribs)

Got it all working after a few rounds of banging my head. Thanks for your help.

Reply to "SimpleSAMLphp w/ AWS SSO"