FIX OAuth generation of token for Microsoft, Stripe and Generic

This commit is contained in:
Laurent Destailleur
2024-10-01 21:53:45 +02:00
parent 075d0dee3c
commit 83cf2c8c57
10 changed files with 271 additions and 261 deletions

View File

@@ -219,7 +219,7 @@ if (!GETPOST('code')) {
exit();
} else {
// We are coming from the return of an OAuth2 provider page.
dol_syslog("We are coming from the oauth provider page keyforprovider=".$keyforprovider." code=".dol_trunc(GETPOST('code'), 5));
dol_syslog(basename(__FILE__)." We are coming from the oauth provider page keyforprovider=".$keyforprovider." code=".dol_trunc(GETPOST('code'), 5));
// We must validate that the $state is the same than the one into $_SESSION['oauthstateanticsrf'], return error if not.
if (isset($_SESSION['oauthstateanticsrf']) && $state != $_SESSION['oauthstateanticsrf']) {