$data = array( 'response_type' => 'code', 'client_id' => 'chemin_openid', 'state' => getRandomBytes(), 'scope' => 'openid profile', ); $authorization_endpoint = 'https://oa.dnc.global/authorization'; $authorization_endpoint .= '?' . http_build_query($data); header('Location: ' . $authorization_endpoint); exit();