doAuth($state, (string)$_GET['openid_url']); } } catch (Exception $e) { $error = $e->getMessage(); } $config = SimpleSAML_Configuration::getInstance(); $t = new SimpleSAML_XHTML_Template($config, 'openid:consumer.php', 'openid'); $t->data['error'] = $error; $t->data['AuthState'] = $authState; $t->show();