phpsaml icon indicating copy to clipboard operation
phpsaml copied to clipboard

Cant find metadata URL

Open Deisukey opened this issue 2 years ago • 7 comments

Hi, I cant seem to find the metadata url needed by the IDP to retrieve the plugins information.

Deisukey avatar Jun 28 '23 14:06 Deisukey

Hi @Deisukey,

The url should be: GLPI_HOME/plugins/phpsaml/front/meta.php

DonutsNL avatar Jul 02 '23 18:07 DonutsNL

Hi @Deisukey,

The url should be: GLPI_HOME/plugins/phpsaml/front/meta.php

Hi @DonutsNL ,

Can you tell me why I get a blank page if I open GLPI_HOME/plugins/phpsaml/front/meta.php

All data is filled in GLPI_HOME/plugins/phpsaml/front/config.php

Shigol1 avatar Jul 26 '23 10:07 Shigol1

Blank pages are caused by exceptions. Please review the error logging. If i find the time i will have a look at meta as well. Its a file i have not touched yet. Rgrds.

DonutsNL avatar Jul 27 '23 07:07 DonutsNL

Blank pages are caused by exceptions. Please review the error logging. If i find the time i will have a look at meta as well. Its a file i have not touched yet. Rgrds.

@DonutsNL

Found out that there is no /php saml/lib/php-saml/settings.php file. If you create from settings_example.php, then meta.php starts displaying the information that is filled in this file. But ADFS won't accept it...

The plugin is configurable in /php saml/lib/php-saml/settings.php not the plugin's GUI?

Logs need to watch the web server?

Shigol1 avatar Jul 27 '23 09:07 Shigol1

Yeah, phpsaml doesnt use a filebased config but a database config instead. I have rewritten the meta.php to use the configuration thats in the database.

Try replacing the code in meta.php with this. It should populate the meta with the correct information:

include ('../../../inc/includes.php');

use OneLogin\Saml2\Metadata;

// This is still problematic on errors. header('Content-Type: text/xml'); $config = PluginPhpsamlPhpsaml::getSettings();

$samlMetadata = Metadata::builder($config['sp'], $config['security']['authnRequestsSigned'], false); echo $samlMetadata;

This should result in:

image

DonutsNL avatar Jul 27 '23 12:07 DonutsNL

Also see: https://github.com/DonutsNL/phpsaml/blob/master/front/meta.php

DonutsNL avatar Jul 27 '23 12:07 DonutsNL

Yeah, phpsaml doesnt use a filebased config but a database config instead. I have rewritten the meta.php to use the configuration thats in the database.

Try replacing the code in meta.php with this. It should populate the meta with the correct information:

include ('../../../inc/includes.php');

use OneLogin\Saml2\Metadata;

// This is still problematic on errors. header('Content-Type: text/xml'); $config = PluginPhpsamlPhpsaml::getSettings();

$samlMetadata = Metadata::builder($config['sp'], $config['security']['authnRequestsSigned'], false); echo $samlMetadata;

This should result in:

image

Sorry, but the metadata is still not displayed... Does this plugin work with On-Premise ADFS?

Shigol1 avatar Aug 01 '23 04:08 Shigol1