'code', 'client_id' => $cfg['client_id'], 'redirect_uri' => $cfg['redirect_uri'], 'scope' => 'openid profile email groups', 'state' => $state, ])); } catch (RuntimeException $e) { page_start('Login error'); echo '
' . h($e->getMessage()) . '
'; page_end(); }