Bugs / Fixes for 0.91
-
I’ve recently got this plug-in setup and encountered a few bugs I’ve fixed that should go into the plug-in.
Blank Screen on log-in redirect
This resulted in the following error message.
Could not find the metadata of an IdP with entity ID 'https://your-idp.net'
Currently there is a problem with saving Service Provider configuration. The form has a hidden IDP name which always is set to blank. This causes the login redirect to fail with an error indicating that SimpleSAML can’t find the identity provider because it’s looking for the default IDP name. This can be fixed by uncommenting out the following code in lib/views/sso_sp.sh file. Also you must delete the hidden IDP field.
<?php $policies = array( 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress', 'urn:oasis:names:tc:SAML:2.0:nameid-format:transient', 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent' ); foreach($policies as $policy) { $selected = ( $this->settings->get_nameidpolicy() == $policy ) ? ' selected="selected"' : ''; echo '<option value="' . $policy . '"' . $selected . '>' . $policy . '</option>'."\n"; } ?>
Blank audience restrictions collection causing errors in assertion processing.
This resulted in the following error message:
This SP [] is not a valid audience for the assertion. Candidates were: []
This was a result of the assertion my IDP supplied multiple records in the audience restrictions. Change this line in saml/lib/SAML2/Assertion.php
$this->validAudiences = array_intersect($this->validAudiences, $audiences);
to
$this->validAudiences = array_merge($this->validAudiences, $audiences);
The last thing I’m working on fixing is a problem with the relay state passing. Currently the plugin assumes the only page needing authentication is wp-admin and redirects to that page after every log in.
- The topic ‘Bugs / Fixes for 0.91’ is closed to new replies.