-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable IDP discovery service or disable settings function #186
Comments
Hi @yasvanth, Sorry, I'm not sure I understand fully. To confirm, you'd like to simply disable the plugin settings page in the backend? To clarify, could you share some screenshots of what you're referring to? Thanks! |
@danielbachhuber , Thanks for your prompt response. |
@danielbachhuber, Let me provide some information We have wordpress site which is used by multiple institutions. User login to site by authenticating using their campus IDP. In order to allow multiple authz from multiple IDP, SAML SP will use a option called "IDP discovery service" where user selects their respective IDP from the list. In traditional way we configure this on SAML software such as simplesamlphp or shibboleth as example below: // Can be NULL/unset, in which case an entity ID is generated based on the metadata URL. 'entityID' => 'https://www.example.com/simplesaml', // The entity ID of the IdP this SP should contact. // Can be NULL/unset, in which case the user will be shown a list of available IdPs. 'idp' => null, // The URL to the discovery service. // Can be NULL/unset, in which case a builtin discovery service will be used. 'discoURL' => 'https://ds.heanet.ie/DS/', ], If This site will show how discovery service works : https://edugate.heanet.ie/Whoami/Login . In older versions of plugin, we define this in simplesamlphp config whereas now wp-saml setting page has IDP configurations as shown in image, where IDP details are mandatory. Form the Image you could see that we need to define SP/IDP details even though we have configured in simplesamlphp. My question: Is it possible to override/dissable this section and to use the configs from simplesamlphp which is installed in the service along with wordpress. Thanks, |
Thanks for the clarification, @yasvanth . I think I have a better understanding of what you're trying to do. The backend page only appears if you haven't configured your options through a filter. Can you try adding the following to your theme's add_filter(
'wp_saml_auth_option',
function( $value ) {
return $value;
}
); If that code snippet is enabled, you should see this as your backend screen instead: |
@danielbachhuber Thanks for the fix, it works as expected. Best, |
Great! Glad we were able to find a solution. |
Hi,
I have used this plugin(v.0.5) which allows us to configure the simplesamlphp setting in
wp-saml-auth.php
and uses discovery service from simpleSAMLPHP configuration. Whereas now we need to define the IDP provider details in setting page to activate the plugin.I authenticate users from different IDP to my website, Is there a way to disable plugin setting in wp-saml-auth?
Best,
Yash
The text was updated successfully, but these errors were encountered: