30function openid_connect_prepare_head()
32 global $langs,
$conf, $user;
37 $head[$h][1] = $langs->trans(
"Parameters");
38 $head[$h][2] =
'settings';
52function openid_connect_get_state()
54 return hash(
'sha256', session_id());
63function openid_connect_get_redirect_url()
65 return DOL_MAIN_URL_ROOT .
'/core/modules/openid_connect/callback.php';
74function openid_connect_get_url()
76 return getDolGlobalString(
'MAIN_AUTHENTICATION_OIDC_AUTHORIZE_URL') .
'?client_id=' .
getDolGlobalString(
'MAIN_AUTHENTICATION_OIDC_CLIENT_ID') .
'&redirect_uri=' . openid_connect_get_redirect_url() .
'&scope=' .
getDolGlobalString(
'MAIN_AUTHENTICATION_OIDC_SCOPES') .
'&response_type=code&state=' . openid_connect_get_state();
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add', $filterorigmodule='')
Complete or removed entries into a head array (used to build tabs).
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...