dolibarr 21.0.0-alpha
functions_openid_connect.php File Reference

OpenID Connect: Authorization Code flow authentication. More...

Go to the source code of this file.

Functions

 check_user_password_openid_connect ($usertotest, $passwordtotest, $entitytotest)
 Check validity of user/password/entity If test is ko, reason must be filled into $_SESSION["dol_loginmesg"].
 

Detailed Description

OpenID Connect: Authorization Code flow authentication.

See https://github.com/Dolibarr/dolibarr/issues/22740 for more information about setup openid_connect

Definition in file functions_openid_connect.php.

Function Documentation

◆ check_user_password_openid_connect()

check_user_password_openid_connect ( $usertotest,
$passwordtotest,
$entitytotest )

Check validity of user/password/entity If test is ko, reason must be filled into $_SESSION["dol_loginmesg"].

Parameters
string$usertotestLogin
string$passwordtotestPassword
int$entitytotestNumber of instance (always 1 if module multicompany not enabled)
Returns
string|false Login if OK, false if KO

Definition at line 41 of file functions_openid_connect.php.

References dol_syslog(), getDolGlobalInt(), getDolGlobalString(), GETPOST(), and getURLContent().