packages/ssoinabox-webui/root/usr/local/share/weblogin/ssoinabox/templates/error.tmpl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/ssoinabox-webui/root/usr/local/share/weblogin/ssoinabox/templates/error.tmpl Tue Jan 08 23:13:29 2013 -0500
@@ -0,0 +1,124 @@
+<!DOCTYPE html>
+<!-- :mode=html: -->
+<html>
+ <head>
+ <meta http-equiv="pragma" content="no-cache" />
+ <title>WebAuth Error</title>
+ <link rel="stylesheet" type="text/css" href="images/bootstrap/css/bootstrap.min.css" />
+ <link rel="stylesheet" type="text/css" href="images/ssoinabox.css" />
+ </head>
+
+ [% IF notdefined %]
+<!--
+This is the template for the WebAuth error page. It is displayed whenever
+the login.fcgi script on the weblogin server encounters an error.
+Variables used:
+
+err_bad_method : browser submitted login page via GET not POST
+err_cookies_disabled : cookies disabled in the web browser
+err_no_request_token : no request token (user went straight to weblogin)
+err_sendauth : sendauth function returned non-zero status
+err_no_mfactor : site requested multifactor, user has none
+err_insufficient_mfactor : site requested higher multifactor than user has
+err_insufficient_loa : site requested higher LoA than user has
+err_webkdc : the WebKDC returned an error
+err_msg : error message from WebKDC
+multifactor_required : level of multifactor required for the destination
+multifactor_configured : level of multifactor set up by the user
+login_cancel : a cancel URL was specified
+cancel_url : the specified cancel URL
+-->
+ [% END %]
+
+ <body>
+ <div class="well login-form">
+ <h1>
+ <img alt="SSO in a Box" src="images/ssoinabox.png" />
+ </h1>
+ <div class="loginbox">
+ <div class="alert alert-error">
+ <!-- Error: browser submitted login page via GET -->
+ [% IF err_bad_method %]
+ Error: Login form not properly submitted.
+ Your browser has improperly submitted the login form
+ via GET instead of POST, which risks exposing your
+ password in your browser history and to other web sites
+ you visit. Please check that your browser is not
+ misconfigured and you do not use browser plugins that
+ override proper form handling.
+ [% END %]
+
+ <!-- Error: cookies disabled in web browser -->
+ [% IF err_cookies_disabled %]
+ Error: You must enable cookies on your web browser.
+ You have just tried to access a web service that is
+ protected by WebAuth. However, WebAuth is unable to
+ tell this web service who you are because your browser
+ has cookies disabled.
+ WebAuth depends on cookies to communicate with your web
+ service. Please enable cookies in your web browser.
+ [% END %]
+
+ <!-- Error: no response token -->
+ [% IF err_no_request_token %]
+ Error: The URL given is incomplete.
+ [% END %]
+
+ <!-- Error: missing data when redisplaying the confirm page -->
+ [% IF err_confirm %]
+ Error: Necessary form data was missing.
+ You have probably accessed a stale cached page by
+ mistake.
+ [% END %]
+
+ <!-- Error: multifactor required, user has none set up -->
+ [% IF err_no_mfactor %]
+ Error: Multifactor is required for the destination site
+ but you have none set up to use.
+ [% END %]
+
+ <!-- Error: higher multifactor level required than user has -->
+ [% IF err_insufficient_mfactor %]
+ Error: The destination site requires a higher level of
+ multifactor than you have set up.
+ The site requires one of the following levels:<br />
+ [% FOREACH level IN multifactor_required %]
+ [% level %]<br />
+ [% END %]
+
+ Your level of multifactor is only:<br />
+ [% FOREACH level IN multifactor_configured %]
+ [% level %]<br />
+ [% END %]
+
+ [% IF login_cancel %]
+ <a href="[% cancel_url %]">Cancel</a>
+ logging on to this service
+ [% END %]
+ [% END %]
+
+ <!-- Error: higher LoA required than user has -->
+ [% IF err_insufficient_loa %]
+ Error: The destination site requires a higher level of
+ assurance than you have set up.
+ [% IF login_cancel %]
+ <a href="[% cancel_url %]">Cancel</a>
+ logging on to this service
+ [% END %]
+ [% END %]
+
+ <!-- Error: sendauth failed to run successfully -->
+ [% IF err_sendauth %]
+ Error: Unable to send authentication code.
+ There was an internal error while attempting to send you
+ an authentication code.
+ [% END %]
+
+ [% IF err_webkdc %]
+ Error: [% err_msg FILTER html %]
+ [% END %]
+ </div>
+ </div>
+ </div>
+ </body>
+</html>