An extension for LemonLDAP::NG to to Single Sign On on M-Files.
M-Files is an enterprise content management solution, developed by the M-Files Corporation.
LemonLDAP::NG is a free WebSSO product.
This extension allows to request a token to M-Files, and use it in a header to provide SSO trough LemonLDAP::NG. The use of M-Files webservices is documented on M-Files site.
Install this extension like documented on LemonLDAP::NG project wiki:
-
Load module in Handler apache configuration file
PerlRequire /root/lemonldap-ng/MFilesExtension.pm
-
Declare
MFilesExtension::getMFilesToken
in custom functions -
Desactive Safe jail
-
Store password in session
-
Create a macro to fetch the token at authentication step:
MFilesToken => getMFilesToken($uid,$_password,"{Vault Guid}","https://xxx/REST/server/authenticationtokens")
-
In virtual host, add the
X-Authentication
header:X-Authentication => $MFilesToken