summaryrefslogtreecommitdiffstats
path: root/install/ui/certificate.js
Commit message (Collapse)AuthorAgeFilesLines
* Display serial number as HEX (DECIMAL) when showing certificates.Rob Crittenden2012-03-141-0/+8
| | | | https://fedorahosted.org/freeipa/ticket/1991
* Use fixed font when displaying certificate.Endi Sukma Dewata2012-02-011-10/+10
| | | | | | | The textareas used to display certificates were modified to use fixed font. Ticket #2017
* Added instructions to generate CSR.Endi Sukma Dewata2012-01-131-8/+7
| | | | | | | | | | The certificate request dialog box has been modified to show the OpenSSL commands for generating a CSR. The realm and entry names in the test data have been fixed to be more consistent. Ticket #1012
* Modifying hosts to work with new conceptPetr Vobornik2011-12-051-2/+16
| | | | https://fedorahosted.org/freeipa/ticket/2040
* Splitting basic widgets into visual widgets and fieldsPetr Vobornik2011-12-051-1/+1
| | | | https://fedorahosted.org/freeipa/ticket/2040
* Page is cleared before it is visiblePetr Vobornik2011-11-021-0/+9
| | | | | | | | | https://fedorahosted.org/freeipa/ticket/1459 Changes: * added clear method to widgets, section, search, details, association facets * clear and refresh method in facet are called only if key/filter was changed * added id generator for widgets
* Fixed inconsistent image names.Endi S. Dewata2011-10-271-3/+3
| | | | | | | The images have been renamed to be more consistent and moved into the "images" directory to mimic the original jQuery UI structure. Ticket #1613
* Ticket 1201 - Unable to Download Certificate with BrowserJohn Dennis2011-10-211-13/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Certificates are passed through the IPA XML-RPC and JSON as binary data in DER X509 format. Queries peformed against the LDAP server also return binary DER X509 format. In all cases the binary DER data is base-64 encoded. PEM is standard text format for certificates. It also uses base64 to encode the binary DER data, but had specific formatting requirements. The base64 data must be wrapped inside PEM delimiters and the base64 data must be line wrapped at 64 characters. Most external software which accepts certificates as input will only accept DER or PEM format (e.g. openssl & NSS). Although base64 is closely related to PEM it is not PEM unless the PEM delimters are present and the base64 data is line wrapped at 64 characters. We already convert binary DER certificates which have been passed as base64 in other parts of the IPA code. However this conversion has not been available in the web UI. When the web UI presented certificates it did so by filling a dialog box with a single line of base64 data. A user could not copy this data and use it as input to openssl or NSS for example. We resolve this problem by introducing new javascript functions in certificate.js. IPA.cert.pem_cert_format(text) will examine the text input and if it's already in PEM format just return it unmodified, otherwise it will line wrap the base64 data and add the PEM delimiters. Thus it is safe to call on either a previously formated PEM cert or a binary DER cert encoded as base64. This applies to pem_csr_format() as well for CSR's. Because pem_cert_format() is safe to call on either format the web UI will see the use of the flag add_pem_delimiters was eliminated except in the one case where the IPA.cert.download_dialog() was being abused to display PKCS12 binary data (pkcs12 is neither a cert nor a cert request). Because of the abuse of the cert.download_dialog() for pkcs12 it was necessary to retain the flag which in effect said "do not treat the data as PEM". Modify the CSR (Certificate Signing Request) dialog box to accept a PEM formatted CSR. Remove the artifical PEM delimiters above and below the dialog box which were used to suggest the input needed to be sans the delimiters. The dialog box continues to accept bare base64 thus allowing either text format. Also note this solves the display of certificate data in the UI without touching anything existing code in the server or command line, thus it's isolated.
* Disable enroll button if nothing selected.Endi S. Dewata2011-09-291-32/+64
| | | | | | | | | | A new IPA.dialog_button class has been added to encapsulate the buttons in the dialog box so they can be managed more easily. The adder dialog has been modified to disable the enroll button if there is no entries selected. Ticket #1856
* Fixed problem displaying special characters.Endi S. Dewata2011-09-231-11/+11
| | | | | | | | Some jQuery objects in various locations have been modified to use text() to show values obtained from the server (except messages). The text() will automatically encode special characters. Ticket #1798
* Fixed certificate buttons.Endi S. Dewata2011-08-021-5/+5
| | | | | | | The certificate buttons including Get, View, Revoke, Restore for hosts and services have been fixed to use the correct entity name. Ticket #1556
* removing setters setup and initAdam Young2011-07-281-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | change widget and widget unit tests to hold on to entity, not entity name. Replacing entity_name with entity.name in most places. The one exception is columns for table_widget. Widgets that refer to other entities have to have late resolution of the entity object, due to circular dependencies. cleanup entity assignment. removed template and layout, merged setup into create adder dialogs adjust height for external removed init from widget, isection, association, facet, host and service Make unit tests use factory. fix functional tests to click find link correctly. tweak to activation test, but still broken. moved initialization code to the end use --all for hbacrule find, so the type shows up now fixed dns exception code and exception handling for get_entity replace metadata look up with value from entity. fixed author lines removed duplicate columns in managed by facets. tweak to nav fix in order to initialize tab. more defensive code update metadata for true false one line init for entity_name in widget move init code to end of constructor functions moved constants to start of function for adder_dialog external fields for dialogs initialized at dialog creation sudo sections: move add fields and columns to widget definition. The parameter validation in IPA.column ...This is precondition checking. Note that it merely throws an exception if the entity_name is not set. I want this stuff at the top of the function so that it is obvious to people looking to use them what is required. I added a comment to make this clear, but I'd like to keep precondition checking at the top of the function. decreased the scope of the pkey_name and moved the initiailzation fof columns into the setup_column function for association_tables return false at the end of click handler removed blank labels in sudo command section fix radio buttons for sudo category fixed table side for adder dialogs with external fields comments for future direction with add_columns https://fedorahosted.org/freeipa/ticket/1451 https://fedorahosted.org/freeipa/ticket/1462 https://fedorahosted.org/freeipa/ticket/1493 https://fedorahosted.org/freeipa/ticket/1497 https://fedorahosted.org/freeipa/ticket/1532 https://fedorahosted.org/freeipa/ticket/1534
* Fixed click handlers on certificate buttons.Endi S. Dewata2011-07-221-5/+10
| | | | | The click event handlers for certificate buttons have been fixed to stop standard event processing which causes the page to change.
* Fixed hard-coded messages.Endi S. Dewata2011-06-301-14/+17
| | | | | | Hard-coded messages in the UI have been replaced with I18n messages. Ticket #1396
* Converted entity header into facet header.Endi S. Dewata2011-06-231-0/+5
| | | | | | | | | | | The content and the size of entity header changes depending on the facet being displayed, so the entity header has been converted into a facet header to allow better control via CSS. The DNS record facet has been updated to use the same styling and support scrolling. To help styling and testing, all buttons have been assigned a name.
* Entitlement download.Endi S. Dewata2011-04-181-9/+15
| | | | A Download link has been added to download entitlement certificates.
* Merged IPA.cmd() into IPA.command().Endi S. Dewata2011-04-131-36/+50
| | | | | | | The IPA.cmd() has been merged into IPA.command(). All invocations and test cases have been converted. Ticket #988
* Fixed memory leak caused by certificate dialogs.Endi S. Dewata2011-03-071-251/+198
| | | | Ticket 1054
* I18n update for dialog box buttons.Endi S. Dewata2011-02-221-53/+71
| | | | https://fedorahosted.org/freeipa/ticket/899
* I18n update.Endi S. Dewata2011-02-211-353/+379
| | | | | Hard-coded messages through out the code have been replaced by i18n messages obtained from json_metadata and i18n_messages.
* Remove WebUI identifiers from global namespaceMartin Kosek2011-02-181-354/+356
| | | | | | | | | | | Many WebUI identifiers were defined in a global namespace. This is not a good programming practice and may result in name clashes, for example with other libraries. This patch moves these variables to IPA namespace or its sub-namespaces, when meaningful. https://fedorahosted.org/freeipa/ticket/212
* Hide initial status.Endi S. Dewata2011-02-071-3/+6
| | | | | | Previously all certificate & Kerberos key statuses (valid, missing and revoked) will appear briefly at the same time during page load. This has been fixed by setting the initial style to hidden.
* Restructuring details page.Endi S. Dewata2011-02-071-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the IPA.details_list_section can only be used with widgets that generates <dd> tag because it uses the following structure: <dl> <dt>Telephone Number:</dt> <span name="teleponenumber"> <dd>111-1111</dd> <dd>222-2222</dd> </span> </dl> The <dd> tag was previously used to handle multi-valued attributes. Since multi-valued attributes are now handled by the recently added IPA.multivalued_text_widget, the structure can be changed as follows: <dl> <dt>Telephone Number:</dt> <dd> <span name="telephonenumber"> <div>111-1111</div> <div>222-2222</div> </span> </dd> </dl> This allows IPA.details_list_section to be used with any widgets without requiring the <dd> tag.
* Check field's validity before executing add.Endi S. Dewata2011-01-261-6/+6
|
* rename static to uiAdam Young2011-01-201-0/+785
Directory rename