diff options
author | Petr VobornÃk <pvoborni@redhat.com> | 2012-02-27 15:31:20 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2012-03-02 11:04:33 +0100 |
commit | 368c624a7445f6d3a34993a3835026bb383506e4 (patch) | |
tree | 86314eb4ba98b14a317f72a80fd17f210c6d9207 /install/ui/ipa.css | |
parent | 95b85f6384637e6c5c79a8567de3583e7d3af046 (diff) | |
download | freeipa-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/ipa.css')
-rw-r--r-- | install/ui/ipa.css | 99 |
1 files changed, 98 insertions, 1 deletions
diff --git a/install/ui/ipa.css b/install/ui/ipa.css index 992e44d0a..e86f6135f 100644 --- a/install/ui/ipa.css +++ b/install/ui/ipa.css @@ -1524,4 +1524,101 @@ span.sshkey-status, a.sshkey-set { .automember-header .default_group label { margin-right: 20px; -}
\ No newline at end of file +} + +/* --- Stand alone forms --- */ + +#formwindow { + -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6); + -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6); + box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6); + background: none repeat scroll 0 0 #FFFFFF; + border-color: #FFFFFF #F0F0F0 #F0F0F0; + border-right: 1px solid #F0F0F0; + border-style: solid; + border-width: 1px; + color: #3F3F3F; + margin: 40px auto 100px; + width: 450px; +} + +#error-box, .error-box { + -moz-border-radius: 0.3em 0.3em 0.3em 0.3em; + -webkit-border-radius: 0.3em 0.3em 0.3em 0.3em; + background-color: #FFEBE8; + border: 1px solid #DD3C10; + margin: 0 2em 1em 2em; + padding: 1em 2em; +} + +#formwindow h2 { + background-color: #F0F0F0; + font-size: 1.6em; + padding: 18px 15px 14px 22px; + text-transform: uppercase; + margin: 0 0 1em 0; + font-weight: bold; +} + +.formbutton input { + float: right; + margin: 1em 1em 1em 0; + -moz-border-radius: 0.3em 0.3em 0.3em 0.3em; + -webkit-border-radius: 0.3em 0.3em 0.3em 0.3em; + border-radius: 0.3em 0.3em 0.3em 0.3em; + background: -moz-linear-gradient(center top, #959595, #5e5e5e) repeat scroll 0 0 transparent; + background: -webkit-radial-gradient(center top, #959595, #5e5e5e) repeat scroll 0 0 transparent; + border: 1px solid #777777; + color: #ffffff; + font-weight: normal; + padding: 0.5em 0.8em; +} + +.formcontent { + padding: 0em 1em 1em; +} + +/* --- Login form --- */ +#login li { + padding-bottom: 15px; + text-align: right; + width: 370px; + list-style-type: none; +} + +#login li input { + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2); + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2); + margin-left: 15px; + padding: 2px 10px; + width: 248px; +} + +#login li label, #modal li label { + font-weight: bold; + font-size: 1.2em; + list-style-type: none; +} + +form#login { + display: inline-block; + padding-bottom: 15px; + width: 418px; +} + +/* --- Login page --- */ + +.login-page #formwindow { + margin-top: 100px; +} + +/* --- Unauthorized dialog --- */ + +.auth-dialog { + padding: 0 2em; +} + +.auth-dialog h3 { + margin: 0.5em; +} |