'code', 'client_id' => $clientId, 'redirect_uri' => $redirectUri, 'scope' => 'openid email profile', 'state' => $state, 'nonce' => $nonce, 'code_challenge' => $codeChallenge, 'code_challenge_method' => 'S256', 'ui_locales' => 'fr', ]; header('Location: ' . $authEndpoint . '?' . http_build_query($params, '', '&', PHP_QUERY_RFC3986), true, 302); exit;