3. Functionality

3.1 Access the credentials

If chromeIPass detected a combination of username + password fields it requests all credentials for the current page from KeePassHttp.
The received credentials are accessible via multiple ways which are described in the following sections.

3.1.1 Popup

The icon of chromeIPass gets a question mark.
Clicking on the icon opens a popup on which you can choose the credentials which should be filled in.

If there are several username + password combinations on the page the credentials are filled into the focused combination (focus on username or password field) or into the first combination.

popup choose credentials

3.1.2 Autocomplete

For all combinations of username + password fields the username field supports autocomplete for the received credentials.

By clicking on an entry of the list or when the username field loose the focus it checks whether the username belongs to one of the received credentials and fills-in the password field.

This feature is activated by default and can be disabled on the settings page of chromeIPass.

autocomplete

3.1.3 Context-menu

On every textfield chromeIPass adds 3 entries to the context-menu.
Even if the field was not detected as a username or password field by chromeIPass these entries are available.

If you click on Fill User + Pass or Fill Pass Only chromeIPass checks whether the focused field belongs to a detected combination of username + password field. If this check fails it starts a redetection for only the focused field.
If you focus an unrecognized password field and select Fill User + Pass it will automatically detect the username field and fills-in the credentials.

Fill User + Pass of the context-menu will only work if chromeIPass received only one pair of credentials. Otherwise it shows you an error message and you should use the autocomplete or popup.

Fill Pass Only does work either chromeIPass received only one pair of credentials or the associated username field contains a username which belongs to one pair of the received credentials.

Show Password Generator Icons restarts the detection of visible password fields on the page and adds the key-icon for the password generator to each of them.

context-menu

3.1.4 Shortcuts

chromeIPass supports 2 page-wide shortcuts:

Ctrl+Shift+U is the shortcut for Fill User + Pass of the context-menu which is described in 3.1.3.

Ctrl+Shift+P is the shortcut for Fill Pass Only of the context-menu which is also described in 3.1.3.

3.2 Password generator

chromeIPass offers a password generator which receives the password from KeePass itself.
This function has to be enabled on the settings-page of chromeIPass.

This feature is only available with the KeePassHttp v1.4 or higher.

If it is enabled every password field contains a key icon on the right side. Click on it to open the password generator:
password-generator

If the key-icon does not appear, right-click on the input-field and select chromeIPass > Show Password Generator icons in the context-menu.

Once opened the generated password is stored in the field till you reload or submit the page or till you press the generate button. Even if you close the dialog and click on another key-icon the displayed password does not change.

Does a page contain more than one password field and you opened the dialog on the first password field, the option to fill-in the next field is enabled. If the two password fields are successive on the page, this option is also checked. Otherwise it is unchecked.

If the password field has a limited length for inputted text chromeIPass will detect it and automatically cut the generated password. It will inform you about this change and copy the cutted password to your clipboard.

Because chromeIPass has some limitations to remember credentials the password should always be copied to your clipboard.

3.2.1 How is the password generated?

chromeIPass sends a request to KeePass which generates a password with the settings of the built-in profile for auto-generated passwords.
To change the length and composition of generated passwords, please open the KeePass Password Generation Options.
Go to Keepass > Tools > Generate Password… and this dialog opens:
keepass-password-generation-options

  1. Select the built-in profile (Automatically generated passwords for new entries) and change the composition of the generated passwords.
  2. Now click the save button
  3. A second dialog appears. Click on the down-arrow on the right side and select again the name of the built-in profile (Automatically generated passwords for new entries).
  4. Press OK and your changes are saved to the profile.

3.3 Detection of credential fields

  1. After the page was loaded chromeIPass starts to search for all visible input fields.
  2. For every found input field of the type password it checks whether the previous input field is a normal textfield.
    • if there is no previous field or the previous field is a password field –> don’t add this fields as a detected username + password field combination.
    • if the previous field is a textfield –> add both fields as combination of username + password field.

The auto detection of credential fields is called only one time, after loading of the page finished.

There are known limitations when the auto detection cannot detect a username + password combination. Please go to Limitations and known problems > Auto detection of input fields to read more about it.

When it did not detect a username + password field combination you can click on the browser icon of chromeIPass and press the button “Redetect credential fields”.

You can also use the shortcuts or context-menu as described in 3.1.3 to start the redetection for the focused field.

3.4 Choose own credential fields for a page

Sometimes there are other input fields between the username field and the password field.
In this cases chromeIPass cannot detect the correct combination of username + password fields.

But you can define the combination by yourself for every page.
Just click on the browser-icon of chromeIPass and press “Choose own credential fields for this page”:
popup-normal

First there are all normal textfields highlighted. Click on the field you want to use as username field or skip this step if no username field is required.

Now choose a password field and in the last step confirm your selection.

popup-normal

You can also choose additional fields, the so-called String Fields. Their functionality is described in section 3.7.

The next time you open this page chromeIPass will use the defined combination of username + password field and does no longer auto detect combinations.

Certainly you can focus another field and use the context-menu (3.1.3) or shortcuts (3.1.4) to start the detection for the focused field.

3.5 Remember passwords

Because Google Chrome does not offer an API for their built-in password manager chromeIPass implements it own way of detecting new or updated credentials.

If chromeIPass finds a combination of username + password fields it tries to get the corresponding form for them.
For this form it registers a submit event which is called when the form is send.

There are known limitations for this workflow which are described in Limitations and known problems.

If chromeIPass detects unsaved credentials the browser icon of chromeIPass starts blinking red.
The icon will remain blinking till you click on it or you ignore it for 2 further page visits (loading other sites).

If you click on it, it remains completely red till you add, update or dismiss the detected changes.
It shows you the corresponding URL and username and the database in which the changes will be saved.

popup-normal

If you have multiple credentials for a page and want to update one entry you can press Update.
Now a list of all available entries appears on which you can select the outdated entry. If the username matchs with one username of the available credentials this entry will be marked bold:

popup-normal

New entries are stored in a separate group in KeePass which will be added by KeePassHttp.

3.6 Auto fill-in for HTTP Auth requests

KeePassHttp returns the found credentials sorted by best matching URL to chromeIPass.
chromeIPass can try to automatically login with the first provided credentials on HTTP Auth requests.
If this login attempt fails the login dialog is shown as normal.

The dialog of an HTTP Auth request is shown in the following screenshot:

http auth request

This feature is activated by default and can be disabled in settings.

3.7 Fill-in additional values via String Fields

You can fill-in additional information by defining string fields.

  1. Choose your own credential fields for the page like explained in section 3.4. You can also skip both, username and password.
  2. Now you can choose additional fields which are named String Fields. You can even choose dropdown elements. The order you choose these string fields is important for the fill-in method!
  3. Activate the String Fields setting in KeePassHttp like explained in the KeePassHttp-documentation (setting no. 11). The alphanumeric ordered entries are mapped with the order you chose the String Fields.

Dropdown elements are filled in by the visible value. If you open a dropdown element you can see all available values. This visible value has to match with one String Field value from KeePass.