[ // Claims richiesti "given_name" => [ "essential" => true ], "family_name" => [ "essential" => true ], "https://attributes.eid.gov.it/fiscal_number" => [ "essential" => true ], ] ], ["openid",], // Tipo di login ["consent", "login"] ); try { Authorize::sendAuthorizationRequest($service, $env, $provider_id, $baseRequest); $_SESSION["publicSSOSource"] = ($service == "CIE") ? "CIE" : "SPID"; } catch (FlowException $fex) { // Le FlowException sono eccezioni gestite da oidc-client che hanno un messaggio // abbastanza friendly per l'utente die($fex->getMessage()); } catch (\Throwable $t) { // Il resto delle eccezioni invece รจ inatteso e andrebbe gestito separatamente throw $t; }