summaryrefslogtreecommitdiffstats
path: root/install/ui/login.html
diff options
context:
space:
mode:
authorPetr Voborník <pvoborni@redhat.com>2012-02-27 15:31:20 +0100
committerPetr Vobornik <pvoborni@redhat.com>2012-03-02 11:04:33 +0100
commit368c624a7445f6d3a34993a3835026bb383506e4 (patch)
tree86314eb4ba98b14a317f72a80fd17f210c6d9207 /install/ui/login.html
parent95b85f6384637e6c5c79a8567de3583e7d3af046 (diff)
downloadfreeipa-368c624a7445f6d3a34993a3835026bb383506e4.tar.gz
freeipa-368c624a7445f6d3a34993a3835026bb383506e4.tar.xz
freeipa-368c624a7445f6d3a34993a3835026bb383506e4.zip
Forms based authentication UI
Support for forms based authentication was added to UI. It consist of: 1) new login page Page url is [ipa server]/ipa/ui/login.html Page contains a login form. For authentication it sends ajax request at [ipa server]/session/json/login_password. If authentication is successfull page is redirected to [ipa server]/ipa/ui if it fails from whatever reason a message is shown. 2) new enhanced error dialog - authorization_dialog. This dialog is displayed when user is not authorized to perform action - usually when ticket and session expires. It is a standard error dialog which shows kerberos ticket related error message and newly offers (as a link) to use form based authentication. If user click on the link, the dialog content and buttons switch to login dialog which has same functionality as 'new login page'. User is able to return back to the error message by clicking on a back button. login.html uses same css styles as migration page -> ipa-migration.css was merged into ipa.css. https://fedorahosted.org/freeipa/ticket/2450
Diffstat (limited to 'install/ui/login.html')
-rw-r--r--install/ui/login.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/install/ui/login.html b/install/ui/login.html
new file mode 100644
index 000000000..d88ee0eeb
--- /dev/null
+++ b/install/ui/login.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>IPA: Identity Policy Audit</title>
+
+ <link rel="stylesheet" type="text/css" href="ipa.css" />
+
+ <script type="text/javascript" src="json2.js"></script>
+ <script type="text/javascript" src="jquery.js"></script>
+ <script type="text/javascript" src="login.js"></script>
+</head>
+
+<body class="info-page login-page">
+
+ <div class="container_1">
+
+ <div class="header-logo">
+ <img src="images/ipa-logo.png" /><img src="images/ipa-banner.png" />
+ </div>
+
+ <div id="formwindow">
+ <h2>Login</h2>
+ <div id="error-box" style="display:none">
+ <p><strong>Please re-enter your username or password</strong></p>
+ <p>The password or username you entered is incorrect. Please try again (make sure your caps lock is off).</p>
+ <p>If the problem persists, contact your administrator.</p>
+ </div>
+
+ <form id="login">
+ <ul>
+ <li>
+ <label for="username">Username:</label>
+ <input type="text" name="username" value="" accesskey="u" />
+ </li>
+ <li>
+ <label for="password">Password:</label>
+ <input type="password" name="password" value="" accesskey="p" />
+ </li>
+ <ul>
+
+ <div class="formbutton">
+ <input name="submit" value="Login" type="submit" />
+ </div>
+ </form>
+ </div>
+ </div>
+
+</body>
+
+</html>