Artica Wiki

Automatic sign-in to RDS Proxy web applications

Let the bastion sign in to a web application with an account kept in the vault: HTTP authentication or login form.

A web target can sign in to the application on its own.
The account is kept in the vault of the bastion.
The user reaches the application already signed in and never sees the password.

Benefits

Methods

Method When to use it
HTTP authentication The application asks for an account in a browser dialog (Basic or NTLM).
Login form The application shows a page with a user field and a password field.
The bastion also answers an HTTP authentication request from the same site.

Configure the target

Open the web target and fill in the section Automatic login.

Automatic login section

The password is written once.
It is never shown again, in the console or in the API.

Field Content
Login Method None, HTTP authentication or Login form.
Login Page Address Optional.
The address of the login page when it is on another site than the application address.
Its site must be in the allowed sites.
Username The account of the application.
Password Leave it empty to keep the stored password.
Erase The Stored Password Removes the stored password.
Allow Login On An Unencrypted Address (Http) Off by default.
A login page in http:// is refused unless this box is checked, because the password would cross the network in clear.

How the bastion fills the form

  1. After each page load on the login site, the bastion looks for a visible password field for up to 10 seconds.
  2. If there is exactly one, it takes the last text or e-mail field before it as the user field.
  3. It types the user name and the password like a keyboard, so React or Angular applications see the input.
  4. It clicks the submit button of the form, or presses Enter.
  5. If the password field comes back, the attempt is rejected.

The search runs in a script world of its own: the scripts of the page cannot see it.
The bastion checks the address of the page again before typing each field.

Safety rules

Example: a rejected account

The demo target below has a wrong password on purpose.
The bastion found the Dolibarr form, typed the service account and submitted it once.
Dolibarr refused it, and the bastion left the login page to the user.

Rejected automatic sign-in

One attempt only.
The event web_login_failed ends with rejected.

Limits

Events

Event Subject
web_login target | account | site | form or http
web_login_failed target | account | site | rejected or ambiguous
web_login_unavailable target | engine or vault.
The session was refused.

The password never appears in the events, the logs or the API answers.