You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently trying to use the Configuration via code settings to generated valid SP Metadata. I'm trying to get a similar SP Metadata to the one below:
To achieve this I try to add the missing fields that were not being generated in the SP Metadata via the code configuration were I tried the following:
However, the SP Metadata does not change and the above fields such as 'NameIDFormat' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent' stay the same as default. No change to the SP Metadata is made. What is the hook to configure the fields expected to be in the SP Metadata required by the idP? Can you provide some guidance please.
The text was updated successfully, but these errors were encountered:
So, the filter you used is the correct one you can use to alter what's being passed to OneLogin\Saml2\Auth class to initialize the SAML instance #. Then the actual generation happens within the SAML library's Settings class called here.
So my suggestion would be to:
Double check that your function is hooked at a higher priority than the one within the plugin, ie: go with 11, eg: add_filter( 'wpsimplesaml_config', function(){ .. }, 11 )
Have a read through the SAML library documentation ( the one used by this plugin ), maybe you'll find more info there.
If all else fails, you can always overtake the metadata endpoint by registering a lower priority callback instead, eg: add_action( 'wpsimplesaml_action_metadata', 'your_alt_metadata_endpoint_callback', 9 );. See the plugin's implementation here.
I'm currently trying to use the Configuration via code settings to generated valid SP Metadata. I'm trying to get a similar SP Metadata to the one below:
To achieve this I try to add the missing fields that were not being generated in the SP Metadata via the code configuration were I tried the following:
/**
*/
add_filter( 'wpsimplesaml_idp_metadata_xml_path', function(){
return ABSPATH . '.private/sso/test.idp.xml';
} );
However, the SP Metadata does not change and the above fields such as
'NameIDFormat' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent'
stay the same as default. No change to the SP Metadata is made. What is the hook to configure the fields expected to be in the SP Metadata required by the idP? Can you provide some guidance please.The text was updated successfully, but these errors were encountered: