Facing Issue while integrating SAML to moodle

Facing Issue while integrating SAML to moodle

by Naresh devarasetty -
Number of replies: 0

Hi, 


We have followed moodle documentation for SAML configuration while configuring simplesaml facing issues as like .

After all these configuration while logging in openidp we are getting exception as

"SimpleSAML_Error_Error: UNHANDLEDEXCEPTION

Backtrace:

1 www/_include.php:45 (SimpleSAML_exception_handler)

0 [builtin] (N/A)

Caused by: Exception: Unable to extract public key

Backtrace:

4 vendor/robrichards/xmlseclibs/src/XMLSecurityKey.php:340 (RobRichards\XMLSecLibs\XMLSecurityKey::loadKey)

3 modules/saml/lib/Message.php:212 (sspmod_saml_Message::checkSign)

2 modules/saml/lib/Message.php:565 (sspmod_saml_Message::processResponse)

1 modules/saml/www/sp/saml2-acs.php:129 (require)

0 www/module.php:135 (N/A) "

We have debug the code and found the issue with certificate key. We have generated certificates based on moodle documentation only and configured those certificates in authsource.php file for SP and saml20-idp-hosted.php for idp.

 Please let us know is there any more changes required for certificates. 

Anyone could you please have a look and help us.

Thanks,

Naresh

Average of ratings: -