# Website login

> An account on a website your AI agents may sign in to in a browser, to read pages and download files.

Source: https://docs.go-lumen.ai/es/reference/connections/website-login

## De un vistazo

| Propiedad | Valor |
| --- | --- |
| **Class name** | `website-login` |
| **Resource** | ConnectorClass (`lumen.ai/v1alpha1`); a workspace creates a Connector with `classRef: {name: website-login}` |
| **Driver** | `weblogin` |
| **Provides** | `browser-login` |
| **Mode** | pull (Lumen reaches out to the system) |
| **Credential keys** | `username`, `password`, `totpSecret` (kept in a Secret, never in config) |
| **Installation must provide** | `browser` |

A workspace adds this connection on the Connections page or with `lumen connect`; credentials are kept in a Secret, never in the flow.

## Ajustes

Se definen bajo `config:` en el Connector.

| Ajuste | Tipo | Valor por defecto | Descripción |
| --- | --- | --- | --- |
| `actions` | object |  | Allow, ask or block per kind of action. A form that changes something on the site is never allowed without asking, and in this version it is refused. |
| `actions.disclosure` | string |  | (one of allow, ask, block) |
| `actions.download` | string |  | (one of allow, ask, block) |
| `actions.fill` | string |  | (one of allow, ask, block) |
| `actions.login` | string |  | (one of allow, ask, block) |
| `actions.navigate` | string |  | (one of allow, ask, block) |
| `actions.read` | string |  | (one of allow, ask, block) |
| `actions.submit` | string |  | (one of ask, block) |
| `allowedDomains` (obligatorio) | list of string |  | Domains such as example.com, each covering its subdomains. Any other page is refused. Shared domains such as github.io are not accepted. (minItems 1; maxItems 10) |
| `loginOrigins` | list of string |  | Exact addresses like https://login.microsoftonline.com where the password may also be typed, such as your company's single sign-on. Only list providers you use; the sign-in page's own address is always included. (maxItems 5) |
| `loginURL` (obligatorio) | string |  | The page where you sign in to the site, for example https://portal.example.com/login. It must start with https:// and carry no password or key. (minLength 9; maxLength 2048) |
| `overrides` | list of object |  | Tell the agent what a button really does, for example that it downloads a file. A correction changes how a click is counted, never what is allowed. (maxItems 50) |
| `overrides[].class` (obligatorio) | string |  | (one of read, navigate, download, disclosure, fill, login, submit) |
| `overrides[].host` (obligatorio) | string |  | (minLength 1; maxLength 253) |
| `overrides[].name` | string |  | (maxLength 200) |
| `overrides[].path` | string |  | (maxLength 500) |
| `overrides[].role` | string |  | (maxLength 40) |

El JSON Schema completo de estos ajustes: [website-login.schema.json](https://docs.go-lumen.ai/schemas/connections/website-login.schema.json).

## Configuración guiada

`lumen connect` y la aplicación web te guían para añadir esta conexión.

**Credenciales que se piden**

-   `password`: Password
-   `totpSecret`: Authenticator key or otpauth:// link (optional)
-   `username`: Username or email

## Uso

```yaml title="connector.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
  name: my-website-login
  namespace: tenant-acme
spec:
  classRef: {name: website-login}
  config: {}
```
